1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

riscv: allow building virtual machine images

RISC-V has the same booting requirements as arm64 (loader.efi, no legacy
boot options), so generated images for both architectures have the same
partition layout.

Reviewed by:	gjb
Differential Revision:	https://reviews.freebsd.org/D27044
This commit is contained in:
Mitchell Horne 2020-12-08 00:37:11 +00:00
parent 86635d4992
commit d46a2a0013
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368422
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ write_partition_layout() {
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot"
ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
;;
arm64:aarch64)
arm64:aarch64 | riscv:riscv64*)
ESP=yes
SCHEME=gpt
BOOTPARTS=

View File

@ -38,6 +38,7 @@ get_uefi_bootname() {
arm64) echo bootaa64 ;;
i386) echo bootia32 ;;
arm) echo bootarm ;;
riscv) echo bootriscv64 ;;
*) die "machine type $(uname -m) doesn't support UEFI" ;;
esac
}