aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Marshall <tdm.code@gmail.com>2018-02-16 23:58:21 (GMT)
committerAlessandro Astone <ales.astone@gmail.com>2019-03-31 14:36:33 (GMT)
commit7d5cb84fcb885062fd497ea5a5f7ad9f4bd0bc1a (patch)
treea6a2f3954e252304d749438b14e2aee981137fae
parentfd4a589ce3e6802cc9f2677ee90deef058b4f848 (diff)
downloadandroid_external_toybox-lineage-16.0.zip
android_external_toybox-lineage-16.0.tar.gz
android_external_toybox-lineage-16.0.tar.bz2
toybox: Use toybox for dd, getprop and grep in recoveryHEADlineage-16.0refs/changes/32/225232/3
* 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 1969cd5..db73370 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)