aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2015-11-06 16:27:01 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:34:35 -0800
commitacc855f711ae7bce20e4fc896c829e135a6801fc (patch)
treea7be8c1fc394571765cda5e8b27c12c92ec1cc7d /Android.mk
parente1ba5bc721daf65598feb2b5c46d1c06fac63ec4 (diff)
downloadbootable_recovery-acc855f711ae7bce20e4fc896c829e135a6801fc.zip
bootable_recovery-acc855f711ae7bce20e4fc896c829e135a6801fc.tar.gz
bootable_recovery-acc855f711ae7bce20e4fc896c829e135a6801fc.tar.bz2
recovery: Handle oemunlock command
* Conditionally compile support based on TARGET_HAVE_OEMLOCK. * Use liboemunlock for device specific support. Change-Id: I1cf1fef8e30075b0586bb86625b7df49723974cb
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index c5fdbd1..55adbaa 100644
--- a/Android.mk
+++ b/Android.mk
@@ -102,6 +102,13 @@ LOCAL_STATIC_LIBRARIES := \
libext2_blkid \
libext2_uuid
+# OEMLOCK support requires a device specific liboemlock be supplied.
+# See comments in recovery.cpp for the API.
+ifeq ($(TARGET_HAVE_OEMLOCK), true)
+ LOCAL_CFLAGS += -DHAVE_OEMLOCK
+ LOCAL_STATIC_LIBRARIES += liboemlock
+endif
+
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
ifeq ($(TARGET_USE_MDTP), true)