Fix the reg_script stuff to not be used in ARM builds and not break them.

The reg_script stuff only makes sense for those platforms that
need it: ARM V8 and all x86. Have its usage controlled by a config variable.

BUG=None
TEST=the broken nyan build is fixed.
BRANCH=None

Change-Id: Iad54773f412e2d829e68b98fd845cd72ae408ee1
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Reviewed-on: https://chromium-review.googlesource.com/175530
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
Ronald G. Minnich 2013-11-01 15:44:50 -07:00 committed by chrome-internal-fetch
commit 8d4d61be7d
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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