summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-09-01 21:40:52 +0200
committerDees Troy <dees_troy@teamw.in>2014-09-03 18:23:04 +0200
commit81742fbcbcfa4a9c23e13344e34418d0b72ea71f (patch)
tree1c9831fe7897a9b0f17429fd4ffeb256cf2a1ccc /toolbox
parentBuild block TWRP with RECOVERY_VARIANT (diff)
downloadandroid_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar.gz
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar.bz2
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar.lz
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar.xz
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.tar.zst
android_bootable_recovery-81742fbcbcfa4a9c23e13344e34418d0b72ea71f.zip
Diffstat (limited to '')
-rw-r--r--toolbox/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk
index 73868976a..053660ab1 100644
--- a/toolbox/Android.mk
+++ b/toolbox/Android.mk
@@ -7,8 +7,10 @@ TOOLS := \
getprop \
setprop
+# If busybox does not have SELinux support, provide these tools with toolbox.
+# Note that RECOVERY_BUSYBOX_TOOLS will be empty if TW_USE_TOOLBOX == true.
ifeq ($(TWHAVE_SELINUX), true)
- TOOLS += \
+ TOOLS_FOR_SELINUX := \
ls \
getenforce \
setenforce \
@@ -18,6 +20,7 @@ ifeq ($(TWHAVE_SELINUX), true)
getsebool \
setsebool \
load_policy
+ TOOLS += $(filter-out $(RECOVERY_BUSYBOX_TOOLS), $(TOOLS_FOR_SELINUX))
endif
ifeq ($(TW_USE_TOOLBOX), true)