summary refs log tree commit diff stats
path: root/hw/usb/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-05-26 12:20:39 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:28 +0100
commit53e8868d69c195b6b57ccc6847057043c26df1b6 (patch)
treed184c2ec45a3ffa0a924fffa4ec0d7782f0ebf95 /hw/usb/meson.build
parente7c22ff87aa3a71e6cad1e88c2651dde8c7d504b (diff)
downloadfocaccia-qemu-53e8868d69c195b6b57ccc6847057043c26df1b6.tar.gz
focaccia-qemu-53e8868d69c195b6b57ccc6847057043c26df1b6.zip
meson: remove OS definitions from config_targetos
CONFIG_DARWIN, CONFIG_LINUX and CONFIG_BSD are used in some rules, but
only CONFIG_LINUX has substantial use.  Convert them all to if...endif.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/usb/meson.build')
-rw-r--r--hw/usb/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/meson.build b/hw/usb/meson.build
index e94149ebde..4b44db39cd 100644
--- a/hw/usb/meson.build
+++ b/hw/usb/meson.build
@@ -58,7 +58,9 @@ endif
 
 # U2F
 system_ss.add(when: 'CONFIG_USB_U2F', if_true: files('u2f.c'))
-system_ss.add(when: ['CONFIG_LINUX', 'CONFIG_USB_U2F'], if_true: [libudev, files('u2f-passthru.c')])
+if targetos == 'linux'
+  system_ss.add(when: 'CONFIG_USB_U2F', if_true: [libudev, files('u2f-passthru.c')])
+endif
 if u2f.found()
   system_ss.add(when: 'CONFIG_USB_U2F', if_true: [u2f, files('u2f-emulated.c')])
 endif