2012-06-01 08:21:46 +02:00
|
|
|
# Copyright (C) 2007 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2016-03-03 20:43:47 +01:00
|
|
|
# libfusesideload (static library)
|
|
|
|
# ===============================
|
2014-07-10 16:31:46 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2015-07-19 17:40:37 +02:00
|
|
|
LOCAL_SRC_FILES := fuse_sideload.cpp
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2014-07-10 16:31:46 +02:00
|
|
|
LOCAL_CFLAGS := -O2 -g -DADB_HOST=0 -Wall -Wno-unused-parameter
|
|
|
|
LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE
|
|
|
|
LOCAL_MODULE := libfusesideload
|
2016-04-04 16:17:01 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libcutils libc libcrypto_static
|
2014-07-10 16:31:46 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2016-03-03 20:43:47 +01:00
|
|
|
# recovery (static executable)
|
|
|
|
# ===============================
|
2012-06-01 08:21:46 +02:00
|
|
|
include $(CLEAR_VARS)
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2015-04-09 22:40:31 +02:00
|
|
|
adb_install.cpp \
|
|
|
|
asn1_decoder.cpp \
|
2011-10-28 19:33:05 +02:00
|
|
|
bootloader.cpp \
|
2015-04-09 22:40:31 +02:00
|
|
|
device.cpp \
|
2015-07-19 17:40:37 +02:00
|
|
|
fuse_sdcard_provider.cpp \
|
2011-10-28 19:33:05 +02:00
|
|
|
install.cpp \
|
2015-04-09 22:40:31 +02:00
|
|
|
recovery.cpp \
|
2011-10-28 19:33:05 +02:00
|
|
|
roots.cpp \
|
2011-10-29 00:13:10 +02:00
|
|
|
screen_ui.cpp \
|
2015-04-09 22:40:31 +02:00
|
|
|
ui.cpp \
|
2012-01-10 00:16:13 +01:00
|
|
|
verifier.cpp \
|
2015-08-20 23:52:57 +02:00
|
|
|
wear_ui.cpp \
|
2009-03-04 04:28:42 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE := recovery
|
|
|
|
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
|
2015-10-28 05:53:18 +01:00
|
|
|
ifeq ($(TARGET_USERIMAGES_USE_F2FS),true)
|
2014-06-18 19:02:50 +02:00
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
LOCAL_REQUIRED_MODULES := mkfs.f2fs
|
|
|
|
endif
|
2015-10-28 05:53:18 +01:00
|
|
|
endif
|
2014-06-17 04:07:39 +02:00
|
|
|
|
2010-02-02 22:09:52 +01:00
|
|
|
RECOVERY_API_VERSION := 3
|
2013-02-13 21:59:35 +01:00
|
|
|
RECOVERY_FSTAB_VERSION := 2
|
2009-06-18 02:29:40 +02:00
|
|
|
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
2014-02-14 00:07:56 +01:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2009-06-18 02:29:40 +02:00
|
|
|
|
2015-02-19 00:58:15 +01:00
|
|
|
LOCAL_C_INCLUDES += \
|
|
|
|
system/vold \
|
|
|
|
system/extras/ext4_utils \
|
|
|
|
system/core/adb \
|
2014-11-06 14:53:50 +01:00
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
2016-02-17 21:21:52 +01:00
|
|
|
libbatterymonitor \
|
2012-06-01 08:21:46 +02:00
|
|
|
libext4_utils_static \
|
2012-07-24 04:14:30 +02:00
|
|
|
libsparse_static \
|
2012-06-01 08:21:46 +02:00
|
|
|
libminzip \
|
|
|
|
libz \
|
|
|
|
libmtdutils \
|
|
|
|
libminadbd \
|
2014-07-10 16:31:46 +02:00
|
|
|
libfusesideload \
|
2012-06-01 08:21:46 +02:00
|
|
|
libminui \
|
|
|
|
libpng \
|
2013-02-13 21:59:35 +01:00
|
|
|
libfs_mgr \
|
2016-04-04 16:17:01 +02:00
|
|
|
libcrypto_utils_static \
|
|
|
|
libcrypto_static \
|
2015-04-13 23:36:02 +02:00
|
|
|
libbase \
|
2012-06-01 08:21:46 +02:00
|
|
|
libcutils \
|
2016-02-17 21:21:52 +01:00
|
|
|
libutils \
|
2013-04-10 06:41:29 +02:00
|
|
|
liblog \
|
2012-10-16 19:47:27 +02:00
|
|
|
libselinux \
|
2012-08-24 00:20:16 +02:00
|
|
|
libm \
|
2012-06-01 08:21:46 +02:00
|
|
|
libc
|
2010-06-30 02:36:28 +02:00
|
|
|
|
2016-02-17 21:21:52 +01:00
|
|
|
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
|
|
|
|
|
2010-06-30 02:36:28 +02:00
|
|
|
ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_CFLAGS += -DUSE_EXT4
|
2014-11-06 14:53:50 +01:00
|
|
|
LOCAL_C_INCLUDES += system/extras/ext4_utils
|
2012-06-01 08:21:46 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES += libext4_utils_static libz
|
2010-06-30 02:36:28 +02:00
|
|
|
endif
|
|
|
|
|
2015-03-10 19:56:56 +01:00
|
|
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2009-06-09 21:22:33 +02:00
|
|
|
ifeq ($(TARGET_RECOVERY_UI_LIB),)
|
2011-10-31 17:34:15 +01:00
|
|
|
LOCAL_SRC_FILES += default_device.cpp
|
2009-06-09 21:22:33 +02:00
|
|
|
else
|
|
|
|
LOCAL_STATIC_LIBRARIES += $(TARGET_RECOVERY_UI_LIB)
|
|
|
|
endif
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2016-03-09 23:58:16 +01:00
|
|
|
ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),)
|
|
|
|
LOCAL_REQUIRED_MODULES := recovery-persist recovery-refresh
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
# recovery-persist (system partition dynamic executable run after /data mounts)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := recovery-persist.cpp
|
|
|
|
LOCAL_MODULE := recovery-persist
|
|
|
|
LOCAL_SHARED_LIBRARIES := liblog libbase
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
LOCAL_INIT_RC := recovery-persist.rc
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
# recovery-refresh (system partition dynamic executable run at init)
|
|
|
|
# ===============================
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := recovery-refresh.cpp
|
|
|
|
LOCAL_MODULE := recovery-refresh
|
|
|
|
LOCAL_SHARED_LIBRARIES := liblog
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
LOCAL_INIT_RC := recovery-refresh.rc
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2016-03-03 20:43:47 +01:00
|
|
|
# libverifier (static library)
|
|
|
|
# ===============================
|
2013-10-09 19:14:35 +02:00
|
|
|
include $(CLEAR_VARS)
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2013-10-09 19:14:35 +02:00
|
|
|
LOCAL_MODULE := libverifier
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
asn1_decoder.cpp \
|
2012-06-01 08:21:46 +02:00
|
|
|
verifier.cpp \
|
|
|
|
ui.cpp
|
2016-04-04 16:17:01 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libcrypto_utils_static libcrypto_static
|
2016-02-04 02:02:09 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2009-12-10 02:01:45 +01:00
|
|
|
|
2012-06-01 08:21:46 +02:00
|
|
|
include $(LOCAL_PATH)/minui/Android.mk \
|
|
|
|
$(LOCAL_PATH)/minzip/Android.mk \
|
|
|
|
$(LOCAL_PATH)/minadbd/Android.mk \
|
|
|
|
$(LOCAL_PATH)/mtdutils/Android.mk \
|
2013-10-09 19:14:35 +02:00
|
|
|
$(LOCAL_PATH)/tests/Android.mk \
|
2012-06-01 08:21:46 +02:00
|
|
|
$(LOCAL_PATH)/tools/Android.mk \
|
|
|
|
$(LOCAL_PATH)/edify/Android.mk \
|
2014-01-13 19:04:25 +01:00
|
|
|
$(LOCAL_PATH)/uncrypt/Android.mk \
|
2015-12-16 01:04:53 +01:00
|
|
|
$(LOCAL_PATH)/otafault/Android.mk \
|
2012-06-01 08:21:46 +02:00
|
|
|
$(LOCAL_PATH)/updater/Android.mk \
|
2015-12-06 06:21:27 +01:00
|
|
|
$(LOCAL_PATH)/update_verifier/Android.mk \
|
2012-06-01 08:21:46 +02:00
|
|
|
$(LOCAL_PATH)/applypatch/Android.mk
|