svn commit: r368422 - in head: release/tools tools/boot
Mitchell Horne
mhorne at FreeBSD.org
Tue Dec 8 00:37:12 UTC 2020
Author: mhorne
Date: Tue Dec 8 00:37:11 2020
New Revision: 368422
URL: https://svnweb.freebsd.org/changeset/base/368422
Log:
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
Modified:
head/release/tools/vmimage.subr
head/tools/boot/install-boot.sh
Modified: head/release/tools/vmimage.subr
==============================================================================
--- head/release/tools/vmimage.subr Tue Dec 8 00:35:13 2020 (r368421)
+++ head/release/tools/vmimage.subr Tue Dec 8 00:37:11 2020 (r368422)
@@ -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=
Modified: head/tools/boot/install-boot.sh
==============================================================================
--- head/tools/boot/install-boot.sh Tue Dec 8 00:35:13 2020 (r368421)
+++ head/tools/boot/install-boot.sh Tue Dec 8 00:37:11 2020 (r368422)
@@ -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
}
More information about the svn-src-all
mailing list