diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-26 12:20:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-12-31 09:11:28 +0100 |
commit | 53e8868d69c195b6b57ccc6847057043c26df1b6 (patch) | |
tree | d184c2ec45a3ffa0a924fffa4ec0d7782f0ebf95 /hw/usb | |
parent | e7c22ff87aa3a71e6cad1e88c2651dde8c7d504b (diff) | |
download | qemu-53e8868d69c195b6b57ccc6847057043c26df1b6.zip qemu-53e8868d69c195b6b57ccc6847057043c26df1b6.tar.gz qemu-53e8868d69c195b6b57ccc6847057043c26df1b6.tar.bz2 |
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')
-rw-r--r-- | hw/usb/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/usb/meson.build b/hw/usb/meson.build index e94149e..4b44db3 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 |