]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: call qemu with -machine virt on aarch64 38086/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Jul 2025 19:21:51 +0000 (20:21 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 5 Jul 2025 19:21:51 +0000 (20:21 +0100)
'qemu-system-aarch64 -device help' fails when no machine is specified.
Use the 'virt' type which seems to be what everyone uses for VMs.

test/integration-tests/TEST-64-UDEV-STORAGE/meson.build

index 76b0ebeb87d010611b59e983f3bae5d7c5ec318d..0b1b3d9a97f4bdef8ffa61ede8ba6ca1a62fa678 100644 (file)
@@ -7,7 +7,10 @@ udev_storage_test_template = {
 }
 
 qemu = find_program('qemu-system-@0@'.format(host_machine.cpu_family()), 'qemu-kvm', dirs : ['/usr/libexec'], native : true, required : false)
-if qemu.found()
+if qemu.found() and host_machine.cpu_family() == 'aarch64'
+        # qemu-system-aarch64 errors out if no machine is specified
+        devices = run_command(qemu, '-device', 'help', '-machine', 'virt', check : true).stdout().strip()
+elif qemu.found()
         devices = run_command(qemu, '-device', 'help', check : true).stdout().strip()
 else
         devices = ''