]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/link-vmlinux.sh
kbuild: Fix reading of .config in link-vmlinux.sh
[karo-tx-linux.git] / scripts / link-vmlinux.sh
index e62f1e000a7b5148167e76c128a6a08150804e24..3d569d6022c296c7bc5ba4e0162279f4c9dc832c 100644 (file)
@@ -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