drivers: usbhost-hid: exclude BSD components from build

Unless ALLOW_BSD_COMPONENTS is enabled support will not be built

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2022-02-21 08:08:05 +00:00 committed by Xiang Xiao
parent 8e8b68b131
commit 52558e7245
2 changed files with 11 additions and 1 deletions

View File

@ -282,6 +282,13 @@ config USBHOST_CDCMBIM
Select this option to build in host support for CDC/MBIM network
devices.
menuconfig USBHOST_HID
bool "USB Host HID Driver Support"
default n
depends on ALLOW_BSD_COMPONENTS
---help---
USB host HID drivers. See also include/nuttx/usb/usbhost.h
config USBHOST_HIDKBD
bool "HID Keyboard Class Support"
default n

View File

@ -18,7 +18,6 @@
#
############################################################################
CSRCS += hid_parser.c
ifeq ($(CONFIG_USBHOST),y)
@ -47,6 +46,10 @@ ifeq ($(CONFIG_USBHOST_CDCMBIM),y)
CSRCS += usbhost_cdcmbim.c
endif
ifeq ($(CONFIG_USBHOST_HID),y)
CSRCS += hid_parser.c
endif
ifeq ($(CONFIG_USBHOST_HIDKBD),y)
CSRCS += usbhost_hidkbd.c
endif