Merge pull request #1283 from jerdfelt/jerdfelt/prefix-strip

kpatch-cc: fix stripping of source tree prefix
This commit is contained in:
Joe Lawrence 2022-08-02 09:23:48 -04:00 committed by GitHub
commit 67e4e2048a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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|\