summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-08-06 20:01:12 +0200
committerDees_Troy <dees_troy@teamw.in>2013-08-11 15:41:48 +0200
commitf2280ffd42c667a9c950ed5a41ad0353cc8a06bf (patch)
treef44fda6e881495c65aa69a7662c860ef94aa70a0
parentMerge "Remove libjpegtwrp and use CM provided libjpeg" into twrp2.5 (diff)
downloadandroid_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar.gz
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar.bz2
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar.lz
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar.xz
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.tar.zst
android_bootable_recovery-f2280ffd42c667a9c950ed5a41ad0353cc8a06bf.zip
Diffstat (limited to '')
-rw-r--r--Android.mk5
-rw-r--r--prebuilt/Android.mk3
2 files changed, 8 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 183c79cc4..da06b9a60 100644
--- a/Android.mk
+++ b/Android.mk
@@ -73,6 +73,11 @@ ifeq ($(HAVE_SELINUX), true)
#LOCAL_STATIC_LIBRARIES += libselinux
#LOCAL_CFLAGS += -DHAVE_SELINUX -g
endif # HAVE_SELINUX
+ifneq ($(wildcard external/libselinux/Android.mk),)
+ LOCAL_C_INCLUDES += external/libselinux/include
+ LOCAL_STATIC_LIBRARIES += libselinux
+ LOCAL_CFLAGS += -DHAVE_SELINUX -g
+endif
# This binary is in the recovery ramdisk, which is otherwise a copy of root.
# It gets copied there in config/Makefile. LOCAL_MODULE_TAGS suppresses
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index c152527c8..e31ec8e31 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -49,6 +49,9 @@ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libext4_utils.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libaosprecovery.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libjpeg.so
+ifneq ($(wildcard external/libselinux/Android.mk),)
+ RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libselinux.so
+endif
ifeq ($(BUILD_ID), GINGERBREAD)
TW_NO_EXFAT := true
endif