summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2015-11-04 00:09:35 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-04 08:31:09 +0100
commitb731dc7bfb9c8ce7be502711f0b44ccab5515f1d (patch)
treebe8170d4fd7518d250602890c25d644e93b9b389
parente4b1fa69cdd46ea9874de243f52c6938de19674d (diff)
downloadbuildroot-b731dc7bfb9c8ce7be502711f0b44ccab5515f1d.tar.gz
buildroot-b731dc7bfb9c8ce7be502711f0b44ccab5515f1d.zip
toolchain-external: make extraction idempotent
Commit 23ffa7ec first extracts to the toolchain-external build directory and then moves everything to $(HOST_DIR)/opt/ext-toolchain. However, this is not idempotent, because moving directories over existing ones doesn't always work, particularly if the target is on another device. Simply remove the destination contents before moving. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--toolchain/toolchain-external/toolchain-external.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index 18e6808fc7..958ab183c2 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -483,6 +483,7 @@ TOOLCHAIN_EXTERNAL_EXCLUDES = usr/lib/locale/*
# since it's actually a fairly special package, we need it to be moved
# into TOOLCHAIN_EXTERNAL_INSTALL_DIR.
define TOOLCHAIN_EXTERNAL_MOVE
+ rm -rf $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/*
mkdir -p $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)
mv $(@D)/* $(TOOLCHAIN_EXTERNAL_INSTALL_DIR)/
endef
OpenPOWER on IntegriCloud