From 79d51095bb0fa75c5636e1988edd01fcf613694a Mon Sep 17 00:00:00 2001 From: Sungmin Choi Date: Mon, 4 Feb 2013 00:54:03 +0900 Subject: [PATCH] pdk: fix build error on mac About symlink, show error on Mac. To fix it, use 'rm' before 'cp'. error log: cp: symlink: /data/misc/audio/wcd9310_anc.bin: File exists make: *** [out/target/product/mako/system/etc/firmware/wcd9310/wcd9310_anc.bin] Error 1 Bug: 8127112 Change-Id: I94e1677a6742cf4350e92bdffd58e6b782cf662c --- core/pdk_config.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/pdk_config.mk b/core/pdk_config.mk index 28c01f35e..afa5b7478 100644 --- a/core/pdk_config.mk +++ b/core/pdk_config.mk @@ -110,6 +110,7 @@ $(_pdk_fusion_files) : $(_pdk_fusion_stamp) # Copy with the last-modified time preserved, never follow symbolic links. $(PRODUCT_OUT)/% : $(_pdk_fusion_intermediates)/% $(_pdk_fusion_stamp) @mkdir -p $(dir $@) + $(hide) rm -rf $@ $(hide) cp -fpPR $< $@ ifeq (true,$(TARGET_BUILD_PDK_JAVA_PLATFORM))