I have been using upstream's "edk2-armvirt" package for running LXD virtual machines with a Raspberry Pi 4B booting from UEFI. The package has 'arch=(any)' and installs successfully as-is (the package is just firmwire ".fd" files, a text license and a JSON file for qemu). "edk2-armvirt" is already listed as an optional dependency for https://archlinuxarm.org/packages/aarch ... arch-extra
Sidenote:
A bit more configuration is needed to actually get LXD to see the files. I got it to work by setting the LXD_OVMF_PATH environment variable through a systemd override file for lxd.service, and making two symlinks:
$this->bbcode_second_pass_code('', '
echo "[Service]
Environment=LXD_OVMF_PATH=/usr/share/edk2-armvirt/aarch64
"| tee /etc/systemd/system/lxd.service.d/override.conf
ln -s QEMU_CODE.fd /usr/share/edk2-armvirt/aarch64/OVMF_CODE.fd
ln -s QEMU_VARS.fd /usr/share/edk2-armvirt/aarch64/OVMF_VARS.fd
')