#!/bin/bash # # XTF test utilities (arm64). # # Arch-specific environment overrides. function xtf_arch_prepare() { export FW_PREFIX="${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}" export QEMU_PREFIX="${QEMU_PREFIX:-${WORKDIR}/}" export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}" export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}" export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-xtf-arm}" export XTF_SRC_URI="${XTF_SRC_URI:-https://gitlab.com/xen-project/fusa/xtf.git}" export XTF_SRC_VARIANTS="mmu64le" } # Perform arch-specific XTF environment setup. function xtf_arch_setup() { # QEMU looks for "efi-virtio.rom" even if it is unneeded curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom # Crude check for local testing if [ ! -d imagebuilder ]; then git clone --depth 1 https://gitlab.com/xen-project/imagebuilder.git fi cat > ${WORKDIR}/config <