]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: Fix signing issue for external modules
authorTorsten Hilbrich <torsten.hilbrich@secunet.com>
Mon, 13 Jan 2025 06:01:29 +0000 (07:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:16 +0000 (10:02 +0100)
commitd7faba0cd2856f9ecfa0fce2d47fbb79f710eb5c
treef5089231bae58b7648c3e75d3ee55507eb70e0ee
parent69b7a8a77add18fa5bdd36cf433f1c9715fc9680
kbuild: Fix signing issue for external modules

[ Upstream commit 25ff08aa43e373a61c3e36fc7d7cae88ed0fc2d7 ]

When running the sign script the kernel is within the source directory
of external modules. This caused issues when the kernel uses relative
paths, like:

make[5]: Entering directory '/build/client/devel/kernel/work/linux-2.6'
make[6]: Entering directory '/build/client/devel/addmodules/vtx/work/vtx'
   INSTALL /build/client/devel/addmodules/vtx/_/lib/modules/6.13.0-devel+/extra/vtx.ko
   SIGN    /build/client/devel/addmodules/vtx/_/lib/modules/6.13.0-devel+/extra/vtx.ko
/bin/sh: 1: scripts/sign-file: not found
   DEPMOD  /build/client/devel/addmodules/vtx/_/lib/modules/6.13.0-devel+

Working around it by using absolute pathes here.

Fixes: 13b25489b6f8 ("kbuild: change working directory to external module directory with M=")
Signed-off-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/Makefile.modinst