Merge "Makefile: exclude cache symlink on devices with no cache partition" into nyc-mr1-dev
This commit is contained in:
commit
216040ca0b
1 changed files with 4 additions and 1 deletions
|
@ -944,7 +944,7 @@ define build-recoveryimage-target
|
||||||
$(hide) mkdir -p $(TARGET_RECOVERY_OUT)
|
$(hide) mkdir -p $(TARGET_RECOVERY_OUT)
|
||||||
$(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/etc $(TARGET_RECOVERY_ROOT_OUT)/sdcard $(TARGET_RECOVERY_ROOT_OUT)/tmp
|
$(hide) mkdir -p $(TARGET_RECOVERY_ROOT_OUT)/etc $(TARGET_RECOVERY_ROOT_OUT)/sdcard $(TARGET_RECOVERY_ROOT_OUT)/tmp
|
||||||
@echo Copying baseline ramdisk...
|
@echo Copying baseline ramdisk...
|
||||||
$(hide) rsync -a --exclude=etc --exclude=sdcard $(TARGET_ROOT_OUT) $(TARGET_RECOVERY_OUT) # "cp -Rf" fails to overwrite broken symlinks on Mac.
|
$(hide) rsync -a --exclude=etc --exclude=sdcard $(IGNORE_CACHE_LINK) $(TARGET_ROOT_OUT) $(TARGET_RECOVERY_OUT) # "cp -Rf" fails to overwrite broken symlinks on Mac.
|
||||||
@echo Modifying ramdisk contents...
|
@echo Modifying ramdisk contents...
|
||||||
$(hide) rm -f $(TARGET_RECOVERY_ROOT_OUT)/init*.rc
|
$(hide) rm -f $(TARGET_RECOVERY_ROOT_OUT)/init*.rc
|
||||||
$(hide) cp -f $(recovery_initrc) $(TARGET_RECOVERY_ROOT_OUT)/
|
$(hide) cp -f $(recovery_initrc) $(TARGET_RECOVERY_ROOT_OUT)/
|
||||||
|
@ -1391,6 +1391,9 @@ $(INSTALLED_CACHEIMAGE_TARGET): $(INTERNAL_USERIMAGES_DEPS) $(INTERNAL_CACHEIMAG
|
||||||
cacheimage-nodeps: | $(INTERNAL_USERIMAGES_DEPS)
|
cacheimage-nodeps: | $(INTERNAL_USERIMAGES_DEPS)
|
||||||
$(build-cacheimage-target)
|
$(build-cacheimage-target)
|
||||||
|
|
||||||
|
else # BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE
|
||||||
|
# we need to ignore the broken cache link when doing the rsync
|
||||||
|
IGNORE_CACHE_LINK := --exclude=cache
|
||||||
endif # BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE
|
endif # BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue