summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-10-14 13:22:19 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-10-14 20:00:09 (GMT)
commit58712bbe4f085e92962db17d2d4ae34057d9384e (patch)
tree4014223250891318e00e2f968ffa08402d5278f7
parenteed2e02fb99f31196df75ec3dadaf80fa68fffe3 (diff)
downloadbuildroot-58712bbe4f085e92962db17d2d4ae34057d9384e.tar.gz
buildroot-58712bbe4f085e92962db17d2d4ae34057d9384e.tar.bz2
sam-ba: specify ln -sf to remove existing destination file
This fixes below build error when executing "make host-sam-ba-dirclean; make host-sam-ba-rebuild". ln -s ../../opt/sam-ba/sam-ba /opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba': File exists make: *** [/opt/test/br-x86/buildroot/output/build/host-sam-ba-2.12/.stamp_host_installed] Error 1 Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/sam-ba/sam-ba.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk
index e425503..8e24fa6 100644
--- a/package/sam-ba/sam-ba.mk
+++ b/package/sam-ba/sam-ba.mk
@@ -24,7 +24,7 @@ endef
define HOST_SAM_BA_INSTALL_CMDS
mkdir -p $(HOST_DIR)/opt/sam-ba/
cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
- ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
+ ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
endef
$(eval $(host-generic-package))