make modules_prepare doesn't build arch/powerpc/lib/crtsavres.o

From: Luis Ressel
Date: Wed Feb 20 2019 - 16:38:10 EST


Hello,

as documented in the top-level Makefile, "make modules_prepare" is
supposed to get a pristine kernel tree into a state that's suitable to
build out-of-tree modules. However, this is not the case for the
powerpc arch, since all modules are linked against
arch/powerpc/lib/crtsavres.o on ppc32 (and ppc64 if binutils is too
old).

A similar problem applies to "make clean" -- it is supposed to retain
all files which are neccessary for module building, but the global
"find . -name '*.o' -delete" it performs drops crtsavres.o.

--
Regards,
Luis Ressel

Please CC me when replying; I'm not subscribed to the kernel MLs.

Attachment: pgpkGMwP8Lsfj.pgp
Description: OpenPGP digital signature