coreboot-kgpe-d16/src/southbridge/sis/sis966
Alexandru Gagniuc 72bb66eb9c x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection
The x86 bootblock linking is a mess. The bootblock is treated in
a very special manner, and never received the update to link-time
garbage collection.

On newer x86 platforms, the boot media is no longer memory-mapped.
That means we need to do a lot more setup in the bootblock. ROMCC is
unsuitable for this task, and walkcbfs only works on memory-mapped
CBFS. We need to revise the x86 bootflow for this new case.

The approach this patch series takes is to perform CAR setup in the
bootblock, and load the following stage (either romstage or verstage)
from the boot media. This approach is not new, but has been done on
our ARM ports for years.

Since we will be adding .c files to the bootblock, it is prudent to
use link-time garbage collection. This is also consistent to how we
do things on other architectures. Unification FTW!

Change-Id: I16b78456df56e0053984a9aca9367e2542adfdc9
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/11781
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2015-10-07 03:08:58 +00:00
..
Kconfig x86: bootblock: remove linking and program flow from build system 2015-09-09 03:22:58 +00:00
Makefile.inc x86: bootblock: remove linking and program flow from build system 2015-09-09 03:22:58 +00:00
aza.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
bootblock.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
chip.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
early_ctrl.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
early_setup_car.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
early_setup_ss.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
early_smbus.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
enable_usbdebug.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
ide.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
lpc.c devicetree: Discriminate device ops scan_bus() 2015-06-04 11:19:01 +02:00
nic.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
pcie.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
reset.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
romstrap.inc Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
romstrap.ld x86/bootblock: Use LDFLAGS_bootblock to enable garbage collection 2015-10-07 03:08:58 +00:00
sata.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
sis761.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
sis966.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
sis966.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
smbus.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
usb.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
usb2.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00