Loading toolbox/Android.mk +13 −11 Original line number Original line Diff line number Diff line Loading @@ -44,30 +44,32 @@ ifeq ($(TW_USE_TOOLBOX), true) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) # These are the only toolbox tools in M. The rest are now in toybox. # These are the only toolbox tools in M. The rest are now in toybox. BSD_TOOLS := \ BSD_TOOLS := \ dd \ $(if $(filter $(PLATFORM_SDK_VERSION), 23 24), du) du \ OUR_TOOLS := \ OUR_TOOLS := \ iftop \ iftop \ ioctl \ ioctl \ log \ nandread \ nandread \ newfs_msdos \ newfs_msdos \ ps \ prlimit \ prlimit \ sendevent \ sendevent \ start \ start \ stop \ stop \ top \ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 25; echo $$?),0) ifneq (,$(filter $(PLATFORM_SDK_VERSION), 23)) BSD_TOOLS += \ dd \ OUR_TOOLS += \ OUR_TOOLS += \ df \ df \ ionice \ ionice \ log \ ls \ ls \ lsof \ lsof \ mount \ mount \ ps \ renice \ renice \ top \ uptime \ uptime \ watchprops watchprops endif endif Loading Loading @@ -213,18 +215,18 @@ ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22 23)) LOCAL_WHOLE_STATIC_LIBRARIES := $(patsubst %,libtoolbox_%,$(BSD_TOOLS)) LOCAL_WHOLE_STATIC_LIBRARIES := $(patsubst %,libtoolbox_%,$(BSD_TOOLS)) endif 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 # Rule to make getprop and setprop in M trees where toybox normally # provides these tools. Toybox does not allow for easy dynamic # provides these tools. Toybox does not allow for easy dynamic # configuration, so we would have to include the entire toybox binary # 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 # which takes up more space than is necessary so long as we are still # including busybox. # including busybox. ifneq ($(TW_USE_TOOLBOX), true) LOCAL_SRC_FILES += \ LOCAL_SRC_FILES += \ ../../../$(TWRP_TOOLBOX_PATH)/getprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/getprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/setprop.c ../../../$(TWRP_TOOLBOX_PATH)/setprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/ls.c OUR_TOOLS += getprop setprop OUR_TOOLS += getprop setprop ifneq ($(TW_USE_TOOLBOX), true) LOCAL_SRC_FILES += ../../../$(TWRP_TOOLBOX_PATH)/ls.c endif endif endif endif ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) Loading toybox/Android.mk +7 −4 Original line number Original line Diff line number Diff line Loading @@ -190,8 +190,8 @@ LOCAL_SRC_FILES := \ toys/posix/wc.c \ toys/posix/wc.c \ toys/posix/xargs.c toys/posix/xargs.c ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) # there are some conflicts here with AOSP-7.1 and CM-14.1 # there are some conflicts here with AOSP-7.[01] and CM-14.[01] # the following items have been removed for compatibility # the following items have been removed for compatibility # ifconfig, netcat, netstat, rfkill, switch_root # ifconfig, netcat, netstat, rfkill, switch_root LOCAL_STATIC_LIBRARIES := libcrypto_static LOCAL_STATIC_LIBRARIES := libcrypto_static Loading Loading @@ -408,7 +408,7 @@ ALL_TOOLS := \ xargs \ xargs \ yes yes ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) ALL_TOOLS += \ ALL_TOOLS += \ arp \ arp \ base64 \ base64 \ Loading @@ -416,7 +416,6 @@ ALL_TOOLS += \ dd \ dd \ df \ df \ diff \ diff \ du \ egrep \ egrep \ fgrep \ fgrep \ flock \ flock \ Loading Loading @@ -469,6 +468,10 @@ ALL_TOOLS += \ watch \ watch \ xxd \ xxd \ xzcat xzcat ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ALL_TOOLS += \ du endif # Account for master branch changes pulld into CM14.1 # Account for master branch changes pulld into CM14.1 ifneq ($(CM_BUILD),) ifneq ($(CM_BUILD),) ALL_TOOLS += \ ALL_TOOLS += \ Loading Loading
toolbox/Android.mk +13 −11 Original line number Original line Diff line number Diff line Loading @@ -44,30 +44,32 @@ ifeq ($(TW_USE_TOOLBOX), true) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) # These are the only toolbox tools in M. The rest are now in toybox. # These are the only toolbox tools in M. The rest are now in toybox. BSD_TOOLS := \ BSD_TOOLS := \ dd \ $(if $(filter $(PLATFORM_SDK_VERSION), 23 24), du) du \ OUR_TOOLS := \ OUR_TOOLS := \ iftop \ iftop \ ioctl \ ioctl \ log \ nandread \ nandread \ newfs_msdos \ newfs_msdos \ ps \ prlimit \ prlimit \ sendevent \ sendevent \ start \ start \ stop \ stop \ top \ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 25; echo $$?),0) ifneq (,$(filter $(PLATFORM_SDK_VERSION), 23)) BSD_TOOLS += \ dd \ OUR_TOOLS += \ OUR_TOOLS += \ df \ df \ ionice \ ionice \ log \ ls \ ls \ lsof \ lsof \ mount \ mount \ ps \ renice \ renice \ top \ uptime \ uptime \ watchprops watchprops endif endif Loading Loading @@ -213,18 +215,18 @@ ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22 23)) LOCAL_WHOLE_STATIC_LIBRARIES := $(patsubst %,libtoolbox_%,$(BSD_TOOLS)) LOCAL_WHOLE_STATIC_LIBRARIES := $(patsubst %,libtoolbox_%,$(BSD_TOOLS)) endif 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 # Rule to make getprop and setprop in M trees where toybox normally # provides these tools. Toybox does not allow for easy dynamic # provides these tools. Toybox does not allow for easy dynamic # configuration, so we would have to include the entire toybox binary # 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 # which takes up more space than is necessary so long as we are still # including busybox. # including busybox. ifneq ($(TW_USE_TOOLBOX), true) LOCAL_SRC_FILES += \ LOCAL_SRC_FILES += \ ../../../$(TWRP_TOOLBOX_PATH)/getprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/getprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/setprop.c ../../../$(TWRP_TOOLBOX_PATH)/setprop.c \ ../../../$(TWRP_TOOLBOX_PATH)/ls.c OUR_TOOLS += getprop setprop OUR_TOOLS += getprop setprop ifneq ($(TW_USE_TOOLBOX), true) LOCAL_SRC_FILES += ../../../$(TWRP_TOOLBOX_PATH)/ls.c endif endif endif endif ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) Loading
toybox/Android.mk +7 −4 Original line number Original line Diff line number Diff line Loading @@ -190,8 +190,8 @@ LOCAL_SRC_FILES := \ toys/posix/wc.c \ toys/posix/wc.c \ toys/posix/xargs.c toys/posix/xargs.c ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) # there are some conflicts here with AOSP-7.1 and CM-14.1 # there are some conflicts here with AOSP-7.[01] and CM-14.[01] # the following items have been removed for compatibility # the following items have been removed for compatibility # ifconfig, netcat, netstat, rfkill, switch_root # ifconfig, netcat, netstat, rfkill, switch_root LOCAL_STATIC_LIBRARIES := libcrypto_static LOCAL_STATIC_LIBRARIES := libcrypto_static Loading Loading @@ -408,7 +408,7 @@ ALL_TOOLS := \ xargs \ xargs \ yes yes ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 23; echo $$?),0) ALL_TOOLS += \ ALL_TOOLS += \ arp \ arp \ base64 \ base64 \ Loading @@ -416,7 +416,6 @@ ALL_TOOLS += \ dd \ dd \ df \ df \ diff \ diff \ du \ egrep \ egrep \ fgrep \ fgrep \ flock \ flock \ Loading Loading @@ -469,6 +468,10 @@ ALL_TOOLS += \ watch \ watch \ xxd \ xxd \ xzcat xzcat ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 24; echo $$?),0) ALL_TOOLS += \ du endif # Account for master branch changes pulld into CM14.1 # Account for master branch changes pulld into CM14.1 ifneq ($(CM_BUILD),) ifneq ($(CM_BUILD),) ALL_TOOLS += \ ALL_TOOLS += \ Loading