mirror of https://github.com/dynup/kpatch
kpatch-build: fix KBUILD_MODNAME for OOT modules
For consistency with what the kernel does (and what we already do for in-tree modules), if the file has any dashes ('-'), replace them with underscores in the objname (aka KBUILD_MODNAME). Fixes #1286. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
67e4e2048a
commit
fe45029b4d
|
@ -1100,6 +1100,7 @@ for i in $FILES; do
|
||||||
SYMVERS_FILE="$BUILDDIR/Module.symvers"
|
SYMVERS_FILE="$BUILDDIR/Module.symvers"
|
||||||
elif [[ "$(basename "$KOBJFILE")" = "$(basename "$OOT_MODULE")" ]]; then
|
elif [[ "$(basename "$KOBJFILE")" = "$(basename "$OOT_MODULE")" ]]; then
|
||||||
KOBJFILE_NAME="$(basename --suffix=.ko "$OOT_MODULE")"
|
KOBJFILE_NAME="$(basename --suffix=.ko "$OOT_MODULE")"
|
||||||
|
KOBJFILE_NAME="${KOBJFILE_NAME//-/_}"
|
||||||
KOBJFILE_PATH="$OOT_MODULE"
|
KOBJFILE_PATH="$OOT_MODULE"
|
||||||
SYMTAB="${TEMPDIR}/module/${KOBJFILE_NAME}.symtab"
|
SYMTAB="${TEMPDIR}/module/${KOBJFILE_NAME}.symtab"
|
||||||
SYMVERS_FILE="$TEMPDIR/Module.symvers"
|
SYMVERS_FILE="$TEMPDIR/Module.symvers"
|
||||||
|
|
Loading…
Reference in New Issue