forked from Piraterna/aurix
20 lines
No EOL
652 B
Bash
Executable file
20 lines
No EOL
652 B
Bash
Executable file
#!/bin/bash
|
|
|
|
check_command() {
|
|
if ! command -v "$1" &> /dev/null; then
|
|
echo "[!] '$1' could not be found!"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Make sure we have curl
|
|
check_command curl
|
|
|
|
mkdir -p ovmf
|
|
|
|
curl https://retrage.github.io/edk2-nightly/bin/RELEASEX64_OVMF.fd -o ovmf/ovmf-x86_64.fd >/dev/null 2>&1
|
|
curl https://retrage.github.io/edk2-nightly/bin/RELEASEIA32_OVMF.fd -o ovmf/ovmf-i686.fd >/dev/null 2>&1
|
|
curl https://retrage.github.io/edk2-nightly/bin/RELEASEAARCH64_QEMU_EFI.fd -o ovmf/ovmf-aarch64.fd >/dev/null 2>&1
|
|
curl https://retrage.github.io/edk2-nightly/bin/RELEASERISCV64_VIRT_CODE.fd -o ovmf/ovmf-riscv64.fd >/dev/null 2>&1
|
|
|
|
printf " done.\n" |