From: Axel Lin <axel.lin@ingics.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] sam-ba: specify ln -sf to remove existing destination file
Date: Mon, 14 Oct 2013 21:22:19 +0800 [thread overview]
Message-ID: <1381756939.15266.2.camel@phoenix> (raw)
In-Reply-To: <1381756890.15266.1.camel@phoenix>
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>
---
package/sam-ba/sam-ba.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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))
--
1.8.1.2
next prev parent reply other threads:[~2013-10-14 13:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-14 13:21 [Buildroot] [PATCH 1/3] ncftp: specify ln -sf to remove existing destination files Axel Lin
2013-10-14 13:22 ` Axel Lin [this message]
2013-10-14 13:23 ` [Buildroot] [PATCH 3/3] tcl: specify ln -sf to remove existing destination file Axel Lin
2013-10-14 20:00 ` [Buildroot] [PATCH 1/3] ncftp: specify ln -sf to remove existing destination files Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381756939.15266.2.camel@phoenix \
--to=axel.lin@ingics.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.