Paul Kocialkowski (contact(a)paulk.fr) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11113
-gerrit
commit 06ebd55af8cff0aafd388ae7d771d7f193d28de4
Author: Paul Kocialkowski <contact(a)paulk.fr>
Date: Mon Aug 3 14:08:40 2015 +0200
libpayload: lpgcc: CFLAGS and CMDLINE order inversion
When building an external payload with lpgcc, the provided cmdline needs to be
included before libpayload-specific CFLAGS so that the include priority is the
payload first. This way, a payload using e.g. Kconfig that declares a config.h
will have its config.h included first, instead of libpayload's config.h.
Change-Id: I19b8012623e04c92a427d74904aed7f3bf5f0996
Signed-off-by: Paul Kocialkowski <contact(a)paulk.fr>
---
payloads/libpayload/bin/lpgcc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc
index 1dbd716..9346639 100755
--- a/payloads/libpayload/bin/lpgcc
+++ b/payloads/libpayload/bin/lpgcc
@@ -165,10 +165,10 @@ _LDFLAGS="-L$BASE/../lib -L$_LIBDIR $_LDSCRIPT -static"
if [ $DOLINK -eq 0 ]; then
if [ $DEBUGME -eq 1 ]; then
- echo "$DEFAULT_CC $_CFLAGS $CMDLINE"
+ echo "$DEFAULT_CC $CMDLINE $_CFLAGS"
fi
- $DEFAULT_CC $_CFLAGS $CMDLINE
+ $DEFAULT_CC $CMDLINE $_CFLAGS
else
if [ -z "${CONFIG_LP_ARCH_MIPS}" ]; then
_LIBGCC=`$DEFAULT_CC $_ARCHEXTRA -print-libgcc-file-name`
@@ -182,7 +182,7 @@ else
exit 1
fi
if [ $DEBUGME -eq 1 ]; then
- echo "$DEFAULT_CC $_CFLAGS $_LDFLAGS $HEAD_O $CMDLINE -lpayload $_LIBGCC"
+ echo "$DEFAULT_CC $_LDFLAGS $HEAD_O $CMDLINE $_CFLAGS -lpayload $_LIBGCC"
fi
# Note: $_ARCHLIBDIR/head.o must be the first object being linked, because it
@@ -190,5 +190,5 @@ else
# header to be placed below 0x2000 in the resulting image. See:
# http://www.gnu.org/software/grub/manual/multiboot/html_node/OS-image-format…
- $DEFAULT_CC $_CFLAGS $_LDFLAGS $HEAD_O $CMDLINE -lpayload $_LIBGCC
+ $DEFAULT_CC $_LDFLAGS $HEAD_O $CMDLINE $_CFLAGS -lpayload $_LIBGCC
fi
Paul Kocialkowski (contact(a)paulk.fr) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11112
-gerrit
commit 6907856a76a0f31502e12d540428c920bc9762e4
Author: Paul Kocialkowski <contact(a)paulk.fr>
Date: Mon Aug 3 14:05:33 2015 +0200
libpayload: Allow for KBUILD_DEFCONFIG override
In order to specify a defconfig to libpayload, one might want to declare
KBUILD_DEFCONFIG in the make command line and run the defconfig target.
Change-Id: I2ade6f4ff2f0b6478a0831158028ebc79b5daa81
Signed-off-by: Paul Kocialkowski <contact(a)paulk.fr>
---
payloads/libpayload/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/libpayload/Makefile b/payloads/libpayload/Makefile
index f3544d4..206785c 100644
--- a/payloads/libpayload/Makefile
+++ b/payloads/libpayload/Makefile
@@ -54,7 +54,7 @@ export CONFIG_ := CONFIG_LP_
TOPLEVEL := .
CONFIG_LP_SHELL := sh
-KBUILD_DEFCONFIG := configs/defconfig
+KBUILD_DEFCONFIG ?= configs/defconfig
UNAME_RELEASE := $(shell uname -r)
DOTCONFIG ?= .config
KCONFIG_CONFIG = $(DOTCONFIG)
Stefan Reinauer (stefan.reinauer(a)coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11111
-gerrit
commit 4ba5263a3c14f0dbc34c31d11735a793302d9c23
Author: Stefan Reinauer <reinauer(a)chromium.org>
Date: Sat Aug 1 14:40:01 2015 -0700
DO NOT SUBMIT: run 64 bit builds on all x86 boards
Change-Id: Ia3f30ead6bd4a70967de0dd66544cf301b7b592a
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
src/arch/x86/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 8905266..7b579ee 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -142,4 +142,4 @@ config COMPILE_IN_DSDT
config BOARD_HAS_64BIT
bool "Compile 64bit coreboot"
depends on ARCH_X86
- default n
+ default y
Stefan Reinauer (stefan.reinauer(a)coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10977
-gerrit
commit 2eb143b1936dc693b1b46704192b9c242447d8a0
Author: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Date: Fri Jul 17 17:26:48 2015 -0700
Kconfig: Add KCONFIG_STRICT mode
This is basically a -Werror mode for Kconfig. When exporting
KCONFIG_STRICT in the Makefile, warnings in Kconfig will produce
errors instead.
This will make it easier to spot unclean Kconfig files, settings
and dependencies.
Change-Id: I941af24c3ccb10b8b9ddc5c98327154749ebbbc6
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
util/kconfig/confdata.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c
index 235debf..5804b29 100644
--- a/util/kconfig/confdata.c
+++ b/util/kconfig/confdata.c
@@ -358,6 +358,7 @@ load:
if (def == S_DEF_USER) {
sym = sym_find(line + strlen(CONFIG_));
if (!sym) {
+ conf_warning("trying to assign non-existent symbol %s", line + strlen(CONFIG_));
sym_add_change_count(1);
goto setsym;
}
@@ -402,6 +403,13 @@ setsym:
if (modules_sym)
sym_calc_value(modules_sym);
+
+ name = getenv("KCONFIG_STRICT");
+ if (name && *name && conf_warnings) {
+ fprintf(stderr, "\nERROR: %d warnings encountered, and warnings are errors.\n\n", conf_warnings);
+ return 1;
+ }
+
return 0;
}
Stefan Reinauer (stefan.reinauer(a)coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11110
-gerrit
commit 986a0a3dc260cce841e1b2eb43d046c4cd790124
Author: Stefan Reinauer <reinauer(a)chromium.org>
Date: Fri Jul 31 17:56:03 2015 -0700
Only apply libgcc workaround on x86-32
This should probably be moved out of lib and to arch/x86,
since it does not even apply on x86-64, and ARM has its
own copy of libgcc.
Change-Id: I4fca1323927f8d37128472ed60d059f7a459fc71
Signed-off-by: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
---
src/lib/Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index bda7586..8597667 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -94,6 +94,7 @@ romstage-y += compute_ip_checksum.c
ifeq ($(CONFIG_COMPILER_GCC),y)
romstage-$(CONFIG_ARCH_ROMSTAGE_X86_32) += gcc.c
ramstage-$(CONFIG_ARCH_RAMSTAGE_X86_32) += gcc.c
+smm-$(CONFIG_ARCH_RAMSTAGE_X86_32) += gcc.c
endif
romstage-$(CONFIG_GENERIC_UDELAY) += timer.c
@@ -166,7 +167,6 @@ smm-y += region.c
smm-y += boot_device.c
smm-y += fmap.c
smm-y += cbfs.c memcmp.c
-smm-$(CONFIG_COMPILER_GCC) += gcc.c
bootblock-y += version.c
romstage-y += version.c