From owner-svn-src-all@FreeBSD.ORG Mon Dec 9 20:04:58 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E7D7B84; Mon, 9 Dec 2013 20:04:58 +0000 (UTC) Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABF9B1CB3; Mon, 9 Dec 2013 20:04:57 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id k4so2976497qaq.8 for ; Mon, 09 Dec 2013 12:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=YvYeo7hRH9fK6KpBmdw+r/Ea1GZ7tc0bdmKxa+mPOx8=; b=s7RK05ztVyn8n0CDwTyv0iFMpw7IeuTTsH7KUhhWdwu/wn+ML23+SNLZmcdIK3OEh4 l2aQ0DGH26LPruyVyIq9zaboj6weEKz0Ih8p+1dbHxBWuzmhIQSQ+j8oDBo2l2W//CTw gxYrQ5DEZNp7MWvSBcF6ehClFMg4mdCbCYcAJC6rNhpHasZZtpAIFAraR7+KQTXLzRvX hTFMpXk85Dt1vlePv3AsGJb1DrxokF8/dfwOLznOfmAvLpZw/3Syl1NgKxv1g3D104M/ 85ewBGxaUoD+i0o4h8m2rCcm5jTk27ubvdwbgsior7bF+UXJ7u4lO7OfBgYzev/YUkR0 SjMg== MIME-Version: 1.0 X-Received: by 10.49.129.38 with SMTP id nt6mr28873467qeb.78.1386619496935; Mon, 09 Dec 2013 12:04:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.53.200 with HTTP; Mon, 9 Dec 2013 12:04:56 -0800 (PST) In-Reply-To: <201312090726.rB97QuVA077110@svn.freebsd.org> References: <201312090726.rB97QuVA077110@svn.freebsd.org> Date: Mon, 9 Dec 2013 12:04:56 -0800 X-Google-Sender-Auth: zmfNWwtEb8MjV99dVN5tGC5cq7Q Message-ID: Subject: Re: svn commit: r259123 - head/sys/modules/usb From: Adrian Chadd To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2013 20:04:58 -0000 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 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 > > +# > +# 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). >