]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - config.mk
__HAVE_ARCH_GENERIC_BOARD controls availabilty of generic board
[people/ms/u-boot.git] / config.mk
index b7cd4814fe74e87633dc15d9c1c8f388c5b8da78..98864153e9b4d6ee55ee52071cc98d872bbace32 100644 (file)
--- 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