mirror of
https://github.com/dynup/kpatch
synced 2025-02-17 02:06:53 +00:00
kpatch-gcc: use relative path when filtering objects to ignore
When building out-of-tree modules, gcc may be passed full source pathnames (like /home/user/testmod/testmod.c). Adjust the filepath filtering in kpatch-gcc to match against files relative to the KPATCH_GCC_SRCDIR / kpatch-build SRCDIR prefix. Fixes: #941 Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
parent
9863f5fa9b
commit
fd9806b152
@ -24,7 +24,7 @@ if [[ "$TOOLCHAINCMD" = "gcc" ]] ; then
|
|||||||
|
|
||||||
[[ "$obj" = */.tmp_*.o ]] && obj="${obj/.tmp_/}"
|
[[ "$obj" = */.tmp_*.o ]] && obj="${obj/.tmp_/}"
|
||||||
relobj=${obj//$KPATCH_GCC_SRCDIR\//}
|
relobj=${obj//$KPATCH_GCC_SRCDIR\//}
|
||||||
case "$obj" in
|
case "$relobj" in
|
||||||
*.mod.o|\
|
*.mod.o|\
|
||||||
*built-in.o|\
|
*built-in.o|\
|
||||||
*built-in.a|\
|
*built-in.a|\
|
||||||
|
Loading…
Reference in New Issue
Block a user