X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=config.mk;h=1fd109f1bdfe1d8f7b2d9e34030b9e09fae259d8;hb=79a34d3ccc7bb08848412877b6935e596fef1d29;hp=b7cd4814fe74e87633dc15d9c1c8f388c5b8da78;hpb=97b24d3d51a92cb8c0c1e1a74abf22fe1a1807a3;p=u-boot diff --git a/config.mk b/config.mk index b7cd4814fe..1fd109f1bd 100644 --- a/config.mk +++ b/config.mk @@ -23,7 +23,12 @@ ######################################################################### -include $(TOPDIR)/helper.mk +# Set shell to bash if possible, otherwise fall back to sh +SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ + else if [ -x /bin/bash ]; then echo /bin/bash; \ + else echo sh; fi; fi) + +export SHELL ifeq ($(CURDIR),$(SRCTREE)) dir := @@ -221,6 +226,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