toolchain-external: make extraction idempotent
commitb731dc7bfb9c8ce7be502711f0b44ccab5515f1d
authorArnout Vandecappelle <arnout@mind.be>
Tue, 3 Nov 2015 23:09:35 +0000 (4 00:09 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 4 Nov 2015 07:31:09 +0000 (4 08:31 +0100)
treebe8170d4fd7518d250602890c25d644e93b9b389
parente4b1fa69cdd46ea9874de243f52c6938de19674d
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>
toolchain/toolchain-external/toolchain-external.mk