diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-08 17:53:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-18 11:17:27 +0200 |
commit | 89857312f3245e589b161eb535261bae7b7fcce2 (patch) | |
tree | 25abcd2e268c4eb5c1c78f848b70b7aa26e274c8 | |
parent | d4d0ebb7da0489a2fff8c7150a38fa897ca3eea5 (diff) |
hw/usb: move stubs out of stubs/
Since the USB stubs are needed exactly when the Kconfig symbols are not
enabled, they can be placed in hw/usb/ and conditionalized on CONFIG_USB.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240408155330.522792-11-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | hw/usb/bus-stub.c (renamed from stubs/usb-dev-stub.c) | 0 | ||||
-rw-r--r-- | hw/usb/meson.build | 2 | ||||
-rw-r--r-- | stubs/meson.build | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/stubs/usb-dev-stub.c b/hw/usb/bus-stub.c index fcabe8429e..fcabe8429e 100644 --- a/stubs/usb-dev-stub.c +++ b/hw/usb/bus-stub.c diff --git a/hw/usb/meson.build b/hw/usb/meson.build index aac3bb35f2..23f7f7acb5 100644 --- a/hw/usb/meson.build +++ b/hw/usb/meson.build @@ -9,7 +9,7 @@ system_ss.add(when: 'CONFIG_USB', if_true: files( 'desc-msos.c', 'libhw.c', 'pcap.c', -)) +), if_false: files('bus-stub.c')) # usb host adapters system_ss.add(when: 'CONFIG_USB_UHCI', if_true: files('hcd-uhci.c')) diff --git a/stubs/meson.build b/stubs/meson.build index aa7120f711..45616afbfa 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -56,7 +56,6 @@ endif if have_system stub_ss.add(files('fw_cfg.c')) stub_ss.add(files('semihost.c')) - stub_ss.add(files('usb-dev-stub.c')) stub_ss.add(files('xen-hw-stub.c')) stub_ss.add(files('virtio-md-pci.c')) else |