efi/libstub: Move arm-stub to a common file
authorAtish Patra <atish.patra@wdc.com>
Wed, 15 Apr 2020 19:54:18 +0000 (12:54 -0700)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 23 Apr 2020 12:16:28 +0000 (14:16 +0200)
commit2e0eb483c058dd013be8e3d0ec1767be531485a2
tree7c81263035dfd544ac3411c4285c399f04b8f1ee
parentae83d0b416db002fe95601e7f97f64b59514d936
efi/libstub: Move arm-stub to a common file

Most of the arm-stub code is written in an architecture independent manner.
As a result, RISC-V can reuse most of the arm-stub code.

Rename the arm-stub.c to efi-stub.c so that ARM, ARM64 and RISC-V can use it.
This patch doesn't introduce any functional changes.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Link: https://lore.kernel.org/r/20200415195422.19866-2-atish.patra@wdc.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/Kconfig
arch/arm64/Kconfig
drivers/firmware/efi/Kconfig
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm-stub.c [deleted file]
drivers/firmware/efi/libstub/efi-stub.c [new file with mode: 0644]