]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
kbuild: Allow for CONFIG_SYS_CONFIG_NAME to be unset
authorTom Rini <trini@konsulko.com>
Mon, 22 Jan 2024 22:39:05 +0000 (17:39 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 27 Feb 2024 19:18:30 +0000 (14:18 -0500)
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>
scripts/Makefile.autoconf

index 0ade91642ae362871eeb99d03f8f099f818765b3..8208ffe2274411ccd89b6288e016f45afe7379aa 100644 (file)
@@ -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\>;)