diff options
author | big biff <bigbiff@teamw.in> | 2018-05-13 16:42:13 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.omnirom.org> | 2018-05-13 16:42:13 +0200 |
commit | 2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47 (patch) | |
tree | 81d33c5364d89b88652a562e77cd7995262c7d51 | |
parent | Merge "applypatch: Remove obsolete pathmap changes" into android-8.1 (diff) | |
parent | applypatch: Fix bad AOSP merge (diff) | |
download | android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar.gz android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar.bz2 android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar.lz android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar.xz android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.tar.zst android_bootable_recovery-2d5ef131d7a2a2ac4c5aa78c22398c2eee58cf47.zip |
-rw-r--r-- | applypatch/Android.mk | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk index b9f23ccb2..1f71c4465 100644 --- a/applypatch/Android.mk +++ b/applypatch/Android.mk @@ -14,29 +14,6 @@ LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY - -$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ - $(if $($(board_define)), \ - $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ - ) \ - ) - -LOCAL_C_INCLUDES += \ - $(LOCAL_PATH)/include \ - external/bzip2 \ - external/zlib \ - $(commands_recovery_local_path) - -LOCAL_CLANG := true -LOCAL_SRC_FILES := applypatch.cpp bspatch.cpp freecache.cpp imgpatch.cpp utils.cpp -LOCAL_MODULE := libapplypatch -LOCAL_MODULE_TAGS := eng -LOCAL_C_INCLUDES += $(RECOVERY_PATH) -LOCAL_STATIC_LIBRARIES += libbase libotafault libmtdutils libcrypto_static libbz libz - # libapplypatch (static library) # =============================== include $(CLEAR_VARS) @@ -47,10 +24,10 @@ LOCAL_SRC_FILES := \ imgpatch.cpp LOCAL_MODULE := libapplypatch LOCAL_MODULE_TAGS := eng -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include \ $(commands_recovery_local_path) +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_STATIC_LIBRARIES := \ libotafault \ libbase \ @@ -62,12 +39,20 @@ LOCAL_WHOLE_STATIC_LIBRARIES += libmtdutils LOCAL_CFLAGS := \ -DZLIB_CONST \ -Werror + +BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY + +$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ + $(if $($(board_define)), \ + $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ + ) \ + ) + include $(BUILD_STATIC_LIBRARY) # libimgpatch (static library) # =============================== include $(CLEAR_VARS) - LOCAL_SRC_FILES := \ bspatch.cpp \ imgpatch.cpp @@ -130,11 +115,6 @@ include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_SRC_FILES := applypatch_main.cpp LOCAL_MODULE := applypatch -LOCAL_STATIC_LIBRARIES += libapplypatch libbase libotafault libmtdutils libcrypto_static libbz \ - libedify \ - -LOCAL_SHARED_LIBRARIES += libz libcutils libc - LOCAL_C_INCLUDES := $(commands_recovery_local_path) LOCAL_STATIC_LIBRARIES := \ libapplypatch_modes \ |