summaryrefslogtreecommitdiff
path: root/util/crossgcc
diff options
context:
space:
mode:
authorJonathan A. Kollasch <jakllsch@kollasch.net>2011-08-11 14:44:55 -0500
committerPatrick Georgi <patrick@georgi-clan.de>2011-08-12 09:24:50 +0200
commitf44bb4f4c13c225db8a83460432fa38568365016 (patch)
tree4b61a3aebafcfe076699967c8dbe35a70b16ade7 /util/crossgcc
parent2aac3f6c51d6eb13da97f801d00bb73a2cdd4fdd (diff)
downloadcoreboot-f44bb4f4c13c225db8a83460432fa38568365016.tar.xz
buildgcc: improve portability
`cp --remove-destination` isn't as portable as `rm -f` and `cp`. Change-Id: Ib05bfc121f7a0b467f8104920e14fbd02191585f Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Reviewed-on: http://review.coreboot.org/150 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-xutil/crossgcc/buildgcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index e97a651851..e58b23ed45 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -463,7 +463,8 @@ printf "Building IASL ${IASL_VERSION} ... "
rm -f .failed
CFLAGS="$HOSTCFLAGS"
$MAKE || touch .failed
- cp --remove-destination iasl* $DESTDIR$TARGETDIR/bin || touch .failed
+ rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed
+ cp iasl $DESTDIR$TARGETDIR/bin || touch .failed
if [ ! -f .failed ]; then touch .success; fi
) &> $IASL_DIR/compiler/crossgcc-build.log
test -r $IASL_DIR/compiler/.failed && printf "${RED}failed${NC}\n" || printf "${green}ok${NC}\n"