summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-04 18:26:32 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-04-04 18:28:14 +0200
commit5c9336924f33408cf30747298968be6b0123213f (patch)
treee84af69b6dbf967c9a4122c6d855f956f6678533 /gui
parentAllow building of an OEM friendly TWRP (diff)
downloadandroid_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar.gz
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar.bz2
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar.lz
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar.xz
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.tar.zst
android_bootable_recovery-5c9336924f33408cf30747298968be6b0123213f.zip
Diffstat (limited to '')
-rw-r--r--gui/Android.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/Android.mk b/gui/Android.mk
index 19bb0bcf0..6134e3b57 100644
--- a/gui/Android.mk
+++ b/gui/Android.mk
@@ -102,6 +102,7 @@ LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/res
TWRP_RES_LOC := $(commands_recovery_local_path)/gui/devices
TWRP_RES_GEN := $(intermediates)/twrp
+ifneq ($(TW_USE_TOOLBOX), true)
$(TWRP_RES_GEN):
mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res/
cp -fr $(TWRP_RES_LOC)/common/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
@@ -110,6 +111,16 @@ $(TWRP_RES_GEN):
ln -sf /sbin/busybox $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh
ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip
ln -sf /sbin/unpigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gunzip
+else
+$(TWRP_RES_GEN):
+ mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res/
+ cp -fr $(TWRP_RES_LOC)/common/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
+ cp -fr $(TWRP_RES_LOC)/$(DEVICE_RESOLUTION)/res/* $(TARGET_RECOVERY_ROOT_OUT)/res/
+ mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin/
+ ln -sf /sbin/mksh $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh
+ ln -sf /sbin/pigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gzip
+ ln -sf /sbin/unpigz $(TARGET_RECOVERY_ROOT_OUT)/sbin/gunzip
+endif
LOCAL_GENERATED_SOURCES := $(TWRP_RES_GEN)
LOCAL_SRC_FILES := twrp $(TWRP_RES_GEN)