stand: Update testing script for arch retirement

And catch up to changes in booting methods currently supported. Add
riscv.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-08-14 08:41:11 -06:00
parent d98de74405
commit aff95057bc

View File

@ -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