Merge "Move stuff from recovery into librecovery."
am: 901f0c3516
Change-Id: Ief503e9d2be627474df385790e5ac55399f08744
This commit is contained in:
commit
dd88112054
2 changed files with 54 additions and 57 deletions
109
Android.mk
109
Android.mk
|
@ -97,61 +97,7 @@ endif
|
|||
|
||||
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)
|
||||
# ===============================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
adb_install.cpp \
|
||||
fuse_sdcard_provider.cpp \
|
||||
logging.cpp \
|
||||
recovery.cpp \
|
||||
recovery_main.cpp \
|
||||
roots.cpp \
|
||||
|
||||
LOCAL_MODULE := recovery
|
||||
|
||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
|
||||
# Cannot link with LLD: undefined symbol: UsbNoPermissionsLongHelpText
|
||||
# http://b/77543887, lld does not handle -Wl,--gc-sections as well as ld.
|
||||
LOCAL_USE_CLANG_LLD := false
|
||||
|
||||
LOCAL_CFLAGS := $(recovery_common_cflags)
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
system/vold \
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
librecovery \
|
||||
librecovery_static_libraries := \
|
||||
$(TARGET_RECOVERY_UI_LIB) \
|
||||
libbootloader_message \
|
||||
libfusesideload \
|
||||
|
@ -174,12 +120,63 @@ LOCAL_STATIC_LIBRARIES := \
|
|||
libtinyxml2 \
|
||||
libziparchive \
|
||||
libbase \
|
||||
libcutils \
|
||||
libutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libselinux \
|
||||
libz \
|
||||
|
||||
# librecovery (static library)
|
||||
# ===============================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
adb_install.cpp \
|
||||
fuse_sdcard_provider.cpp \
|
||||
install.cpp \
|
||||
recovery.cpp \
|
||||
roots.cpp \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
system/vold \
|
||||
|
||||
LOCAL_CFLAGS := $(recovery_common_cflags)
|
||||
|
||||
ifeq ($(AB_OTA_UPDATER),true)
|
||||
LOCAL_CFLAGS += -DAB_OTA_UPDATER=1
|
||||
endif
|
||||
|
||||
LOCAL_MODULE := librecovery
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
$(librecovery_static_libraries)
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
# recovery (static executable)
|
||||
# ===============================
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
logging.cpp \
|
||||
recovery_main.cpp \
|
||||
|
||||
LOCAL_MODULE := recovery
|
||||
|
||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||
|
||||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
|
||||
|
||||
# Cannot link with LLD: undefined symbol: UsbNoPermissionsLongHelpText
|
||||
# http://b/77543887, lld does not handle -Wl,--gc-sections as well as ld.
|
||||
LOCAL_USE_CLANG_LLD := false
|
||||
|
||||
LOCAL_CFLAGS := $(recovery_common_cflags)
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
librecovery \
|
||||
$(librecovery_static_libraries)
|
||||
|
||||
LOCAL_HAL_STATIC_LIBRARIES := libhealthd
|
||||
|
||||
LOCAL_REQUIRED_MODULES := \
|
||||
|
|
|
@ -174,8 +174,8 @@ librecovery_static_libraries := \
|
|||
libtinyxml2 \
|
||||
libziparchive \
|
||||
libbase \
|
||||
libcutils \
|
||||
libutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libselinux \
|
||||
libz \
|
||||
|
|
Loading…
Reference in a new issue