summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-11 01:55:57 +0200
committerTao Bao <tbao@google.com>2017-04-12 23:52:00 +0200
commit62e0bc7586077b3bde82759fb34b51b982cea20f (patch)
tree80911a34641c0fd0bd9f05edbc44e179216a3f61 /Android.mk
parentMerge "update_verifier: correct group in rc file" into oc-dev (diff)
downloadandroid_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar.gz
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar.bz2
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar.lz
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar.xz
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.tar.zst
android_bootable_recovery-62e0bc7586077b3bde82759fb34b51b982cea20f.zip
Diffstat (limited to '')
-rw-r--r--Android.mk24
1 files changed, 21 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 58b8a2240..03adf32bf 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)
@@ -34,6 +38,22 @@ LOCAL_CFLAGS := -Wall -Wno-unused-parameter -Werror
LOCAL_MODULE := libmounts
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)
+LOCAL_MODULE := librecovery
+LOCAL_STATIC_LIBRARIES := \
+ libminui \
+ libcrypto_utils \
+ libcrypto \
+ libbase
+
+include $(BUILD_STATIC_LIBRARY)
+
# recovery (static executable)
# ===============================
include $(CLEAR_VARS)
@@ -43,7 +63,6 @@ LOCAL_SRC_FILES := \
asn1_decoder.cpp \
device.cpp \
fuse_sdcard_provider.cpp \
- install.cpp \
recovery.cpp \
roots.cpp \
rotate_logs.cpp \
@@ -63,8 +82,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
@@ -74,6 +91,7 @@ LOCAL_C_INCLUDES += \
system/core/adb \
LOCAL_STATIC_LIBRARIES := \
+ librecovery \
libbatterymonitor \
libbootloader_message \
libext4_utils \