summaryrefslogtreecommitdiffstats
path: root/toolbox/Android.mk
diff options
context:
space:
mode:
authorD. Andrei Măceș <dmaces@nd.edu>2016-12-22 23:14:21 +0100
committerDees Troy <dees_troy@teamw.in>2017-02-23 16:00:44 +0100
commit9ce12ec20d8655fe602de91de8152bba07d7054c (patch)
treeb6a08a1b2c27c9be1d596c00ef5dc6ae3769dbec /toolbox/Android.mk
parentFix "ordered comparison between pointer and zero". (diff)
downloadandroid_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar.gz
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar.bz2
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar.lz
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar.xz
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.tar.zst
android_bootable_recovery-9ce12ec20d8655fe602de91de8152bba07d7054c.zip
Diffstat (limited to 'toolbox/Android.mk')
-rw-r--r--toolbox/Android.mk24
1 files changed, 13 insertions, 11 deletions
diff --git a/toolbox/Android.mk b/toolbox/Android.mk
index 916080213..45edd01c7 100644
--- a/toolbox/Android.mk
+++ b/toolbox/Android.mk
@@ -44,30 +44,32 @@ ifeq ($(TW_USE_TOOLBOX), true)
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0)
# These are the only toolbox tools in M. The rest are now in toybox.
BSD_TOOLS := \
- dd \
- du \
+ $(if $(filter $(PLATFORM_SDK_VERSION), 23 24), du)
OUR_TOOLS := \
iftop \
ioctl \
- log \
nandread \
newfs_msdos \
- ps \
prlimit \
sendevent \
start \
stop \
- top \
- ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 25; echo $$?),0)
+ ifneq (,$(filter $(PLATFORM_SDK_VERSION), 23))
+ BSD_TOOLS += \
+ dd \
+
OUR_TOOLS += \
df \
ionice \
+ log \
ls \
lsof \
mount \
+ ps \
renice \
+ top \
uptime \
watchprops
endif
@@ -213,19 +215,19 @@ ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22 23))
LOCAL_WHOLE_STATIC_LIBRARIES := $(patsubst %,libtoolbox_%,$(BSD_TOOLS))
endif
-ifneq (,$(filter $(PLATFORM_SDK_VERSION), 23 24))
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0)
# Rule to make getprop and setprop in M trees where toybox normally
# provides these tools. Toybox does not allow for easy dynamic
# configuration, so we would have to include the entire toybox binary
# which takes up more space than is necessary so long as we are still
# including busybox.
+ifneq ($(TW_USE_TOOLBOX), true)
LOCAL_SRC_FILES += \
../../../$(TWRP_TOOLBOX_PATH)/getprop.c \
- ../../../$(TWRP_TOOLBOX_PATH)/setprop.c
+ ../../../$(TWRP_TOOLBOX_PATH)/setprop.c \
+ ../../../$(TWRP_TOOLBOX_PATH)/ls.c
OUR_TOOLS += getprop setprop
- ifneq ($(TW_USE_TOOLBOX), true)
- LOCAL_SRC_FILES += ../../../$(TWRP_TOOLBOX_PATH)/ls.c
- endif
+endif
endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0)
# Rule for making start and stop in N trees