diff options
author | Tao Bao <tbao@google.com> | 2017-04-18 05:20:48 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-04-18 05:20:49 +0200 |
commit | c1ca21a32d4cfdda773bad1c5da1657e4936b751 (patch) | |
tree | 9a3efa486d5aa4f83ebd2a19cace9eb85eba07be /Android.mk | |
parent | Merge "libmounts: Remove two dead functions." (diff) | |
parent | Add the missing LOCAL_CFLAGS for librecovery. (diff) | |
download | android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar.gz android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar.bz2 android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar.lz android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar.xz android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.tar.zst android_bootable_recovery-c1ca21a32d4cfdda773bad1c5da1657e4936b751.zip |
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk index d70101395..9e374de8f 100644 --- a/Android.mk +++ b/Android.mk @@ -14,6 +14,10 @@ LOCAL_PATH := $(call my-dir) +# Needed by build/make/core/Makefile. +RECOVERY_API_VERSION := 3 +RECOVERY_FSTAB_VERSION := 2 + # libfusesideload (static library) # =============================== include $(CLEAR_VARS) @@ -36,6 +40,27 @@ LOCAL_MODULE := libmounts LOCAL_STATIC_LIBRARIES := libbase include $(BUILD_STATIC_LIBRARY) +# librecovery (static library) +# =============================== +include $(CLEAR_VARS) +LOCAL_SRC_FILES := \ + install.cpp +LOCAL_CFLAGS := -Wno-unused-parameter -Werror +LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) + +ifeq ($(AB_OTA_UPDATER),true) + LOCAL_CFLAGS += -DAB_OTA_UPDATER=1 +endif + +LOCAL_MODULE := librecovery +LOCAL_STATIC_LIBRARIES := \ + libminui \ + libcrypto_utils \ + libcrypto \ + libbase + +include $(BUILD_STATIC_LIBRARY) + # recovery (static executable) # =============================== include $(CLEAR_VARS) @@ -45,7 +70,6 @@ LOCAL_SRC_FILES := \ asn1_decoder.cpp \ device.cpp \ fuse_sdcard_provider.cpp \ - install.cpp \ recovery.cpp \ roots.cpp \ rotate_logs.cpp \ @@ -65,8 +89,6 @@ LOCAL_REQUIRED_MODULES := mkfs.f2fs endif endif -RECOVERY_API_VERSION := 3 -RECOVERY_FSTAB_VERSION := 2 LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION) LOCAL_CFLAGS += -Wno-unused-parameter -Werror LOCAL_CLANG := true @@ -76,6 +98,7 @@ LOCAL_C_INCLUDES += \ system/core/adb \ LOCAL_STATIC_LIBRARIES := \ + librecovery \ libbatterymonitor \ libbootloader_message \ libext4_utils \ |