diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-03-12 10:04:25 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-03-15 17:01:12 +0100 |
commit | f98c9bd45fb4f479ca38f8a2b2abcf27e9c2b9aa (patch) | |
tree | bf9c70ccf24b3bc195906dd22f8c47e5b415c304 /hw/usb | |
parent | 65561351e32d0cf7f0c1769003529cebec52d579 (diff) | |
download | qemu-f98c9bd45fb4f479ca38f8a2b2abcf27e9c2b9aa.zip qemu-f98c9bd45fb4f479ca38f8a2b2abcf27e9c2b9aa.tar.gz qemu-f98c9bd45fb4f479ca38f8a2b2abcf27e9c2b9aa.tar.bz2 |
usb/storage: add kconfig symbols
Add new kconfig symbols so usb-storage and usb-bot can
be enabled or disabled individually at build time.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210312090425.772900-5-kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/Kconfig | 13 | ||||
-rw-r--r-- | hw/usb/meson.build | 4 |
2 files changed, 14 insertions, 3 deletions
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig index 40093d7..53f8283 100644 --- a/hw/usb/Kconfig +++ b/hw/usb/Kconfig @@ -66,11 +66,22 @@ config USB_TABLET_WACOM default y depends on USB +config USB_STORAGE_CORE + bool + depends on USB + select SCSI + +config USB_STORAGE_CLASSIC + bool + default y + depends on USB + select USB_STORAGE_CORE + config USB_STORAGE_BOT bool default y depends on USB - select SCSI + select USB_STORAGE_CORE config USB_STORAGE_UAS bool diff --git a/hw/usb/meson.build b/hw/usb/meson.build index 9e4da68..fb7a74e 100644 --- a/hw/usb/meson.build +++ b/hw/usb/meson.build @@ -40,9 +40,9 @@ specific_ss.add(when: 'CONFIG_XLNX_USB_SUBSYS', if_true: files('xlnx-usb-subsyst softmmu_ss.add(when: 'CONFIG_USB', if_true: files('dev-hub.c')) softmmu_ss.add(when: 'CONFIG_USB', if_true: files('dev-hid.c')) softmmu_ss.add(when: 'CONFIG_USB_TABLET_WACOM', if_true: files('dev-wacom.c')) -softmmu_ss.add(when: 'CONFIG_USB_STORAGE_BOT', if_true: files('dev-storage.c')) +softmmu_ss.add(when: 'CONFIG_USB_STORAGE_CORE', if_true: files('dev-storage.c')) softmmu_ss.add(when: 'CONFIG_USB_STORAGE_BOT', if_true: files('dev-storage-bot.c')) -softmmu_ss.add(when: 'CONFIG_USB_STORAGE_BOT', if_true: files('dev-storage-classic.c')) +softmmu_ss.add(when: 'CONFIG_USB_STORAGE_CLASSIC', if_true: files('dev-storage-classic.c')) softmmu_ss.add(when: 'CONFIG_USB_STORAGE_UAS', if_true: files('dev-uas.c')) softmmu_ss.add(when: 'CONFIG_USB_AUDIO', if_true: files('dev-audio.c')) softmmu_ss.add(when: 'CONFIG_USB_SERIAL', if_true: files('dev-serial.c')) |