aboutgitcodebugslistschat
path: root/test/find-arm64-firmware.sh
blob: 31826200481eb9189d8efc6f654b0555886cdd75 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                               
#! /bin/sh

LOCATIONS="/usr/share/qemu-efi-aarch64 /usr/share/edk2/aarch64"

for l in $LOCATIONS; do
    if [ -f "$l/QEMU_EFI.fd" ]; then
	ln -s "$l/QEMU_EFI.fd" "$1"
	exit 0
    fi
done

echo "Couldn't find QEMU_EFI.fd" >&2
exit 1