diff options
Diffstat (limited to 'nuttx/drivers/usbhost/Make.defs')
-rw-r--r-- | nuttx/drivers/usbhost/Make.defs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/usbhost/Make.defs b/nuttx/drivers/usbhost/Make.defs index 8ef90ad42..55a28a129 100644 --- a/nuttx/drivers/usbhost/Make.defs +++ b/nuttx/drivers/usbhost/Make.defs @@ -60,9 +60,9 @@ CSRCS += usbhost_trace.c endif endif -# Include add-on USB host driver logic (see misc/drivers) +# Include add-on USB host driver logic if present and selected (see misc/drivers) -ifeq ($(CONFIG_NET),y) +ifeq ($(CONFIG_USBHOST_RTL8187),y) RTL8187_CSRC := ${shell if [ -f usbhost$(DELIM)rtl8187x.c ]; then echo "rtl8187x.c"; fi} CSRCS += $(RTL8187_CSRC) endif |