aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-22 17:39:05 -0500
committerTom Rini <trini@konsulko.com>2024-02-27 14:18:30 -0500
commitbcd8bce57c6d3ac7b52feb021cdf18bfc359104b (patch)
treeda52968bdac99ff6c10341eb5c4cf6841654f25f
parentd49fa3defa50c6d3f04acbb52fd486c13c14ab6a (diff)
downloadu-boot-bcd8bce57c6d3ac7b52feb021cdf18bfc359104b.zip
u-boot-bcd8bce57c6d3ac7b52feb021cdf18bfc359104b.tar.gz
u-boot-bcd8bce57c6d3ac7b52feb021cdf18bfc359104b.tar.bz2
kbuild: Allow for CONFIG_SYS_CONFIG_NAME to be unset
It is possible to have a platform which does not require a board.h file to build, but today we need an empty one for our generated config.h file to be valid. Allow for omitting this file if CONFIG_SYS_CONFIG_NAME is not set. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--scripts/Makefile.autoconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf
index 0ade916..8208ffe 100644
--- a/scripts/Makefile.autoconf
+++ b/scripts/Makefile.autoconf
@@ -113,7 +113,7 @@ vpl/include/autoconf.mk: vpl/u-boot.cfg
define filechk_config_h
(echo "/* Automatically generated - do not edit */"; \
echo \#define CFG_BOARDDIR board/$(if $(VENDOR),$(VENDOR)/)$(BOARD);\
- echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\>; \
+ $(if $(CONFIG_SYS_CONFIG_NAME),echo \#include \<configs/$(CONFIG_SYS_CONFIG_NAME).h\> ;) \
echo \#include \<asm/config.h\>; \
echo \#include \<linux/kconfig.h\>; \
echo \#include \<config_fallbacks.h\>;)