kumquat-buildroot/board/qemu/riscv64-virt-efi/assemble-flash-images
Julien Olivain 8219955118 configs/qemu_riscv64_virt_efi: new defconfig
This defconfig enables edk2 UEFI shell and grub2 riscv64-efi boot
of a Linux Kernel.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-12-24 17:55:24 +01:00

12 lines
296 B
Bash
Executable File

#! /bin/sh
set -e
BOARD_DIR="$(dirname "$0")"
cp -f "${BOARD_DIR}"/grub.cfg "${BINARIES_DIR}"/efi-part/EFI/BOOT/grub.cfg
# The QEMU riscv64 virt machine expects flash devices to be 32M.
truncate -s 32M "${BINARIES_DIR}"/RISCV_VIRT_CODE.fd
truncate -s 32M "${BINARIES_DIR}"/RISCV_VIRT_VARS.fd