From 52558e72452086e26206ede2bfd49280ca93ea90 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Mon, 21 Feb 2022 08:08:05 +0000 Subject: [PATCH] drivers: usbhost-hid: exclude BSD components from build Unless ALLOW_BSD_COMPONENTS is enabled support will not be built Signed-off-by: Alin Jerpelea --- drivers/usbhost/Kconfig | 7 +++++++ drivers/usbhost/Make.defs | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/usbhost/Kconfig b/drivers/usbhost/Kconfig index a075db674a..7613061193 100644 --- a/drivers/usbhost/Kconfig +++ b/drivers/usbhost/Kconfig @@ -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 diff --git a/drivers/usbhost/Make.defs b/drivers/usbhost/Make.defs index 1d039a5807..668278a277 100644 --- a/drivers/usbhost/Make.defs +++ b/drivers/usbhost/Make.defs @@ -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