summaryrefslogtreecommitdiffstats
path: root/core/Makefile
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2015-11-02 23:07:50 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-02 14:40:43 -0800
commit0807008d14b1081bb329df517a492fbe9ac6c598 (patch)
tree97e836230456c68f91b8ebcb079a27842c8e9ed7 /core/Makefile
parent3c04f701ce5a9ee42f636deb79c5a102352e43c2 (diff)
downloadbuild-0807008d14b1081bb329df517a492fbe9ac6c598.zip
build-0807008d14b1081bb329df517a492fbe9ac6c598.tar.gz
build-0807008d14b1081bb329df517a492fbe9ac6c598.tar.bz2
build: Fix broken Darwin builds
OS X does not support the --remove-destination argument. Change-Id: I6856963048d8f05130e42d10d260cba49dd0f001
Diffstat (limited to 'core/Makefile')
-rw-r--r--core/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile
index c737a4d..c108988 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1078,8 +1078,10 @@ endif
$(hide) cp -r $(PRODUCT_OUT)/boot.img $(ota_temp_root)/BOOTABLE_IMAGES/
$(hide) cp -r $(PRODUCT_OUT)/recovery.img $(ota_temp_root)/BOOTABLE_IMAGES/
$(hide) ./build/tools/releasetools/make_recovery_patch $(ota_temp_root) $(ota_temp_root)
- $(hide) cp --remove-destination $(ota_temp_root)/SYSTEM/bin/install-recovery.sh $(TARGET_OUT)/bin/install-recovery.sh
- $(hide) cp --remove-destination $(ota_temp_root)/SYSTEM/recovery-from-boot.p $(TARGET_OUT)/recovery-from-boot.p
+ $(hide) rm -f $(TARGET_OUT)/bin/install-recovery.sh
+ $(hide) rm -f $(TARGET_OUT)/recovery-from-boot.p
+ $(hide) cp $(ota_temp_root)/SYSTEM/bin/install-recovery.sh $(TARGET_OUT)/bin/install-recovery.sh
+ $(hide) cp $(ota_temp_root)/SYSTEM/recovery-from-boot.p $(TARGET_OUT)/recovery-from-boot.p
$(RECOVERY_RESOURCE_ZIP): $(INSTALLED_RECOVERYIMAGE_TARGET)
$(hide) mkdir -p $(dir $@)