[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/13] hw/usb: Add U2F key build recipe
From: |
César Belley |
Subject: |
[PATCH 07/13] hw/usb: Add U2F key build recipe |
Date: |
Wed, 12 Aug 2020 11:41:29 +0200 |
Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
---
hw/usb/Kconfig | 5 +++++
hw/usb/Makefile.objs | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index 5e63dc75f8..3fc8fbe3c7 100644
--- a/hw/usb/Kconfig
+++ b/hw/usb/Kconfig
@@ -96,6 +96,11 @@ config USB_STORAGE_MTP
default y
depends on USB
+config USB_U2F
+ bool
+ default y
+ depends on USB
+
config IMX_USBPHY
bool
default y
diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs
index e342ff59fa..7842a3175f 100644
--- a/hw/usb/Makefile.objs
+++ b/hw/usb/Makefile.objs
@@ -37,6 +37,13 @@ smartcard.mo-libs := $(SMARTCARD_LIBS)
endif
endif
+ifeq ($(CONFIG_USB_U2F),y)
+common-obj-y += u2f.o u2f-passthru.o
+common-obj-$(CONFIG_U2F) += u2f-emulated.o
+u2f-emulated.o-cflags = $(U2F_CFLAGS)
+u2f-emulated.o-libs = $(U2F_LIBS)
+endif
+
ifeq ($(CONFIG_POSIX),y)
common-obj-$(CONFIG_USB_STORAGE_MTP) += dev-mtp.o
endif
--
2.28.0
- [PATCH 00/13] Introduce USB U2F key device, César Belley, 2020/08/12
- [PATCH 01/13] hw/usb: Regroup USB HID protocol values, César Belley, 2020/08/12
- [PATCH 02/13] docs: Add USB U2F key device documentation, César Belley, 2020/08/12
- [PATCH 03/13] hw/usb: Add U2F key base class, César Belley, 2020/08/12
- [PATCH 05/13] hw/usb: Add U2F key passthru mode, César Belley, 2020/08/12
- [PATCH 08/13] configure: Add USB U2F key device, César Belley, 2020/08/12
- [PATCH 10/13] docs/qdev-device-use.txt: Add USB U2F key to the QDEV devices examples, César Belley, 2020/08/12
- [PATCH 04/13] hw/usb: Add U2F key base class implementation, César Belley, 2020/08/12
- [PATCH 07/13] hw/usb: Add U2F key build recipe,
César Belley <=
- [PATCH 09/13] docs/system: Add U2F key to the USB devices examples, César Belley, 2020/08/12
- [PATCH 06/13] hw/usb: Add U2F key emulated mode, César Belley, 2020/08/12
- [PATCH 11/13] scripts: Add u2f-setup-gen script, César Belley, 2020/08/12
- [PATCH 12/13] hw/usb: Add U2F device check to passthru mode, César Belley, 2020/08/12
- [PATCH 13/13] hw/usb: Add U2F device autoscan to passthru mode, César Belley, 2020/08/12
- Re: [PATCH 00/13] Introduce USB U2F key device, Gerd Hoffmann, 2020/08/19