aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/adjust_autoksyms.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-08 14:49:10 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-14 02:39:11 +0900
commit94cf8acc38e57caaba1329a255409b6d93936ba7 (patch)
treec0823765b3b572d1d67631913cb733f292bcd39d /scripts/adjust_autoksyms.sh
parentunicore32: simplify linker script generation for decompressor (diff)
downloadlinux-dev-94cf8acc38e57caaba1329a255409b6d93936ba7.tar.xz
linux-dev-94cf8acc38e57caaba1329a255409b6d93936ba7.zip
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>
Diffstat (limited to 'scripts/adjust_autoksyms.sh')
-rwxr-xr-xscripts/adjust_autoksyms.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh
index 6e6d63957da3..84bf6b500815 100755
--- a/scripts/adjust_autoksyms.sh
+++ b/scripts/adjust_autoksyms.sh
@@ -39,14 +39,7 @@ case "$KBUILD_VERBOSE" in
esac
# We need access to CONFIG_ symbols
-case "${KCONFIG_CONFIG}" in
-*/*)
- . "${KCONFIG_CONFIG}"
- ;;
-*)
- # Force using a file from the current directory
- . "./${KCONFIG_CONFIG}"
-esac
+. include/config/auto.conf
# Generate a new ksym list file with symbols needed by the current
# set of modules.