aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Marshall <tdm.code@gmail.com>2018-02-17 00:58:21 +0100
committerAlessandro Astone <ales.astone@gmail.com>2019-03-31 16:36:33 +0200
commit7d5cb84fcb885062fd497ea5a5f7ad9f4bd0bc1a (patch)
treea6a2f3954e252304d749438b14e2aee981137fae
parentfd4a589ce3e6802cc9f2677ee90deef058b4f848 (diff)
downloadandroid_external_toybox-7d5cb84fcb885062fd497ea5a5f7ad9f4bd0bc1a.tar.gz
android_external_toybox-7d5cb84fcb885062fd497ea5a5f7ad9f4bd0bc1a.tar.bz2
android_external_toybox-7d5cb84fcb885062fd497ea5a5f7ad9f4bd0bc1a.zip
toybox: Use toybox for dd, getprop and grep in recovery
* dd and getprop are currently provided by toolbox in the main system. * grep is currently provided by BSD grep in the main system. The toybox versions of these tools work well enough and we don't want to give up the space needed to us the main system tools. Change-Id: Ia7295ed991a8452c7b50d6d783a6a034f8e71365
-rw-r--r--Android.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 1969cd5e..db73370b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -399,6 +399,12 @@ ALL_TOOLS := \
yes \
zcat \
+ALL_RECOVERY_TOOLS := \
+ $(ALL_TOOLS) \
+ dd \
+ getprop \
+ grep
+
############################################
# toybox for /system
############################################
@@ -442,5 +448,5 @@ LOCAL_STATIC_LIBRARIES := $(toybox_libraries)
LOCAL_CXX_STL := libc++_static
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_FORCE_STATIC_EXECUTABLE := true
-LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(ALL_TOOLS),ln -sf ${LOCAL_MODULE} $(LOCAL_MODULE_PATH)/$(t);)
+LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(ALL_RECOVERY_TOOLS),ln -sf ${LOCAL_MODULE} $(LOCAL_MODULE_PATH)/$(t);)
include $(BUILD_EXECUTABLE)