diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2017-04-28 21:43:09 +0200 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2017-06-24 14:32:07 +0200 |
commit | c86b6d43129790fbd31e4f124cb6d1bfafce0373 (patch) | |
tree | 1ae1d1d8529195f87b0db006e44a4621c7645410 /applypatch | |
parent | Fix incorrect 'unlink' return value check (diff) | |
download | android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.gz android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.bz2 android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.lz android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.xz android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.zst android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.zip |
Diffstat (limited to '')
-rw-r--r-- | applypatch/Android.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk index 581e53aa1..2f96f0ab7 100644 --- a/applypatch/Android.mk +++ b/applypatch/Android.mk @@ -14,6 +14,12 @@ LOCAL_PATH := $(call my-dir) +ifdef project-path-for + RECOVERY_PATH := $(call project-path-for,recovery) +else + RECOVERY_PATH := bootable/recovery +endif + include $(CLEAR_VARS) BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY @@ -33,7 +39,7 @@ 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 += bootable/recovery +LOCAL_C_INCLUDES += $(RECOVERY_PATH) LOCAL_STATIC_LIBRARIES += libbase libotafault libmtdutils libcrypto_static libbz libz include $(BUILD_STATIC_LIBRARY) @@ -46,7 +52,7 @@ include $(CLEAR_VARS) LOCAL_CLANG := true LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp LOCAL_MODULE := libimgpatch -LOCAL_C_INCLUDES += bootable/recovery +LOCAL_C_INCLUDES += $(RECOVERY_PATH) LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz @@ -58,7 +64,7 @@ include $(CLEAR_VARS) LOCAL_CLANG := true LOCAL_SRC_FILES := main.cpp LOCAL_MODULE := applypatch -LOCAL_C_INCLUDES += bootable/recovery +LOCAL_C_INCLUDES += $(RECOVERY_PATH) LOCAL_STATIC_LIBRARIES += libapplypatch libbase libotafault libmtdutils libcrypto_static libbz \ libedify \ |