diff options
author | Tom Giordano <tomgiordano83@gmail.com> | 2011-02-11 21:29:39 +1100 |
---|---|---|
committer | Tom Giordano <tomgiordano83@gmail.com> | 2011-02-11 21:29:39 +1100 |
commit | 92688bffd841e622a621a71737358664e61c86e9 (patch) | |
tree | cf40a64058ce6903b5581fc7f4da14b0b86f3ab3 | |
parent | d3d7fbe9e1f48035bdbf1063a0e44dc6d0eab45d (diff) | |
download | replicant_build-92688bffd841e622a621a71737358664e61c86e9.zip replicant_build-92688bffd841e622a621a71737358664e61c86e9.tar.gz replicant_build-92688bffd841e622a621a71737358664e61c86e9.tar.bz2 |
Allow target to provide recovery kernel and init.rc
Change-Id: I41b5bd5588c68513a46ee21967b4ce3a099d62be
-rw-r--r-- | core/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile index b955ea7..25c29a5 100644 --- a/core/Makefile +++ b/core/Makefile @@ -622,8 +622,16 @@ ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY) $(BUILD_TINY_AND INSTALLED_RECOVERYIMAGE_TARGET := $(PRODUCT_OUT)/recovery.img -recovery_initrc := $(call include-path-for, recovery)/etc/init.rc -recovery_kernel := $(INSTALLED_KERNEL_TARGET) # same as a non-recovery system +ifneq ($(TARGET_RECOVERY_INITRC),) + recovery_initrc := $(TARGET_RECOVERY_INITRC) # Use target specific init.rc +else + recovery_initrc := $(call include-path-for, recovery)/etc/init.rc +endif +ifneq ($(TARGET_PREBUILT_RECOVERY_KERNEL),) + recovery_kernel := $(TARGET_PREBUILT_RECOVERY_KERNEL) # Use prebuilt recovery kernel +else + recovery_kernel := $(INSTALLED_KERNEL_TARGET) # same as a non-recovery system +endif recovery_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.img recovery_build_prop := $(INSTALLED_BUILD_PROP_TARGET) recovery_binary := $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery |