[0/8] riscv: Enable efi_loader support

Message ID 20180418134030.55127-1-agraf@suse.de
Headers show
Series
  • riscv: Enable efi_loader support
Related show

Message

Alexander Graf April 18, 2018, 1:40 p.m.
We now have RISC-V support in U-Boot - which is great!

However, not that we're finally making progress to converge on
efi_loader and distro boot for booting on ARM platforms, we
really want to make sure there is no technical reason not to
do the same on RISC-V as well.

So this patch set introduces distro boot and efi_loader support
for RISC-V!

So far, I've only tested it with the selftest, as the number of
target binaries to run is still slim. But it should at least give
us a good starting point.

Alexander Graf (8):
  riscv: Add setjmp/longjmp code
  riscv: Enable function sections
  efi_loader: selftest: Do not build relocation tests for risc-v
  riscv: Add board_quiesce_devices stub
  efi_loader: Use EFI_CACHELINE_SIZE in the image loader too
  distro: Extend with RISC-V defines
  riscv: nx25: Enable distro boot
  efi_loader: Enable RISC-V support

 arch/riscv/config.mk                  |  2 +-
 arch/riscv/cpu/nx25/u-boot.lds        | 16 +++++++++++
 arch/riscv/include/asm/setjmp.h       | 24 ++++++++++++++++
 arch/riscv/include/asm/u-boot-riscv.h |  1 +
 arch/riscv/lib/Makefile               |  1 +
 arch/riscv/lib/bootm.c                |  4 +++
 arch/riscv/lib/setjmp.S               | 54 +++++++++++++++++++++++++++++++++++
 configs/nx25-ae250_defconfig          |  1 +
 include/config_distro_bootcmd.h       | 14 ++++++++-
 include/configs/nx25-ae250.h          | 17 +++++++++++
 include/efi_loader.h                  |  7 +++++
 lib/efi_loader/Kconfig                |  2 +-
 lib/efi_loader/efi_image_loader.c     |  2 +-
 lib/efi_loader/efi_runtime.c          | 48 +++++++++++++++++++++++--------
 lib/efi_selftest/Makefile             | 11 ++++---
 15 files changed, 184 insertions(+), 20 deletions(-)
 create mode 100644 arch/riscv/include/asm/setjmp.h
 create mode 100644 arch/riscv/lib/setjmp.S