From: Jon Maloy <jmaloy@redhat.com>
To: qemu-devel@nongnu.org
Cc: marcandre.lureau@gmail.com, pbonzini@redhat.com,
jmaloy@redhat.com, jasowang@redhat.com, philmd@linaro.com,
stefanha@redhat.com
Subject: [PATCH v3 1/2] hw/usb: add configuration flags for emulated and passthru usb smartcard
Date: Mon, 12 Dec 2022 17:09:48 -0500 [thread overview]
Message-ID: <20221212220949.1278269-2-jmaloy@redhat.com> (raw)
In-Reply-To: <20221212220949.1278269-1-jmaloy@redhat.com>
We add two new configuration flags, USB_SMARTCARD_PASSTHRU and
USB_SMARTCARD_EMULATED in order to improve configurability of these
functionalities.
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
---
hw/usb/Kconfig | 12 ++++++++++++
hw/usb/meson.build | 4 ++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index ce4f433976..6b29e91593 100644
--- a/hw/usb/Kconfig
+++ b/hw/usb/Kconfig
@@ -109,6 +109,18 @@ config USB_SMARTCARD
default y
depends on USB
+config USB_SMARTCARD_PASSTHRU
+ bool
+ default y
+ depends on USB
+ select USB_SMARTCARD
+
+config USB_SMARTCARD_EMULATED
+ bool
+ default y
+ depends on USB
+ select USB_SMARTCARD
+
config USB_STORAGE_MTP
bool
default y
diff --git a/hw/usb/meson.build b/hw/usb/meson.build
index 793df42e21..353006fb6c 100644
--- a/hw/usb/meson.build
+++ b/hw/usb/meson.build
@@ -51,8 +51,8 @@ softmmu_ss.add(when: 'CONFIG_USB_SMARTCARD', if_true: files('dev-smartcard-reade
if cacard.found()
usbsmartcard_ss = ss.source_set()
- usbsmartcard_ss.add(when: 'CONFIG_USB_SMARTCARD',
- if_true: [cacard, files('ccid-card-emulated.c', 'ccid-card-passthru.c')])
+ usbsmartcard_ss.add(when: 'CONFIG_USB_SMARTCARD_EMULATED', if_true: [cacard, files('ccid-card-emulated.c')])
+ usbsmartcard_ss.add(when: 'CONFIG_USB_SMARTCARD_PASSTHRU', if_true: [cacard, files('ccid-card-passthru.c')])
hw_usb_modules += {'smartcard': usbsmartcard_ss}
endif
--
2.35.3
next prev parent reply other threads:[~2022-12-12 22:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 22:09 [PATCH v3 0/2] hw/usb: add configuration flags for emulated and passthru usb smartcard Jon Maloy
2022-12-12 22:09 ` Jon Maloy [this message]
2022-12-12 22:09 ` [PATCH v3 2/2] hw/usb: add configuration flag for Common Access Card library code Jon Maloy
2022-12-12 22:13 ` [PATCH v3 0/2] hw/usb: add configuration flags for emulated and passthru usb smartcard Philippe Mathieu-Daudé
2022-12-13 21:02 ` Stefan Hajnoczi
2023-01-19 23:47 ` Jon Maloy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221212220949.1278269-2-jmaloy@redhat.com \
--to=jmaloy@redhat.com \
--cc=jasowang@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.