[coreboot-gerrit] New patch to review for coreboot: [NOTFORMERGE] xcompile: Use gcc-6 and cpp-6
Paul Menzel (paulepanter@users.sourceforge.net)
gerrit at coreboot.org
Mon May 16 10:32:11 CEST 2016
Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14822
-gerrit
commit 16352d233b91c8d7bb85bdffcac1618fba6626f5
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date: Sun May 15 21:30:25 2016 +0200
[NOTFORMERGE] xcompile: Use gcc-6 and cpp-6
Use the binaries gcc-6 and cpp-6 to build coreboot.
HOSTCC could be set using the environment variable.
```
$ make HOSTCC=gcc-6
```
TEST=Run `make` and check with `ps aux | grep gcc` that `gcc-6` is used.
Change-Id: Ia6f5cea3db834d0e5a7de68c2b2929ac3ca95ef2
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
util/xcompile/xcompile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 13a0e8f..42fc6c1 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -73,8 +73,8 @@ elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
IASL=iasl
fi
-if program_exists gcc; then
- HOSTCC=gcc
+if program_exists gcc-6; then
+ HOSTCC=gcc-6
elif program_exists cc; then
HOSTCC=cc
else
@@ -269,7 +269,7 @@ else
COMPILER_RT_FLAGS_${TARCH}:=\$(CLANG_COMPILER_RT_FLAGS_${TARCH})
endif
-CPP_${TARCH}:=${GCCPREFIX}cpp
+CPP_${TARCH}:=${GCCPREFIX}cpp-6
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}
EOF
@@ -415,14 +415,14 @@ test_architecture() {
"" "$endian" ||
testas "$gccprefix" "$TWIDTH" "$TBFDARCH" \
"TRUE" "$endian" ; } && \
- testcc "${gccprefix}gcc" "$CFLAGS_GCC" && \
+ testcc "${gccprefix}gcc-6" "$CFLAGS_GCC" && \
GCCPREFIX="$gccprefix" && \
break 3
done
done
done
if [ "invalid" != "$GCCPREFIX" ]; then
- GCC="${GCCPREFIX}gcc"
+ GCC="${GCCPREFIX}gcc-6"
fi
for clang_arch in $TCLIST invalid; do
More information about the coreboot-gerrit
mailing list