summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-08 13:45:27 +0000
committerTom Rini <trini@ti.com>2013-03-15 16:13:59 -0400
commit5c1a7ea6adf80decf6a9e998afc6a26508c68dbc (patch)
treedc8efcd9bb9dbaac6b71168817de6be517f9dfab /config.mk
parentc8a311d9dd2f090df12c1e3f1db272751399d367 (diff)
downloadu-boot-imx-5c1a7ea6adf80decf6a9e998afc6a26508c68dbc.zip
u-boot-imx-5c1a7ea6adf80decf6a9e998afc6a26508c68dbc.tar.gz
u-boot-imx-5c1a7ea6adf80decf6a9e998afc6a26508c68dbc.tar.bz2
__HAVE_ARCH_GENERIC_BOARD controls availabilty of generic board
We are introducing a new unified board setup. Add a check to make sure that board config files do not define CONFIG_SYS_GENERIC_BOARD unless their architecture defines __HAVE_ARCH_GENERIC_BOARD __HAVE_ARCH_GENERIC_BOARD will currently not be the default setting, but we can switch this later when most architecture support generic board. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index b7cd481..9886415 100644
--- a/config.mk
+++ b/config.mk
@@ -221,6 +221,14 @@ ifeq ($(CONFIG_SPL_BUILD),y)
CPPFLAGS += -DCONFIG_SPL_BUILD
endif
+# Does this architecture support generic board init?
+ifeq ($(__HAVE_ARCH_GENERIC_BOARD),)
+ifneq ($(CONFIG_SYS_GENERIC_BOARD),)
+$(error Your architecture does not support generic board. Please undefined \
+CONFIG_SYS_GENERIC_BOARD in your board config file)
+endif
+endif
+
ifneq ($(RESET_VECTOR_ADDRESS),)
CPPFLAGS += -DRESET_VECTOR_ADDRESS=$(RESET_VECTOR_ADDRESS)
endif