Merge "Clean up the Makefile for recovery and tests."
am: 1f0b9962b0
Change-Id: I79b21e9b93f8876a00176751a4664f6175a384be
This commit is contained in:
+52
-45
@@ -28,32 +28,6 @@ recovery_common_cflags := \
|
|||||||
-Werror \
|
-Werror \
|
||||||
-DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
-DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||||
|
|
||||||
# librecovery (static library)
|
|
||||||
# ===============================
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
install.cpp
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := $(recovery_common_cflags)
|
|
||||||
|
|
||||||
ifeq ($(AB_OTA_UPDATER),true)
|
|
||||||
LOCAL_CFLAGS += -DAB_OTA_UPDATER=1
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_MODULE := librecovery
|
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
|
||||||
libminui \
|
|
||||||
libotautil \
|
|
||||||
libvintf_recovery \
|
|
||||||
libcrypto_utils \
|
|
||||||
libcrypto \
|
|
||||||
libbase \
|
|
||||||
libziparchive \
|
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
|
||||||
|
|
||||||
# librecovery_ui (static library)
|
# librecovery_ui (static library)
|
||||||
# ===============================
|
# ===============================
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
@@ -123,6 +97,32 @@ endif
|
|||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
# librecovery (static library)
|
||||||
|
# ===============================
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
install.cpp
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := $(recovery_common_cflags)
|
||||||
|
|
||||||
|
ifeq ($(AB_OTA_UPDATER),true)
|
||||||
|
LOCAL_CFLAGS += -DAB_OTA_UPDATER=1
|
||||||
|
endif
|
||||||
|
|
||||||
|
LOCAL_MODULE := librecovery
|
||||||
|
|
||||||
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
libminui \
|
||||||
|
libotautil \
|
||||||
|
libvintf_recovery \
|
||||||
|
libcrypto_utils \
|
||||||
|
libcrypto \
|
||||||
|
libbase \
|
||||||
|
libziparchive \
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
# recovery (static executable)
|
# recovery (static executable)
|
||||||
# ===============================
|
# ===============================
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
@@ -139,18 +139,12 @@ LOCAL_MODULE := recovery
|
|||||||
|
|
||||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||||
|
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||||
|
|
||||||
# Cannot link with LLD: undefined symbol: UsbNoPermissionsLongHelpText
|
# Cannot link with LLD: undefined symbol: UsbNoPermissionsLongHelpText
|
||||||
# http://b/77543887, lld does not handle -Wl,--gc-sections as well as ld.
|
# http://b/77543887, lld does not handle -Wl,--gc-sections as well as ld.
|
||||||
LOCAL_USE_CLANG_LLD := false
|
LOCAL_USE_CLANG_LLD := false
|
||||||
|
|
||||||
LOCAL_REQUIRED_MODULES := e2fsdroid_static mke2fs_static mke2fs.conf
|
|
||||||
|
|
||||||
ifeq ($(TARGET_USERIMAGES_USE_F2FS),true)
|
|
||||||
ifeq ($(HOST_OS),linux)
|
|
||||||
LOCAL_REQUIRED_MODULES += sload.f2fs mkfs.f2fs
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := $(recovery_common_cflags)
|
LOCAL_CFLAGS := $(recovery_common_cflags)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
LOCAL_C_INCLUDES += \
|
||||||
@@ -159,39 +153,52 @@ LOCAL_C_INCLUDES += \
|
|||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
librecovery \
|
librecovery \
|
||||||
$(TARGET_RECOVERY_UI_LIB) \
|
$(TARGET_RECOVERY_UI_LIB) \
|
||||||
librecovery_ui \
|
|
||||||
libminui \
|
|
||||||
libverifier \
|
|
||||||
libbootloader_message \
|
libbootloader_message \
|
||||||
libfusesideload \
|
libfusesideload \
|
||||||
libminadbd \
|
libminadbd \
|
||||||
|
librecovery_ui \
|
||||||
|
libminui \
|
||||||
|
libverifier \
|
||||||
libotautil \
|
libotautil \
|
||||||
libasyncio \
|
libasyncio \
|
||||||
libbatterymonitor \
|
libbatterymonitor \
|
||||||
libfs_mgr \
|
|
||||||
libext4_utils \
|
|
||||||
libpng \
|
|
||||||
libsparse \
|
|
||||||
libziparchive \
|
|
||||||
libcrypto_utils \
|
libcrypto_utils \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
|
libext4_utils \
|
||||||
|
libfs_mgr \
|
||||||
|
libpng \
|
||||||
|
libsparse \
|
||||||
libvintf_recovery \
|
libvintf_recovery \
|
||||||
libvintf \
|
libvintf \
|
||||||
libhidl-gen-utils \
|
libhidl-gen-utils \
|
||||||
libtinyxml2 \
|
libtinyxml2 \
|
||||||
|
libziparchive \
|
||||||
libbase \
|
libbase \
|
||||||
libcutils \
|
libcutils \
|
||||||
libutils \
|
libutils \
|
||||||
liblog \
|
liblog \
|
||||||
libselinux \
|
libselinux \
|
||||||
libz
|
libz \
|
||||||
|
|
||||||
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
|
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
|
||||||
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
LOCAL_REQUIRED_MODULES := \
|
||||||
|
e2fsdroid_static \
|
||||||
|
mke2fs_static \
|
||||||
|
mke2fs.conf
|
||||||
|
|
||||||
|
ifeq ($(TARGET_USERIMAGES_USE_F2FS),true)
|
||||||
|
ifeq ($(HOST_OS),linux)
|
||||||
|
LOCAL_REQUIRED_MODULES += \
|
||||||
|
sload.f2fs \
|
||||||
|
mkfs.f2fs
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),)
|
ifeq ($(BOARD_CACHEIMAGE_PARTITION_SIZE),)
|
||||||
LOCAL_REQUIRED_MODULES += recovery-persist recovery-refresh
|
LOCAL_REQUIRED_MODULES += \
|
||||||
|
recovery-persist \
|
||||||
|
recovery-refresh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|||||||
+74
-31
@@ -94,6 +94,26 @@ LOCAL_SRC_FILES := \
|
|||||||
LOCAL_SHARED_LIBRARIES := \
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
libhidlbase
|
libhidlbase
|
||||||
|
|
||||||
|
# libapplypatch, libapplypatch_modes, libimgdiff, libimgpatch.
|
||||||
|
libapplypatch_static_libraries := \
|
||||||
|
libapplypatch_modes \
|
||||||
|
libapplypatch \
|
||||||
|
libedify \
|
||||||
|
libimgdiff \
|
||||||
|
libimgpatch \
|
||||||
|
libotafault \
|
||||||
|
libotautil \
|
||||||
|
libbsdiff \
|
||||||
|
libbspatch \
|
||||||
|
libdivsufsort \
|
||||||
|
libdivsufsort64 \
|
||||||
|
libutils \
|
||||||
|
libbase \
|
||||||
|
libbz \
|
||||||
|
libcrypto \
|
||||||
|
libz \
|
||||||
|
libziparchive \
|
||||||
|
|
||||||
tune2fs_static_libraries := \
|
tune2fs_static_libraries := \
|
||||||
libext2_com_err \
|
libext2_com_err \
|
||||||
libext2_blkid \
|
libext2_blkid \
|
||||||
@@ -102,50 +122,73 @@ tune2fs_static_libraries := \
|
|||||||
libext2_e2p \
|
libext2_e2p \
|
||||||
libext2fs
|
libext2fs
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
libupdater_static_libraries := \
|
||||||
libapplypatch_modes \
|
|
||||||
libapplypatch \
|
|
||||||
libedify \
|
|
||||||
libimgdiff \
|
|
||||||
libimgpatch \
|
|
||||||
libbsdiff \
|
|
||||||
libbspatch \
|
|
||||||
libfusesideload \
|
|
||||||
libminui \
|
|
||||||
libotafault \
|
|
||||||
librecovery \
|
|
||||||
libupdater \
|
libupdater \
|
||||||
|
libapplypatch \
|
||||||
|
libbspatch \
|
||||||
|
libedify \
|
||||||
|
libziparchive \
|
||||||
|
libotautil \
|
||||||
libbootloader_message \
|
libbootloader_message \
|
||||||
|
libutils \
|
||||||
|
libotafault \
|
||||||
|
libext4_utils \
|
||||||
|
libfec \
|
||||||
|
libfec_rs \
|
||||||
|
libfs_mgr \
|
||||||
|
liblog \
|
||||||
|
libselinux \
|
||||||
|
libsparse \
|
||||||
|
libsquashfs_utils \
|
||||||
|
libbz \
|
||||||
|
libz \
|
||||||
|
libbase \
|
||||||
|
libcrypto \
|
||||||
|
libcrypto_utils \
|
||||||
|
libcutils \
|
||||||
|
libtune2fs \
|
||||||
|
libbrotli \
|
||||||
|
$(tune2fs_static_libraries)
|
||||||
|
|
||||||
|
librecovery_static_libraries := \
|
||||||
|
librecovery \
|
||||||
|
$(TARGET_RECOVERY_UI_LIB) \
|
||||||
|
libbootloader_message \
|
||||||
|
libfusesideload \
|
||||||
|
libminadbd \
|
||||||
|
librecovery_ui \
|
||||||
|
libminui \
|
||||||
libverifier \
|
libverifier \
|
||||||
libotautil \
|
libotautil \
|
||||||
libupdate_verifier \
|
libasyncio \
|
||||||
libdivsufsort \
|
libbatterymonitor \
|
||||||
libdivsufsort64 \
|
libcrypto_utils \
|
||||||
|
libcrypto \
|
||||||
|
libext4_utils \
|
||||||
libfs_mgr \
|
libfs_mgr \
|
||||||
libpng \
|
libpng \
|
||||||
|
libsparse \
|
||||||
libvintf_recovery \
|
libvintf_recovery \
|
||||||
libvintf \
|
libvintf \
|
||||||
libhidl-gen-utils \
|
libhidl-gen-utils \
|
||||||
libtinyxml2 \
|
libtinyxml2 \
|
||||||
libselinux \
|
|
||||||
libext4_utils \
|
|
||||||
libsparse \
|
|
||||||
libcrypto_utils \
|
|
||||||
libcrypto \
|
|
||||||
libbz \
|
|
||||||
libziparchive \
|
libziparchive \
|
||||||
liblog \
|
|
||||||
libutils \
|
|
||||||
libz \
|
|
||||||
libbase \
|
libbase \
|
||||||
libtune2fs \
|
|
||||||
libfec \
|
|
||||||
libfec_rs \
|
|
||||||
libsquashfs_utils \
|
|
||||||
libcutils \
|
libcutils \
|
||||||
libbrotli \
|
libutils \
|
||||||
libBionicGtestMain \
|
liblog \
|
||||||
$(tune2fs_static_libraries)
|
libselinux \
|
||||||
|
libz \
|
||||||
|
|
||||||
|
libupdate_verifier_static_libraries := \
|
||||||
|
libupdate_verifier \
|
||||||
|
|
||||||
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
|
$(libapplypatch_static_libraries) \
|
||||||
|
$(librecovery_static_libraries) \
|
||||||
|
$(libupdate_verifier_static_libraries) \
|
||||||
|
$(libupdater_static_libraries) \
|
||||||
|
libBionicGtestMain
|
||||||
|
|
||||||
LOCAL_TEST_DATA := \
|
LOCAL_TEST_DATA := \
|
||||||
$(call find-test-data-in-subdirs, $(LOCAL_PATH), "*", testdata) \
|
$(call find-test-data-in-subdirs, $(LOCAL_PATH), "*", testdata) \
|
||||||
|
|||||||
Reference in New Issue
Block a user