OSDN Git Service

Add all the toybox symbolic links to recovery.
authorElliott Hughes <enh@google.com>
Sat, 6 May 2017 01:02:04 +0000 (18:02 -0700)
committerElliott Hughes <enh@google.com>
Sat, 6 May 2017 01:02:04 +0000 (18:02 -0700)
We're currently shipping a full toybox binary in /sbin on the recovery image,
so it seems silly to only have the modprobe symbolic link when you could have
the full set.

Bug: N/A
Test: builds
Change-Id: I307a93dbba79d4f306eb0b20c4190b9571433c37

Android.mk

index cc0a88e..6da5696 100644 (file)
@@ -433,8 +433,5 @@ LOCAL_STATIC_LIBRARIES := $(toybox_libraries)
 LOCAL_CXX_STL := libc++_static
 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
 LOCAL_FORCE_STATIC_EXECUTABLE := true
-# TODO: is there any reason to only have modprobe in recovery?
-RECOVERY_TOOLS := modprobe
-# Install the symlinks.
-LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(RECOVERY_TOOLS),ln -sf ${LOCAL_MODULE} $(LOCAL_MODULE_PATH)/$(t);)
+LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(ALL_TOOLS),ln -sf ${LOCAL_MODULE} $(LOCAL_MODULE_PATH)/$(t);)
 include $(BUILD_EXECUTABLE)