mbox series

[0/1] kbuild: find kernel/configs for fragments in fragment merging

Message ID 20240113001135.7781-1-xtex@envs.net (mailing list archive)
Headers show
Series kbuild: find kernel/configs for fragments in fragment merging | expand

Message

Bingwu Zhang Jan. 13, 2024, 12:11 a.m. UTC
From: Zhang Bingwu <xtexchooser@duck.com>

Function merge_into_defconfig and merge_into_defconfig_override merge
 a defconfig with several fragments, which should also be searched for
 in kernel/configs/*.config.
When using 'make xxx_defconfig xxx.config' to merge fragments,
 scripts/kconfig/Makefile also searches kernel/configs/*.config
 for fragments.

This patch also switched usages of ARCH to SRCARCH.
For some ARCH values, such as i386 and x86_64, SRCARCH is different
 from ARCH and arch/$(ARCH) does not exist anymore.
If the two functions are used in these ARCHs which has
 a different SRCARCH, kbuild may fail to find fragments.

Zhang Bingwu (1):
  kbuild: find kernel/configs for fragments in fragment merging

 scripts/Makefile.defconf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)