From: Tom Rini Date: Mon, 22 Jan 2024 22:39:05 +0000 (-0500) Subject: kbuild: Allow for CONFIG_SYS_CONFIG_NAME to be unset X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=bcd8bce57c6d3ac7b52feb021cdf18bfc359104b;p=u-boot.git 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 --- diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf index 0ade91642a..8208ffe227 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 \; \ + $(if $(CONFIG_SYS_CONFIG_NAME),echo \#include \ ;) \ echo \#include \; \ echo \#include \; \ echo \#include \;)