summaryrefslogtreecommitdiffstats
path: root/etc/Android.mk
diff options
context:
space:
mode:
authorCaptain Throwback <captainthrowback@hotmail.com>2019-02-07 23:22:49 +0100
committerCaptain Throwback <captainthrowback@hotmail.com>2019-03-07 18:34:15 +0100
commit5ab596451a0d4eb56f96083fc3e3c204401132e0 (patch)
tree2db3244a9bd7caf53b9ba2d208cd54a2b15f90e2 /etc/Android.mk
parentMerge "partition: add squashfs support" into android-9.0 (diff)
downloadandroid_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.gz
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.bz2
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.lz
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.xz
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.tar.zst
android_bootable_recovery-5ab596451a0d4eb56f96083fc3e3c204401132e0.zip
Diffstat (limited to 'etc/Android.mk')
-rw-r--r--etc/Android.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/Android.mk b/etc/Android.mk
index cda0f372e..4aeb251dc 100644
--- a/etc/Android.mk
+++ b/etc/Android.mk
@@ -88,3 +88,18 @@ ifeq ($(TWRP_INCLUDE_LOGCAT), true)
include $(BUILD_PREBUILT)
endif
endif
+
+ifeq ($(TW_USE_TOOLBOX), true)
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := init.recovery.mksh.rc
+ LOCAL_MODULE_TAGS := eng
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+
+ # Cannot send to TARGET_RECOVERY_ROOT_OUT since build system wipes init*.rc
+ # during ramdisk creation and only allows init.recovery.*.rc files to be copied
+ # from TARGET_ROOT_OUT thereafter
+ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+ LOCAL_SRC_FILES := $(LOCAL_MODULE)
+ include $(BUILD_PREBUILT)
+endif