Skip to content

Commit fde36c1

Browse files
authored
Merge pull request #347 from masahir0y/make.cross
make.cross: Fix error when make.cross is invoked from a symlink
2 parents 0ea0de0 + dea2746 commit fde36c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kbuild/make.cross

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
# Author: Fengguang Wu <[email protected]>
2121
# Credit: Tony Breeds <[email protected]> for crosstool
2222

23-
lkp_src_kbuild=$(dirname $0)
23+
set -e
24+
25+
lkp_src_kbuild=$(dirname "$(realpath "$0")")
2426

2527
source $lkp_src_kbuild/kbuild.sh
2628

0 commit comments

Comments
 (0)