diff --git a/src/Kconfig b/src/Kconfig index bde71a3341..05ac44c642 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -1059,4 +1059,11 @@ config POWER_BUTTON_IS_OPTIONAL help Internal option that controls ENABLE_POWER_BUTTON visibility. +config REG_SCRIPT + bool + default y if ARCH_X86 + default n + help + Internal option that controls whether we compile in register scripts. + source src/vendorcode/Kconfig diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index 3166334641..fa00ba9c18 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -111,8 +111,8 @@ ramstage-y += cbmem_info.c ramstage-y += hexdump.c romstage-y += hexdump.c -ramstage-y += reg_script.c -romstage-y += reg_script.c +ramstage-$(CONFIG_REG_SCRIPT) += reg_script.c +romstage-$(CONFIG_REG_SCRIPT) += reg_script.c ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k.c