Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: source include/config/auto.conf instead of ${KCONFIG_CONFIG}

As commit 423a8155facf ("kbuild: Fix reading of .config in
link-vmlinux.sh") addressed, some shells fail to perform '.' if
${KCONFIG_CONFIG} does not contain a slash at all.

Instead, we can source include/config/auto.conf, which obviously
contain slashes, and we do not expect its file path overridden by
a user. Perhaps, the performance might be slightly better since
unset CONFIG options are stripped from include/config/auto.conf.

scripts/setlocalversion already works this way.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

+2 -16
+1 -8
scripts/adjust_autoksyms.sh
··· 39 39 esac 40 40 41 41 # We need access to CONFIG_ symbols 42 - case "${KCONFIG_CONFIG}" in 43 - */*) 44 - . "${KCONFIG_CONFIG}" 45 - ;; 46 - *) 47 - # Force using a file from the current directory 48 - . "./${KCONFIG_CONFIG}" 49 - esac 42 + . include/config/auto.conf 50 43 51 44 # Generate a new ksym list file with symbols needed by the current 52 45 # set of modules.