Module Name: src
Committed By: pgoyette
Date: Sat May 20 00:56:32 UTC 2017
Modified Files:
src/sys/dev/usb: files.usb
Log Message:
Fix the USBVERBOSE stuff so it does not get included in the build if
there are no USB devices or controllers.
Without this change, a kernel with no USB devices but with USBVERBOSE
defined in the configuration file will include the usb_verbose.c file,
but will fail to link due to undefined symbols.
To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/sys/dev/usb/files.usb
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/files.usb
diff -u src/sys/dev/usb/files.usb:1.143 src/sys/dev/usb/files.usb:1.144
--- src/sys/dev/usb/files.usb:1.143 Mon Apr 17 08:59:37 2017
+++ src/sys/dev/usb/files.usb Sat May 20 00:56:32 2017
@@ -1,4 +1,4 @@
-# $NetBSD: files.usb,v 1.143 2017/04/17 08:59:37 riastradh Exp $
+# $NetBSD: files.usb,v 1.144 2017/05/20 00:56:32 pgoyette Exp $
#
# Config file and device description for machine-independent USB code.
# Included by ports that need it. Ports that use it must provide
@@ -103,8 +103,7 @@ file dev/usb/usb_quirks.c usb
define usb_dma: usb
file dev/usb/usb_mem.c usb_dma needs-flag
-define usbverbose: usb
-file dev/usb/usb_verbose.c usbverbose
+file dev/usb/usb_verbose.c usbverbose & usb
# Hub driver
device uhub: usbdevif, usbifif