aboutsummaryrefslogtreecommitdiff
path: root/release/tools/vmimage.subr
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-04-20 20:06:25 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-04-20 20:06:25 +0000
commit6a3afe6924c0885b8c09a5a2b822b9da106af72b (patch)
tree876fbb546a34ac865457faff2e812c1adade6a1e /release/tools/vmimage.subr
parent7fffcb0d487c44f6644043ccc2d9eb6b526d7cff (diff)
downloadsrc-6a3afe6924c0885b8c09a5a2b822b9da106af72b.tar.gz
src-6a3afe6924c0885b8c09a5a2b822b9da106af72b.zip
Add support for building arm64/aarch64 virtual machine images.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm64/; revision=281786
Diffstat (limited to 'release/tools/vmimage.subr')
-rw-r--r--release/tools/vmimage.subr7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 4fd500bbb6f0..9cff4ecbd98a 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -29,6 +29,13 @@ write_partition_layout() {
-p freebsd-ufs/rootfs:=${VMBASE} \
-o ${VMIMAGE}
;;
+ arm64:aarch64)
+ mkimg -s gpt \
+ -p efi/efiboot:=${BOOTFILES}/efi/boot1/boot1.efifat \
+ ${SWAPOPT} \
+ -p freebsd-ufs/rootfs:=${VMBASE} \
+ -o ${VMIMAGE}
+ ;;
powerpc:powerpc*)
mkimg -s apm \
-p apple-boot/bootfs:=${BOOTFILES}/powerpc/boot1.chrp/boot1.hfs \