> On 12 Jan 2022, at 15:56, Peter Maydell <peter.mayd...@linaro.org> wrote:
>
> Those are UEFI firmware images which are suitable for using with
> the arm/aarch64 "virt" board.
Then it would probably be useful to keep them.
For the xPack QEMU Arm package, I ended up with the following script:
```
cd .../share/qemu
find . -type f -maxdepth 2 \
-not \( -path './efi-*.rom' -prune \) \
-not \( -path './npcm7xx_bootrom.bin' -prune \) \
-not \( -path './edk2-arm*.*' -prune \) \
-not \( -path './edk2-aarch64*.*' -prune \) \
-not \( -path './edk2-licenses.*' -prune \) \
-not \( -path './firmware/*-edk2-arm*.*' -prune \) \
-not \( -path './firmware/*-edk2-aarch64*.*' -prune \) \
-not \( -path './keymaps/*' -prune \) \
-exec rm -rf {} \;
```
I hope it covers most use cases.
Thank you,
Liviu