[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/13] usb/storage: add kconfig symbols
From: |
Gerd Hoffmann |
Subject: |
[PULL 12/13] usb/storage: add kconfig symbols |
Date: |
Mon, 15 Mar 2021 19:02:39 +0100 |
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>
---
hw/usb/Kconfig | 13 ++++++++++++-
hw/usb/meson.build | 4 ++--
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index 40093d7ea6bf..53f8283ffdc1 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 9e4da68e3b6c..fb7a74e73ae8 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'))
--
2.29.2
- [PULL 00/13] Usb 20210315 patches, Gerd Hoffmann, 2021/03/15
- [PULL 04/13] usb: Un-deprecate -usbdevice (except for -usbdevice audio which gets removed), Gerd Hoffmann, 2021/03/15
- [PULL 03/13] usb: remove '-usbdevice u2f-key', Gerd Hoffmann, 2021/03/15
- [PULL 07/13] hw/usb/hcd-uhci: Expose generic prototypes to local header, Gerd Hoffmann, 2021/03/15
- [PULL 13/13] usb/storage: clear csw on reset, Gerd Hoffmann, 2021/03/15
- [PULL 01/13] hw/usb/bus: Remove the "full-path" property, Gerd Hoffmann, 2021/03/15
- [PULL 06/13] hw/southbridge: Add missing Kconfig dependency VT82C686 on USB_UHCI, Gerd Hoffmann, 2021/03/15
- [PULL 10/13] usb/storage: move usb-bot device to separate source file, Gerd Hoffmann, 2021/03/15
- [PULL 12/13] usb/storage: add kconfig symbols,
Gerd Hoffmann <=
- [PULL 11/13] usb/storage move usb-storage device to separate source file, Gerd Hoffmann, 2021/03/15
- [PULL 08/13] hw/usb: Extract VT82C686 UHCI PCI function into a new unit, Gerd Hoffmann, 2021/03/15
- [PULL 05/13] usb: Document the missing -usbdevice options, Gerd Hoffmann, 2021/03/15
- [PULL 09/13] usb/storage: move declarations to usb/msd.h header, Gerd Hoffmann, 2021/03/15
- [PULL 02/13] usb: remove support for -usbdevice parameters, Gerd Hoffmann, 2021/03/15
- Re: [PULL 00/13] Usb 20210315 patches, Peter Maydell, 2021/03/16