u-boot/scripts/kconfig
Yao Zi 252cd20530 Makefile: Strip leading spaces when preprocessing generated_defconfig
Clang's preprocessor may emit extra spaces for lines starting with '#'.
Lines with these extra characters cannot be handled by Kconfig and will
be ignored with warnings like,

        unexpected data:  # CONFIG_OF_BOARD_FIXUP is not set

Those options that is expected to be assigned explicitly with N will be
set to the default value, messing up board configurations.

Let's sed these spaces away to ensure board configurations could be
correctly generated with Clang.

Link: https://github.com/llvm/llvm-project/issues/78778
Fixes: 2027e99e61 ("Makefile: Run defconfig files through the C preprocessor")
Reported-by: Nathaniel Hourt <I@nathaniel.land>
Signed-off-by: Yao Zi <ziyao@disroot.org>
2025-05-05 14:17:23 -06:00
..
lxdialog scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
tests tools/scripts/Kconfig: Update references from kconfig-language.txt to rst 2024-08-27 18:01:32 -06:00
.gitignore kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
conf.c kconfig / kbuild: Re-sync with Linux 4.20 2021-07-14 16:57:35 -04:00
confdata.c kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
expr.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
expr.h kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
gconf-cfg.sh kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
gconf.c scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
gconf.glade kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
images.c kconfig: import Kconfig files from Linux 3.16-rc7 2014-07-30 08:47:46 -04:00
kconf_id.c kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
list.h scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
lkc_proto.h kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
lkc.h scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
Makefile Makefile: Strip leading spaces when preprocessing generated_defconfig 2025-05-05 14:17:23 -06:00
mconf-cfg.sh kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
mconf.c kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
menu.c scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
merge_config.sh kconfig / kbuild: Re-sync with Linux 4.20 2021-07-14 16:57:35 -04:00
nconf-cfg.sh kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
nconf.c scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
nconf.gui.c scripts: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
nconf.h kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
preprocess.c kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
qconf-cfg.sh kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
qconf.cc kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
qconf.h kconfig: re-sync with Linux 4.10 2017-02-12 14:31:25 -05:00
streamline_config.pl kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
symbol.c tools/scripts/Kconfig: Update references from kconfig-language.txt to rst 2024-08-27 18:01:32 -06:00
util.c kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
zconf.l kconfig / kbuild: re-sync with Linux 4.18 2020-03-16 18:54:18 -04:00
zconf.y kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00