[coreboot-gerrit] Patch set updated for coreboot: payloads/external: GRUB2: Fix build error.
Denis 'GNUtoo' Carikli (GNUtoo@no-log.org)
gerrit at coreboot.org
Tue Feb 14 17:06:20 CET 2017
Denis 'GNUtoo' Carikli (GNUtoo at no-log.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18244
-gerrit
commit 99214a2ecd246236070dee587fc84ced68395fba
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date: Wed Jan 11 21:56:34 2017 +0100
payloads/external: GRUB2: Fix build error.
Without that fix, when bugilding GRUB2 we have:
../grub-core/script/yylex.l:34:0: error: "yyalloc" redefined [-Werror]
#define yyalloc(size, scanner) (grub_malloc((size)))
grub_script.yy.c:104:0: note: this is the location of the previous definition
../grub-core/script/yylex.l:35:0: error: "yyfree" redefined [-Werror]
#define yyfree(ptr, scanner) (grub_free((ptr)))
grub_script.yy.c:108:0: note: this is the location of the previous definition
../grub-core/script/yylex.l:36:0: error: "yyrealloc" redefined [-Werror]
#define yyrealloc(ptr, size, scanner) (grub_realloc((ptr), (size)))
grub_script.yy.c:106:0: note: this is the location of the previous definition
Change-Id: I0aed7d4b823dfdf447a54a42ad23185fee120122
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
payloads/external/GRUB2/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile
index c257f0e..1e93109 100644
--- a/payloads/external/GRUB2/Makefile
+++ b/payloads/external/GRUB2/Makefile
@@ -38,7 +38,7 @@ config: checkout
rm -rf grub2/build
mkdir grub2/build
cd grub2 && ./autogen.sh
- cd grub2/build && ../configure BUILD_CC="$(HOSTCC)" CC="$(HOSTCC)" \
+ cd grub2/build && ../configure --disable-werror BUILD_CC="$(HOSTCC)" CC="$(HOSTCC)" \
TARGET_CC="$(CC)" \
TARGET_OBJCOPY="$(OBJCOPY)" TARGET_STRIP="$(STRIP)" CFLAGS=-O2 TARGET_CFLAGS=-Os --with-platform=coreboot
More information about the coreboot-gerrit
mailing list