mirror of https://github.com/dynup/kpatch
Merge pull request #1317 from jpoimboe/fix-make-check
kpatch-build: fix "make check"
This commit is contained in:
commit
063a0801d9
|
@ -452,12 +452,12 @@ relpath() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ "${filedir#$common/}" = "$filedir" ]]; do
|
while [[ "${filedir#"$common"/}" = "$filedir" ]]; do
|
||||||
common="$(dirname "$common")"
|
common="$(dirname "$common")"
|
||||||
result="../$result"
|
result="../$result"
|
||||||
done
|
done
|
||||||
|
|
||||||
result="${result}${filedir#$common/}"
|
result="${result}${filedir#"$common"/}"
|
||||||
echo "${result}/$(basename "$file")"
|
echo "${result}/$(basename "$file")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ if [[ "$TOOLCHAINCMD" =~ ^(.*-)?gcc$ || "$TOOLCHAINCMD" =~ ^(.*-)?clang$ ]] ; th
|
||||||
[[ "$obj" = */.tmp_mc_*.o ]] && break;
|
[[ "$obj" = */.tmp_mc_*.o ]] && break;
|
||||||
|
|
||||||
[[ "$obj" = */.tmp_*.o ]] && obj="${obj/.tmp_/}"
|
[[ "$obj" = */.tmp_*.o ]] && obj="${obj/.tmp_/}"
|
||||||
relobj=${obj##$KPATCH_GCC_SRCDIR/}
|
relobj=${obj##"$KPATCH_GCC_SRCDIR"/}
|
||||||
case "$relobj" in
|
case "$relobj" in
|
||||||
*.mod.o|\
|
*.mod.o|\
|
||||||
*built-in.o|\
|
*built-in.o|\
|
||||||
|
|
Loading…
Reference in New Issue