mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
kbuild: Fix signing issue for external modules
[ Upstream commit25ff08aa43] 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:13b25489b6("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
69b7a8a77a
commit
d7faba0cd2
@@ -105,7 +105,7 @@ else
|
|||||||
sig-key := $(CONFIG_MODULE_SIG_KEY)
|
sig-key := $(CONFIG_MODULE_SIG_KEY)
|
||||||
endif
|
endif
|
||||||
quiet_cmd_sign = SIGN $@
|
quiet_cmd_sign = SIGN $@
|
||||||
cmd_sign = scripts/sign-file $(CONFIG_MODULE_SIG_HASH) "$(sig-key)" certs/signing_key.x509 $@ \
|
cmd_sign = $(objtree)/scripts/sign-file $(CONFIG_MODULE_SIG_HASH) "$(sig-key)" $(objtree)/certs/signing_key.x509 $@ \
|
||||||
$(if $(KBUILD_EXTMOD),|| true)
|
$(if $(KBUILD_EXTMOD),|| true)
|
||||||
|
|
||||||
ifeq ($(sign-only),)
|
ifeq ($(sign-only),)
|
||||||
|
|||||||
Reference in New Issue
Block a user