coreboot-kgpe-d16/payloads
Werner Zeh bc2d151b00 payload: Fix broken Linux kernel as payload
Commit 785a31d67e
(Makefile.inc: Move payload code to payloads/) breaks the usage of
Linux kernel as payload. The reason for it is that cbfs-files-y is
evaluated before payloads/external/Makefile.inc is sourced and as a
consequence ADDITIONAL_PAYLOAD_CONFIG is empty when it is used for
payload options. That leads to missing command line and initrd for
the kernel which in turn leads to kernel panic when it boots.
To avoid it, move the code which adds payload to cbfs completely to
payloads/extranal/Makefile.inc. This way, ADDITIONAL_PAYLOAD_CONFIG is
set right before the payload itself is added to cbfs-files-y.

I have tested this patch with a Linux kernel as well as with SeaBIOS as
payload on mc_tcu3 and it works. If someone sees impact to other
payloads just let me know.

Change-Id: I7aad352f8b3fc1fdba1875b12648b07eba14e282
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/14579
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2016-05-04 12:23:57 +02:00
..
bayou codebase: Change makefile $(shell pwd) commands to $(CURDIR) 2016-03-11 18:48:06 +01:00
coreinfo coreinfo: Update Makefile 2016-04-26 20:08:55 +02:00
external payload: Fix broken Linux kernel as payload 2016-05-04 12:23:57 +02:00
libpayload libpayload: time: split time.h from libpayload.h 2016-04-21 23:08:52 +02:00
nvramcui nvramcui: Cast u8 * values to char * to eliminate warnings 2016-05-03 20:00:07 +02:00
Kconfig payloads: Add a stable version of Memtest86+ for reproducibility 2016-04-27 19:55:40 +02:00
Makefile.inc payloads/Makefile.inc: Add phony targets 2016-04-25 16:45:26 +02:00