aboutsummaryrefslogtreecommitdiff
path: root/toolchain/toolchain-external
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-29 12:28:19 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-01 16:30:13 +0200
commit22a59e1bc2cf8040fc22facbd70e6c3fb5b72981 (patch)
tree0f674f8d12c0d4a068a897585c17b7f8f430f467 /toolchain/toolchain-external
parent4cc236784e5783fef0fd7bf9437e55a38cc8c291 (diff)
downloadbuildroot-22a59e1bc2cf8040fc22facbd70e6c3fb5b72981.tar.gz
buildroot-22a59e1bc2cf8040fc22facbd70e6c3fb5b72981.tar.bz2
toolchain-external: fix rebuild/reinstall for Linaro toolchains
For Linaro toolchains, a special post install staging hook is used to create two symlinks needed for the dynamic loader to find the libraries. However, the way the link is created prevents a 'make toolchain-external-reinstall' from succeeding, because the symlink already exists and points to a directory: ln -sf . /home/thomas/projets/outputs/training/target/lib/arm-linux-gnueabihf ln: '/home/thomas/projets/outputs/training/target/lib/arm-linux-gnueabihf/.': cannot overwrite directory This commit adjust the hook to pass the '-n' option so that the link name is treated as a normal file if it is a symbolic link to a directory. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'toolchain/toolchain-external')
-rw-r--r--toolchain/toolchain-external/toolchain-external.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index fd796a05b1..35bba310b2 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -239,18 +239,18 @@ endif
# {/usr,}/lib/arm-linux-gnueabihf, but Buildroot copies them to
# {/usr,}/lib, so we need to create a symbolic link.
define TOOLCHAIN_EXTERNAL_LINARO_ARMHF_SYMLINK
- ln -sf . $(TARGET_DIR)/lib/arm-linux-gnueabihf
- ln -sf . $(TARGET_DIR)/usr/lib/arm-linux-gnueabihf
+ ln -snf . $(TARGET_DIR)/lib/arm-linux-gnueabihf
+ ln -snf . $(TARGET_DIR)/usr/lib/arm-linux-gnueabihf
endef
define TOOLCHAIN_EXTERNAL_LINARO_ARMEBHF_SYMLINK
- ln -sf . $(TARGET_DIR)/lib/armeb-linux-gnueabihf
- ln -sf . $(TARGET_DIR)/usr/lib/armeb-linux-gnueabihf
+ ln -snf . $(TARGET_DIR)/lib/armeb-linux-gnueabihf
+ ln -snf . $(TARGET_DIR)/usr/lib/armeb-linux-gnueabihf
endef
define TOOLCHAIN_EXTERNAL_LINARO_AARCH64_SYMLINK
- ln -sf . $(TARGET_DIR)/lib/aarch64-linux-gnu
- ln -sf . $(TARGET_DIR)/usr/lib/aarch64-linux-gnu
+ ln -snf . $(TARGET_DIR)/lib/aarch64-linux-gnu
+ ln -snf . $(TARGET_DIR)/usr/lib/aarch64-linux-gnu
endef
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM201305),y)