forked from openkylin/platform_build
Merge "Do not remove init.recovery.*.rc in recovery root"
am: f184554771
Change-Id: I73f9681e2af81e2873cf732e2f47d8d547a87e87
This commit is contained in:
commit
4cd430cb3e
|
@ -1197,7 +1197,8 @@ define build-recoveryimage-target
|
||||||
@echo Modifying ramdisk contents...
|
@echo Modifying ramdisk contents...
|
||||||
$(if $(BOARD_RECOVERY_KERNEL_MODULES), \
|
$(if $(BOARD_RECOVERY_KERNEL_MODULES), \
|
||||||
$(call build-image-kernel-modules,$(BOARD_RECOVERY_KERNEL_MODULES),$(TARGET_RECOVERY_ROOT_OUT),,$(call intermediates-dir-for,PACKAGING,depmod_recovery)))
|
$(call build-image-kernel-modules,$(BOARD_RECOVERY_KERNEL_MODULES),$(TARGET_RECOVERY_ROOT_OUT),,$(call intermediates-dir-for,PACKAGING,depmod_recovery)))
|
||||||
$(hide) rm -f $(TARGET_RECOVERY_ROOT_OUT)/init*.rc
|
# Removes $(TARGET_RECOVERY_ROOT_OUT)/init*.rc EXCEPT init.recovery*.rc.
|
||||||
|
$(hide) find $(TARGET_RECOVERY_ROOT_OUT) -maxdepth 1 -name 'init*.rc' -type f -not -name "init.recovery.*.rc" | xargs rm -f
|
||||||
$(hide) cp -f $(recovery_initrc) $(TARGET_RECOVERY_ROOT_OUT)/
|
$(hide) cp -f $(recovery_initrc) $(TARGET_RECOVERY_ROOT_OUT)/
|
||||||
$(hide) cp $(TARGET_ROOT_OUT)/init.recovery.*.rc $(TARGET_RECOVERY_ROOT_OUT)/ || true # Ignore error when the src file doesn't exist.
|
$(hide) cp $(TARGET_ROOT_OUT)/init.recovery.*.rc $(TARGET_RECOVERY_ROOT_OUT)/ || true # Ignore error when the src file doesn't exist.
|
||||||
$(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res
|
$(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/res
|
||||||
|
|
Loading…
Reference in New Issue