From f44bb4f4c13c225db8a83460432fa38568365016 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Thu, 11 Aug 2011 14:44:55 -0500 Subject: [PATCH] buildgcc: improve portability `cp --remove-destination` isn't as portable as `rm -f` and `cp`. Change-Id: Ib05bfc121f7a0b467f8104920e14fbd02191585f Signed-off-by: Jonathan A. Kollasch Reviewed-on: http://review.coreboot.org/150 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/crossgcc/buildgcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index e97a65185..e58b23ed4 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" -- 2.25.1