summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2017-01-08 20:32:18 +0100
committerMatt Mower <mowerm@gmail.com>2017-01-18 20:04:35 +0100
commit840576155a514163bbd3a7fa35b99f4011c3a655 (patch)
tree271af3f24c6e92e29e6acfbfbceea0bb18d314c3 /Android.mk
parentMove pigz symlinks out of GUI makefile (diff)
downloadandroid_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar.gz
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar.bz2
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar.lz
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar.xz
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.tar.zst
android_bootable_recovery-840576155a514163bbd3a7fa35b99f4011c3a655.zip
Diffstat (limited to '')
-rw-r--r--Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1a4b9c0c6..8189ffae3 100644
--- a/Android.mk
+++ b/Android.mk
@@ -380,6 +380,11 @@ else
endif
ifneq ($(TW_USE_TOOLBOX), true)
LOCAL_ADDITIONAL_DEPENDENCIES += busybox_symlinks
+ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
+ LOCAL_POST_INSTALL_CMD := \
+ $(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/sbin && \
+ ln -sf /sbin/busybox $(TARGET_RECOVERY_ROOT_OUT)/sbin/sh
+ endif
else
ifneq ($(wildcard external/toybox/Android.mk),)
LOCAL_ADDITIONAL_DEPENDENCIES += toybox_symlinks
@@ -391,6 +396,7 @@ else
LOCAL_ADDITIONAL_DEPENDENCIES += unzip
endif
endif
+
ifneq ($(TW_NO_EXFAT), true)
LOCAL_ADDITIONAL_DEPENDENCIES += mkexfatfs fsckexfat
ifneq ($(TW_NO_EXFAT_FUSE), true)