powerpc/purgatory: Omit use of bin2c
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 Jul 2022 01:56:19 +0000 (10:56 +0900)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:03 +0000 (21:36 +1000)
commit9257971377e2fe6e82f41f688651a82a2f160a88
tree89b0fa0cfd9267c318d09d7a0ffeae1eb477558f
parent118b1366930c8c833b8b36abef657f40d4e26610
powerpc/purgatory: Omit use of bin2c

The .incbin assembler directive is much faster than bin2c + $(CC).

Do similar refactoring as in commit 4c0f032d4963 ("s390/purgatory:
Omit use of bin2c").

Please note the .quad directive matches to size_t in C (both 8 byte)
because the purgatory is compiled only for the 64-bit kernel.
(KEXEC_FILE depends on PPC64).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220725015619.618070-1-masahiroy@kernel.org
arch/powerpc/Kconfig
arch/powerpc/purgatory/.gitignore
arch/powerpc/purgatory/Makefile
arch/powerpc/purgatory/kexec-purgatory.S [new file with mode: 0644]
scripts/remove-stale-files