summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kutepov <its.kutepov@gmail.com>2018-03-21 21:05:39 +0100
committerDees Troy <dees_troy@teamw.in>2018-06-05 15:07:45 +0200
commitff9d097a9dd6bad76cba8757e8b06165e016e357 (patch)
treeea5a64004658f2a4dbbeea019a3205d729a84eb9
parentCleanup TWRP flags (diff)
downloadandroid_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar.gz
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar.bz2
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar.lz
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar.xz
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.tar.zst
android_bootable_recovery-ff9d097a9dd6bad76cba8757e8b06165e016e357.zip
-rw-r--r--toolbox/Android.mk20
1 files changed, 12 insertions, 8 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk
index b8f4d2e74..bf77ba26b 100644
--- a/toolbox/Android.mk
+++ b/toolbox/Android.mk
@@ -47,14 +47,18 @@ ifeq ($(TW_USE_TOOLBOX), true)
$(if $(filter $(PLATFORM_SDK_VERSION), 23 24), du)
OUR_TOOLS := \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; iftop),) \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; ioctl),) \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; nandread),) \
- newfs_msdos \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; prlimit),) \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; sendevent),) \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; start),) \
- $(if $(shell test $(PLATFORM_SDK_VERSION) -lt 26; stop),) \
+ newfs_msdos
+
+ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 26; echo $$?),0)
+ OUR_TOOLS += \
+ iftop \
+ ioctl \
+ nandread \
+ prlimit \
+ sendevent \
+ start \
+ stop
+ endif
ifneq (,$(filter $(PLATFORM_SDK_VERSION), 23))
BSD_TOOLS += \