Path: blob/main/jobs/FreeBSD-main-riscv64-test/build.sh
1130 views
#!/bin/sh12export TARGET=riscv3export TARGET_ARCH=riscv644export USE_QEMU=15export QEMU_ARCH="riscv64"6export QEMU_MACHINE="virt"7# XXX: Note the virtio-blk-device instead of virtio-blk; kernel doesn't seem to support the latter.8export QEMU_DEVICES="-device virtio-blk-device,drive=hd0 -device virtio-blk-device,drive=hd1"9OPENSBI=/usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf10UBOOT=/usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin11export QEMU_EXTRA_PARAM="-bios ${OPENSBI} -kernel ${UBOOT}"1213export USE_TEST_SUBR="14disable-disks-tests.sh15disable-dtrace-tests.sh16disable-zfs-tests.sh17disable-notyet-tests.sh18run-kyua.sh19"2021SSL_CA_CERT_FILE=/usr/local/share/certs/ca-root-nss.crt22ARTIFACT_SERVER=${ARTIFACT_SERVER:-artifact.ci.freebsd.org}23ARTIFACT_SUBDIR=snapshot/${FBSD_BRANCH}/${GIT_COMMIT}/${TARGET}/${TARGET_ARCH}2425rm -f kernel kernel.txz26fetch https://${ARTIFACT_SERVER}/${ARTIFACT_SUBDIR}/kernel.txz27tar Jxvf kernel.txz --strip-components 3 boot/kernel/kernel2829sh -x freebsd-ci/scripts/test/run-tests.sh303132