Merge "Move stuff from recovery into librecovery." into pi-dev-plus-aosp
This commit is contained in:
+54
-57
@@ -97,61 +97,8 @@ 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)
|
|
||||||
# ===============================
|
|
||||||
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 \
|
|
||||||
|
|
||||||
# Health HAL dependency
|
# Health HAL dependency
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
health_hal_static_libraries := \
|
||||||
android.hardware.health@2.0-impl \
|
android.hardware.health@2.0-impl \
|
||||||
android.hardware.health@2.0 \
|
android.hardware.health@2.0 \
|
||||||
android.hardware.health@1.0 \
|
android.hardware.health@1.0 \
|
||||||
@@ -163,8 +110,7 @@ LOCAL_STATIC_LIBRARIES := \
|
|||||||
libvndksupport \
|
libvndksupport \
|
||||||
libbatterymonitor
|
libbatterymonitor
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES += \
|
librecovery_static_libraries := \
|
||||||
librecovery \
|
|
||||||
$(TARGET_RECOVERY_UI_LIB) \
|
$(TARGET_RECOVERY_UI_LIB) \
|
||||||
libbootloader_message \
|
libbootloader_message \
|
||||||
libfusesideload \
|
libfusesideload \
|
||||||
@@ -173,8 +119,8 @@ LOCAL_STATIC_LIBRARIES += \
|
|||||||
libminui \
|
libminui \
|
||||||
libverifier \
|
libverifier \
|
||||||
libotautil \
|
libotautil \
|
||||||
|
$(health_hal_static_libraries) \
|
||||||
libasyncio \
|
libasyncio \
|
||||||
libbatterymonitor \
|
|
||||||
libcrypto_utils \
|
libcrypto_utils \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libext4_utils \
|
libext4_utils \
|
||||||
@@ -193,6 +139,57 @@ LOCAL_STATIC_LIBRARIES += \
|
|||||||
libselinux \
|
libselinux \
|
||||||
libz \
|
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_HAL_STATIC_LIBRARIES := libhealthd
|
||||||
|
|
||||||
LOCAL_REQUIRED_MODULES := \
|
LOCAL_REQUIRED_MODULES := \
|
||||||
|
|||||||
+14
-2
@@ -150,6 +150,18 @@ libupdater_static_libraries := \
|
|||||||
libbrotli \
|
libbrotli \
|
||||||
$(tune2fs_static_libraries)
|
$(tune2fs_static_libraries)
|
||||||
|
|
||||||
|
health_hal_static_libraries := \
|
||||||
|
android.hardware.health@2.0-impl \
|
||||||
|
android.hardware.health@2.0 \
|
||||||
|
android.hardware.health@1.0 \
|
||||||
|
android.hardware.health@1.0-convert \
|
||||||
|
libhealthstoragedefault \
|
||||||
|
libhidltransport \
|
||||||
|
libhidlbase \
|
||||||
|
libhwbinder_noltopgo \
|
||||||
|
libvndksupport \
|
||||||
|
libbatterymonitor
|
||||||
|
|
||||||
librecovery_static_libraries := \
|
librecovery_static_libraries := \
|
||||||
librecovery \
|
librecovery \
|
||||||
$(TARGET_RECOVERY_UI_LIB) \
|
$(TARGET_RECOVERY_UI_LIB) \
|
||||||
@@ -160,8 +172,8 @@ librecovery_static_libraries := \
|
|||||||
libminui \
|
libminui \
|
||||||
libverifier \
|
libverifier \
|
||||||
libotautil \
|
libotautil \
|
||||||
|
$(health_hal_static_libraries) \
|
||||||
libasyncio \
|
libasyncio \
|
||||||
libbatterymonitor \
|
|
||||||
libcrypto_utils \
|
libcrypto_utils \
|
||||||
libcrypto \
|
libcrypto \
|
||||||
libext4_utils \
|
libext4_utils \
|
||||||
@@ -174,8 +186,8 @@ librecovery_static_libraries := \
|
|||||||
libtinyxml2 \
|
libtinyxml2 \
|
||||||
libziparchive \
|
libziparchive \
|
||||||
libbase \
|
libbase \
|
||||||
libcutils \
|
|
||||||
libutils \
|
libutils \
|
||||||
|
libcutils \
|
||||||
liblog \
|
liblog \
|
||||||
libselinux \
|
libselinux \
|
||||||
libz \
|
libz \
|
||||||
|
|||||||
Reference in New Issue
Block a user