efi_loader: Enable RISC-V support
authorRick Chen <rick@andestech.com>
Mon, 28 May 2018 11:06:37 +0000 (19:06 +0800)
committerAndes <uboot@andestech.com>
Tue, 29 May 2018 06:43:12 +0000 (14:43 +0800)
commit6836adbe753b241499430812ec5ef41ba61bdd83
treebd91c1e2b9d9b4624f0f232d4f659c6da97bfcec
parent0979f7ce1eea73c80e6f858a803106660507d1e3
efi_loader: Enable RISC-V support

We have almost all pieces needed to support RISC-V UEFI binaries in place already.
The only missing piece are ELF relocations for runtime code and
data.

This patch adds respective support in the linker script and the runtime
relocation code. It also allows users to enable the EFI_LOADER configuration
switch on RISC-V platforms.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/riscv/cpu/nx25/u-boot.lds
cmd/Kconfig
lib/efi_loader/Kconfig
lib/efi_loader/efi_runtime.c