[coreboot] Patch set updated for coreboot: e6b8579 update CFLAGS for armv7
David Hendricks (dhendrix@chromium.org)
gerrit at coreboot.org
Thu Dec 27 23:53:37 CET 2012
David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2075
-gerrit
commit e6b8579e7e07521ca0fa715078fbf7bb5ec03c50
Author: David Hendricks <dhendrix at chromium.org>
Date: Thu Dec 27 13:30:55 2012 -0800
update CFLAGS for armv7
This updates $CFLAGS used for armv7. Most of them were just added
to be consistent with what u-boot does. The important ones here
are -march=armv7-a and -mthumb (to allow 16-bit Thumb instructions).
Depends-On: I6f730d017391f9ec4401cdfd34931c869df10a9e
Change-Id: Ia8a1ae22959933e06f7b996d1832cea40819f1ff
Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
util/xcompile/xcompile | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 4239176..db58648 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -106,14 +106,16 @@ detect_special_flags() {
CFLAGS="$CFLAGS -Wl,--build-id=none"
case "$architecture" in
- arm )
- # testcc "$CC" "$CFLAGS -mcpu=cortex-a9" &&
- # CFLAGS="$CFLAGS -mcpu=cortex-a9"
+ armv7 )
testcc "$CC" "\
-$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux \
--mno-thumb-interwork -march=armv7 -mno-thumb-interwork" && CFLAGS="\
-$CFLAGS -ffixed-r8 -msoft-float -marm -mabi=aapcs-linux \
--mno-thumb-interwork -march=armv7 -mno-thumb-interwork"
+$CFLAGS -fno-common -ffixed-r8 -marm -mabi=aapcs-linux -march=armv7-a \
+-mthumb -mthumb-interwork -mfloat-abi=hard -fno-builtin -pipe \
+-mno-unaligned-access -Werror -Wall -Wno-format-nonliteral \
+-Wno-format-security" && CFLAGS="\
+$CFLAGS -fno-common -ffixed-r8 -marm -mabi=aapcs-linux -march=armv7-a \
+-mthumb -mthumb-interwork -mfloat-abi=hard -fno-builtin -pipe \
+-mno-unaligned-access -Werror -Wall -Wno-format-nonliteral \
+-Wno-format-security"
;;
esac
}
More information about the coreboot
mailing list