Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact

In the upstream commit 214c0eea43b2ea66bcd6467ea57e47ce8874191b
("kbuild: add $(objtree)/ prefix to some in-kernel build artifacts")
artifacts required for building out-of-tree kernel modules had
$(objtree) prepended to them to prepare for building in other
directories.

When building external modules for powerpc,
arch/powerpc/lib/crtsavres.o is required for certain
configurations. This artifact is missing the prepended $(objtree).

Fixes: 13b25489b6f8 ("kbuild: change working directory to external module directory with M=")
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Tested-by: Nicolas Schier <n.schier@avm.de>
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250218-buildfix-extmod-powerpc-v2-1-1e78fcf12b56@efficios.com

authored by

Kienan Stewart and committed by
Madhavan Srinivasan
46104a7d 3d9c9e1d

+1 -1
+1 -1
arch/powerpc/Makefile
··· 58 58 # There is a corresponding test in arch/powerpc/lib/Makefile 59 59 KBUILD_LDFLAGS_MODULE += --save-restore-funcs 60 60 else 61 - KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o 61 + KBUILD_LDFLAGS_MODULE += $(objtree)/arch/powerpc/lib/crtsavres.o 62 62 endif 63 63 64 64 ifdef CONFIG_CPU_LITTLE_ENDIAN