1
0
Fork 0

start-qemu-vm.sh: fix "force" rebuild of uboot on arm64

This commit is contained in:
Pratham Patel 2024-02-26 21:29:23 +05:30
parent 366bb5fc43
commit 2f84cb38b8
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 6 additions and 3 deletions

View File

@ -35,9 +35,12 @@ CDR="$3"
if [ "$(uname -m)" == 'aarch64' ]; then
[[ -d "${HOME}/.vms" ]] || mkdir "${HOME}/.vms"
pushd "${HOME}/.vms"
nix build 'nixpkgs#ubootQemuAarch64'
popd
BIOS="${HOME}/.vms/result/u-boot.bin"
if [[ ! -f "${BIOS}" ]]; then
pushd "${HOME}/.vms"
nix build 'nixpkgs#ubootQemuAarch64'
popd
fi
QEMU_MACHINE='virt'
BIOS="-bios ${HOME}/.vms/result/u-boot.bin"
elif [ "$(uname -m)" == 'x86_64' ]; then