summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-14 14:28:21 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-15 10:07:16 +0200
commitee46712da0d02b2f11923e89bcddb7dc84c0939f (patch)
treee806a8e39d4dbca076d623d87f971a587491f44d
parent004295d86d7bbd6cfb0ce9767cbc1a2adbf61891 (diff)
downloadcoreboot-ee46712da0d02b2f11923e89bcddb7dc84c0939f.tar.xz
xcompile: actually use "special compile flags" idea
xcompile used to test for special ARM flags - that were empty. Meanwhile, -Wa,--divide, which is only useful on i386-elf was tested for on arm and aarch64, too Change-Id: I1a5a1bc40fa1040d0939038b073aef31c72d0c6f Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5743 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r--util/xcompile/xcompile14
1 files changed, 4 insertions, 10 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 81d5b3cda5..e256c0d749 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -125,22 +125,16 @@ detect_special_flags() {
testcc "$CC" "$CFLAGS -fuse-ld=bfd" &&
CFLAGS="$CFLAGS -fuse-ld=bfd" && LINKER_SUFFIX='.bfd'
- testcc "$CC" "$CFLAGS -Wa,--divide" &&
- CFLAGS="$CFLAGS -Wa,--divide"
testcc "$CC" "$CFLAGS -fno-stack-protector"&&
CFLAGS="$CFLAGS -fno-stack-protector"
testcc "$CC" "$CFLAGS -Wl,--build-id=none" &&
CFLAGS="$CFLAGS -Wl,--build-id=none"
case "$architecture" in
- armv7 )
- ARMFLAGS=""
- testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS"
- ;;
- aarch64 )
- ARMFLAGS=""
- testcc "$CC" "$CFLAGS $ARMFLAGS"&&CFLAGS="$CFLAGS $ARMFLAGS"
- ;;
+ x86)
+ testcc "$CC" "$CFLAGS -Wa,--divide" &&
+ CFLAGS="$CFLAGS -Wa,--divide"
+ ;;
esac
}