kbuild: Fix reading of .config in link-vmlinux.sh
authorMichal Marek <mmarek@suse.cz>
Mon, 25 Feb 2013 12:47:53 +0000 (13:47 +0100)
committerMichal Marek <mmarek@suse.cz>
Mon, 25 Feb 2013 15:14:48 +0000 (16:14 +0100)
commit423a8155facf23719078ff63911c1e85ba40970b
tree1a9078fd444b2d450ac951b409dceca3f05f107c
parentf893bfb61531548eeaff432e8d10758e86e788a7
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 <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/link-vmlinux.sh