android_kernel_xiaomi_sm8350/arch/powerpc/lib
Masahiro Yamada 245da9eebb powerpc: add crtsavres.o to always-y instead of extra-y
[ Upstream commit 1b1e38002648819c04773647d5242990e2824264 ]

crtsavres.o is linked to modules. However, as explained in commit
d0e628cd817f ("kbuild: doc: clarify the difference between extra-y
and always-y"), 'make modules' does not build extra-y.

For example, the following command fails:

  $ make ARCH=powerpc LLVM=1 KBUILD_MODPOST_WARN=1 mrproper ps3_defconfig modules
    [snip]
    LD [M]  arch/powerpc/platforms/cell/spufs/spufs.ko
  ld.lld: error: cannot open arch/powerpc/lib/crtsavres.o: No such file or directory
  make[3]: *** [scripts/Makefile.modfinal:56: arch/powerpc/platforms/cell/spufs/spufs.ko] Error 1
  make[2]: *** [Makefile:1844: modules] Error 2
  make[1]: *** [/home/masahiro/workspace/linux-kbuild/Makefile:350: __build_one_by_one] Error 2
  make: *** [Makefile:234: __sub-make] Error 2

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Fixes: baa25b571a ("powerpc/64: Do not link crtsavres.o in vmlinux")
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231120232332.4100288-1-masahiroy@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:34:22 -08:00
..
alloc.c
checksum_32.S
checksum_64.S
checksum_wrappers.c
code-patching.c powerpc/lib: Add helper to check if offset is within conditional branch range 2021-11-17 09:48:49 +01:00
copy_32.S
copypage_64.S
copypage_power7.S
copyuser_64.S
copyuser_power7.S
crtsavres.S
div64.S
error-inject.c
feature-fixups-test.S
feature-fixups.c powerpc/64s: Fix crashes when toggling entry flush barrier 2021-05-19 10:08:29 +02:00
hweight_64.S
ldstfp.S
locks.c
Makefile powerpc: add crtsavres.o to always-y instead of extra-y 2024-01-25 14:34:22 -08:00
mem_64.S
memcmp_32.S
memcmp_64.S
memcpy_64.S
memcpy_mcsafe_64.S
memcpy_power7.S
pmem.c
quad.S
rheap.c
sstep.c powerpc/lib/sstep: Fix build errors with newer binutils 2022-04-15 14:18:25 +02:00
string_32.S
string_64.S
string.S
strlen_32.S
test_emulate_step_exec_instr.S
test_emulate_step.c
vmx-helper.c
xor_vmx_glue.c
xor_vmx.c
xor_vmx.h