[coreboot] New patch to review for coreboot: c3e7b15 crossgcc: update to acpica-20121018
Idwer Vollering (vidwer@gmail.com)
gerrit at coreboot.org
Sun Oct 21 02:45:34 CEST 2012
Idwer Vollering (vidwer at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1596
-gerrit
commit c3e7b153e3ac8443152ca751a4fcf9bef73250fb
Author: Idwer Vollering <vidwer at gmail.com>
Date: Sun Oct 21 02:43:47 2012 +0200
crossgcc: update to acpica-20121018
This patch updates crossgcc to download acpica-20121018 and compile iasl.
To do this, changes to util/crossgcc/buildgcc are necessary.
Change-Id: Ib565c7185eccdce76783f4520bed04539de50962
Signed-off-by: Idwer Vollering <vidwer at gmail.com>
---
util/crossgcc/buildgcc | 15 +++----
.../acpica-unix-20121018_unknown_warnings.patch | 46 ++++++++++++++++++++++
2 files changed, 54 insertions(+), 7 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 71f4e16..ff67e02 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -40,7 +40,7 @@ GDB_VERSION=7.4.1
W32API_VERSION=3.17-2
W32API_VERSION_SHORT=3.17
MINGWRT_VERSION=3.18
-IASL_VERSION=20120420
+IASL_VERSION=20121018
PYTHON_VERSION=2.7.2
EXPAT_VERSION=2.0.1
@@ -591,14 +591,15 @@ if [ -f $IASL_DIR/source/compiler/.success ]; then
else
printf "Building IASL ${IASL_VERSION} ... "
(
- cd $IASL_DIR/source/compiler
+ cd $IASL_DIR/generate/unix
export PATH=$PATH:$DESTDIR$TARGETDIR/bin
- rm -f .failed
+ rm -f ../../source/compiler/.failed
CFLAGS="$HOSTCFLAGS"
- $MAKE CC="$CC" || touch .failed
- rm -f $DESTDIR$TARGETDIR/bin/iasl || touch .failed
- cp iasl $DESTDIR$TARGETDIR/bin || touch .failed
- if [ ! -f .failed ]; then touch .success; fi
+ $MAKE CC="$CC" iasl || touch ../../source/compiler/.failed
+ rm -f $DESTDIR$TARGETDIR/bin/iasl || touch ../../source/compiler/.failed
+ if [ -d bin32 ] ; then cp bin32/iasl $DESTDIR$TARGETDIR/bin || touch ../../source/compiler/.failed ; fi
+ if [ -d bin64 ] ; then cp bin64/iasl $DESTDIR$TARGETDIR/bin || touch ../../source/compiler/.failed ; fi
+ if [ ! -f ../../source/compiler/.failed ]; then touch ../../source/compiler/.success; fi
) > $IASL_DIR/source/compiler/crossgcc-build.log 2>&1
test -r $IASL_DIR/source/compiler/.failed && printf "${RED}failed${NC}\n" || \
printf "${green}ok${NC}\n"
diff --git a/util/crossgcc/patches/acpica-unix-20121018_unknown_warnings.patch b/util/crossgcc/patches/acpica-unix-20121018_unknown_warnings.patch
new file mode 100644
index 0000000..2484817
--- /dev/null
+++ b/util/crossgcc/patches/acpica-unix-20121018_unknown_warnings.patch
@@ -0,0 +1,46 @@
+diff -ur acpica-unix-20121018/generate/unix/Makefile.config acpica-unix-20121018.patched/generate/unix/Makefile.config
+--- acpica-unix-20121018/generate/unix/Makefile.config 2012-10-18 21:23:26.000000000 +0200
++++ acpica-unix-20121018.patched/generate/unix/Makefile.config 2012-10-21 02:24:34.667999649 +0200
+@@ -104,6 +104,7 @@
+ # automatically included in -Wall.
+ #
+ CFLAGS += \
++ -O \
+ $(BITSFLAG) \
+ -D$(HOST) \
+ -D_GNU_SOURCE \
+@@ -114,7 +115,6 @@
+
+ CWARNINGFLAGS = \
+ -ansi \
+- -Wall \
+ -Wbad-function-cast \
+ -Wdeclaration-after-statement \
+ -Werror \
+@@ -131,19 +131,11 @@
+ # gcc 4+ flags
+ #
+ CWARNINGFLAGS += \
+- -Waddress \
+ -Waggregate-return \
+ -Wchar-subscripts \
+- -Wempty-body \
+- -Wlogical-op \
+ -Wmissing-declarations \
+- -Wmissing-field-initializers \
+- -Wmissing-parameter-type \
+ -Wnested-externs \
+- -Wold-style-declaration \
+- -Wold-style-definition \
+- -Wredundant-decls \
+- -Wtype-limits
++ -Wold-style-definition
+
+ #
+ # Extra warning flags (possible future use)
+Only in acpica-unix-20121018.patched/generate/unix/acpibin: obj32
+Only in acpica-unix-20121018.patched/generate/unix/acpiexec: obj32
+Only in acpica-unix-20121018.patched/generate/unix/acpihelp: obj32
+Only in acpica-unix-20121018.patched/generate/unix/acpinames: obj32
+Only in acpica-unix-20121018.patched/generate/unix/acpisrc: obj32
+Only in acpica-unix-20121018.patched/generate/unix: bin32
More information about the coreboot
mailing list