From 840576155a514163bbd3a7fa35b99f4011c3a655 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Sun, 8 Jan 2017 13:32:18 -0600 Subject: Move sh selection out of GUI makefile * The TWRP_SH_TARGET variable is only used if TW_USE_TOOLBOX == false, so it doesn't really need to be defined. * Move the busybox sh symlink creation nearer to the toolbox/busybox build rules and take advantage of LOCAL_POST_INSTALL_CMD which has been around since Android 4.3. Change-Id: I7850f9c3e113d43ad519dd5c9a7d25e36ec1c426 --- gui/Android.mk | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gui') diff --git a/gui/Android.mk b/gui/Android.mk index b21c9f424..8361bcbb4 100644 --- a/gui/Android.mk +++ b/gui/Android.mk @@ -141,22 +141,11 @@ endif TWRP_RES += $(TW_ADDITIONAL_RES) TWRP_RES_GEN := $(intermediates)/twrp -ifneq ($(TW_USE_TOOLBOX), true) - TWRP_SH_TARGET := /sbin/busybox -else - TWRP_SH_TARGET := /sbin/mksh -endif - $(TWRP_RES_GEN): mkdir -p $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH) cp -fr $(TWRP_RES) $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH) cp -fr $(TWRP_THEME_LOC)/* $(TARGET_RECOVERY_ROOT_OUT)$(TWRES_PATH) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/ -ifneq ($(TW_USE_TOOLBOX), true) -ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0) - ln -sf $(TWRP_SH_TARGET) $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh -endif -endif LOCAL_GENERATED_SOURCES := $(TWRP_RES_GEN) LOCAL_SRC_FILES := twrp $(TWRP_RES_GEN) -- cgit v1.2.3