git: aff95057bca1 - main - stand: Update testing script for arch retirement

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 15 Aug 2022 18:47:34 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=aff95057bca1dc929996a616b0c39a6ff89a1bbf

commit aff95057bca1dc929996a616b0c39a6ff89a1bbf
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-08-14 14:41:11 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-08-15 18:38:32 +0000

    stand: Update testing script for arch retirement
    
    And catch up to changes in booting methods currently supported. Add
    riscv.
    
    Sponsored by:           Netflix
---
 tools/boot/rootgen.sh | 50 ++++++++------------------------------------------
 1 file changed, 8 insertions(+), 42 deletions(-)

diff --git a/tools/boot/rootgen.sh b/tools/boot/rootgen.sh
index b61fff647b5c..2f840cf6e31e 100755
--- a/tools/boot/rootgen.sh
+++ b/tools/boot/rootgen.sh
@@ -645,29 +645,6 @@ mk_geli_mbr_zfs_both() {
 # u-boot
 # powerpc
 
-mk_sparc64_nogeli_vtoc8_ufs_ofw() {
-    src=$1
-    img=$2
-    mntpt=$3
-    geli=$4
-    scheme=$5
-    fs=$6
-    bios=$7
-
-    cat > ${src}/etc/fstab <<EOF
-/dev/${dev}a	/		ufs	rw	1	1
-EOF
-    makefs -t ffs -B big -s 200m ${img} ${src}
-    md=$(mdconfig -f ${img})
-    # For non-native builds, ensure that geom_part(4) supports VTOC8.
-    kldload geom_part_vtoc8.ko
-    gpart create -s VTOC8 ${md}
-    gpart add -t freebsd-ufs ${md}
-    ${SRCTOP}/tools/boot/install-boot.sh -g ${geli} -s ${scheme} -f ${fs} -b ${bios} -d ${src} ${md}
-    mdconfig -d -u ${md}
-    rm -f ${src}/etc/fstab
-}
-
 qser="-serial telnet::4444,server -nographic"
 
 # https://wiki.freebsd.org/QemuRecipes
@@ -769,16 +746,10 @@ make_one_image()
     echo "^^^^^^^^^^^^^^   Created $img   ^^^^^^^^^^^^^^^"
 }
 
-# mips
-# qemu-system-mips -kernel /path/to/rootfs/boot/kernel/kernel -nographic -hda /path/to/disk.img -m 2048
-
 # Powerpc -- doesn't work but maybe it would enough for testing -- needs details
 # powerpc64
 # qemu-system-ppc64 -drive file=/path/to/disk.img,format=raw
 
-# sparc64
-# qemu-system-sparc64 -drive file=/path/to/disk.img,format=raw
-
 # Misc variables
 SRCTOP=$(make -v SRCTOP)
 cd ${SRCTOP}/stand
@@ -862,9 +833,8 @@ done
 for arch in arm aarch64; do
     for scheme in gpt mbr; do
 	fs=ufs
-	for bios in uboot efi; do
-	    make_one_image ${arch} ${geli} ${scheme} ${fs} ${bios}
-	done
+	bios=efi
+	make_one_image ${arch} ${geli} ${scheme} ${fs} ${bios}
     done
 done
 
@@ -877,14 +847,10 @@ for arch in powerpc powerpc64; do
     done
 done
 
-for arch in sparc64; do
-    for geli in nogeli; do
-	for scheme in vtoc8; do
-	    for fs in ufs; do
-		for bios in ofw; do
-		    make_one_image ${arch} ${geli} ${scheme} ${fs} ${bios}
-		done
-	    done
-	done
-    done
+for arch in riscv; do
+    geli=nogeli
+    fs=ufs
+    scheme=gpt
+    bios=efi
+    make_one_image ${arch} ${geli} ${scheme} ${fs} ${bios}
 done