From: Michal Marek Date: Mon, 25 Feb 2013 12:47:53 +0000 (+0100) Subject: kbuild: Fix reading of .config in link-vmlinux.sh X-Git-Tag: v3.9-rc1~51^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=423a8155facf23719078ff63911c1e85ba40970b;p=~emulex%2Finfiniband.git kbuild: Fix reading of .config in link-vmlinux.sh The shell '.' command is not required to search the current directory as a fallback and in fact newer versions of bash in sh-mode do not do this. Force reading the file from the current directory if $KCONFIG_CONFIG contains no '/'. Reported-by: Stephen Rothwell Signed-off-by: Michal Marek --- diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index e62f1e000a7..3d569d6022c 100644 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -132,7 +132,14 @@ if [ "$1" = "clean" ]; then fi # We need access to CONFIG_ symbols -. ${KCONFIG_CONFIG} +case "${KCONFIG_CONFIG}" in +*/*) + . "${KCONFIG_CONFIG}" + ;; +*) + # Force using a file from the current directory + . "./${KCONFIG_CONFIG}" +esac #link vmlinux.o info LD vmlinux.o