Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 423a8155 authored by Michal Marek's avatar Michal Marek
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent f893bfb6
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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