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
This commit is contained in:
Sungmin Choi
2013-02-04 00:54:03 +09:00
committed by Iliyan Malchev
parent f05c4f7524
commit 79d51095bb

View File

@@ -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))