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:
parent
86635d4992
commit
d46a2a0013
@ -30,7 +30,7 @@ write_partition_layout() {
|
|||||||
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot"
|
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot"
|
||||||
ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
|
ROOTFSPART="-p freebsd-ufs/rootfs:=${VMBASE}"
|
||||||
;;
|
;;
|
||||||
arm64:aarch64)
|
arm64:aarch64 | riscv:riscv64*)
|
||||||
ESP=yes
|
ESP=yes
|
||||||
SCHEME=gpt
|
SCHEME=gpt
|
||||||
BOOTPARTS=
|
BOOTPARTS=
|
||||||
|
@ -38,6 +38,7 @@ get_uefi_bootname() {
|
|||||||
arm64) echo bootaa64 ;;
|
arm64) echo bootaa64 ;;
|
||||||
i386) echo bootia32 ;;
|
i386) echo bootia32 ;;
|
||||||
arm) echo bootarm ;;
|
arm) echo bootarm ;;
|
||||||
|
riscv) echo bootriscv64 ;;
|
||||||
*) die "machine type $(uname -m) doesn't support UEFI" ;;
|
*) die "machine type $(uname -m) doesn't support UEFI" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user