Patrick Georgi has uploaded this change for review.

View Change

toolchain: Add POSTCAR as a stage we have a toolchain for

Fixes building vb2lib for postcar. Since postcar is an x86ism, add the
Kconfig options only for x86.

Change-Id: Ib92436bc7270c24689dcf01a47f0c6fe7661814b
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
---
M src/arch/x86/Kconfig
M toolchain.inc
2 files changed, 9 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/29395/1
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index ff26a15..7c8371e 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -35,6 +35,10 @@
bool
default n

+config ARCH_POSTCAR_X86_32
+ bool
+ default ARCH_ROMSTAGE_X86_32 && POSTCAR_STAGE
+
config ARCH_RAMSTAGE_X86_32
bool
default n
@@ -55,6 +59,10 @@
bool
default n

+config ARCH_POSTCAR_X86_64
+ bool
+ default ARCH_ROMSTAGE_X86_64 && POSTCAR_STAGE
+
config ARCH_RAMSTAGE_X86_64
bool
default n
diff --git a/toolchain.inc b/toolchain.inc
index ec57b5d..edc9d43 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -47,7 +47,7 @@
ROMCC=CCC_CC="$(ROMCC_BIN)" $(CC)
endif

-COREBOOT_STANDARD_STAGES := decompressor bootblock verstage romstage ramstage
+COREBOOT_STANDARD_STAGES := decompressor bootblock verstage romstage postcar ramstage
MAP-decompressor := bootblock

ARCHDIR-i386 := x86

To view, visit change 29395. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib92436bc7270c24689dcf01a47f0c6fe7661814b
Gerrit-Change-Number: 29395
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi@google.com>