pmb.qemu.run: fix x86_64 CPU check for EFI support (MR 2612)

Apparently python reads uname for this value, the correct value for
64-bit intel/amd stuff is `x86_64` even though python's docs list
`amd64` as an example of a value `platform.machine()` can return 🤷

fixes #2612
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Clayton Craft 2025-05-26 15:15:43 -07:00 committed by Newbyte
parent 63dea3993d
commit c39ac5fe99
No known key found for this signature in database
GPG key ID: ACD854892B38D898

View file

@ -278,7 +278,7 @@ def command_qemu(
"-drive", "-drive",
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/AAVMF/AAVMF_CODE.fd", f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/AAVMF/AAVMF_CODE.fd",
] ]
case "amd64": case "x86_64":
command += [ command += [
"-drive", "-drive",
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/OVMF/OVMF.fd", f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/OVMF/OVMF.fd",
@ -395,7 +395,7 @@ def install_depends(args: PmbArgs, arch: Arch) -> None:
match host_arch: match host_arch:
case "aarch64": case "aarch64":
depends.append("aavmf") depends.append("aavmf")
case "amd64": case "x86_64":
depends.append("ovmf") depends.append("ovmf")
case _: case _:
raise RuntimeError(f"Architecture {host_arch} not configured for EFI support.") raise RuntimeError(f"Architecture {host_arch} not configured for EFI support.")