mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
Makefile: Add a warning if SPL/TPL cannot be built
At present the build fails in strange ways if CONFIG_SPL is defined by CONFIG_SUPPORT_SPL is not. Add a warning for this case as it can be very confusing to debug. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
985ca3945f
commit
2c5eac1e18
1 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,13 @@ SPL_ :=
|
|||
SPL_TPL_ :=
|
||||
endif
|
||||
|
||||
ifeq ($(obj)$(CONFIG_SUPPORT_SPL),spl)
|
||||
$(error You cannot build SPL without enabling CONFIG_SUPPORT_SPL)
|
||||
endif
|
||||
ifeq ($(obj)$(CONFIG_SUPPORT_TPL),tpl)
|
||||
$(error You cannot build TPL without enabling CONFIG_SUPPORT_TPL)
|
||||
endif
|
||||
|
||||
include $(srctree)/config.mk
|
||||
include $(srctree)/arch/$(ARCH)/Makefile
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue