summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2018-10-31 14:24:47 +0100
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-11-08 07:41:32 +0000
commit29eeeceb2d9ec96245aa678f68caafeb3af5b9f9 (patch)
tree663c30e8092b541c24a793d48c368e59dcb422c8 /src/arch
parent4cec6b6d93bef15ce637c3621620e2bc57c07b55 (diff)
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> Reviewed-on: https://review.coreboot.org/29395 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/Kconfig8
-rw-r--r--src/arch/x86/Makefile.inc4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index ff26a15449..7c8371eff1 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -35,6 +35,10 @@ config ARCH_ROMSTAGE_X86_32
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 @@ config ARCH_ROMSTAGE_X86_64
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/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 730bc838fb..fcc57c59d1 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -16,6 +16,10 @@
## GNU General Public License for more details.
##
+ifeq ($(CONFIG_POSTCAR_STAGE),y)
+$(eval $(call init_standard_toolchain,postcar))
+endif
+
################################################################################
# i386 specific tools
NVRAMTOOL:=$(objutil)/nvramtool/nvramtool