Date: Mon, 9 Dec 2013 12:04:56 -0800 From: Adrian Chadd <adrian@freebsd.org> To: Hans Petter Selasky <hselasky@freebsd.org> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r259123 - head/sys/modules/usb Message-ID: <CAJ-Vmon_s8rNGSu9MFOKc=311EjGrSAMGo6ONyh61qQCU5r8KQ@mail.gmail.com> In-Reply-To: <201312090726.rB97QuVA077110@svn.freebsd.org> References: <201312090726.rB97QuVA077110@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
You don't have to build the whole kernel - you just need to have config run to spit out the opt_xxx files. -a On 8 December 2013 23:26, Hans Petter Selasky <hselasky@freebsd.org> wrote: > Author: hselasky > Date: Mon Dec 9 07:26:55 2013 > New Revision: 259123 > URL: http://svnweb.freebsd.org/changeset/base/259123 > > Log: > Make it easier to test build the USB code having the debug flags set > without having to build the complete kernel. > > MFC after: 2 weeks > > Modified: > head/sys/modules/usb/Makefile > > Modified: head/sys/modules/usb/Makefile > ============================================================================== > --- head/sys/modules/usb/Makefile Mon Dec 9 07:15:46 2013 (r259122) > +++ head/sys/modules/usb/Makefile Mon Dec 9 07:26:55 2013 (r259123) > @@ -27,6 +27,18 @@ > > .include <bsd.own.mk> > > +# > +# Check for common USB debug flags to pass when building the USB > +# modules in this directory: > +# > +.if defined(USB_DEBUG) > +MAKE+=" DEBUG_FLAGS+=-DUSB_DEBUG" > +.endif > + > +.if defined(USB_DEBUG) && defined(USB_REQ_DEBUG) > +MAKE+=" DEBUG_FLAGS+=-DUSB_REQ_DEBUG" > +.endif > + > # Modules that include binary-only blobs of microcode should be selectable by > # MK_SOURCELESS_UCODE option (see below). >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon_s8rNGSu9MFOKc=311EjGrSAMGo6ONyh61qQCU5r8KQ>