From owner-svn-src-all@FreeBSD.ORG Mon Dec 9 07:26:56 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 8A434B6B; Mon, 9 Dec 2013 07:26:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 766601C8D; Mon, 9 Dec 2013 07:26:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rB97QuKv077111; Mon, 9 Dec 2013 07:26:56 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rB97QuVA077110; Mon, 9 Dec 2013 07:26:56 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201312090726.rB97QuVA077110@svn.freebsd.org> From: Hans Petter Selasky Date: Mon, 9 Dec 2013 07:26:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259123 - head/sys/modules/usb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 07:26:56 -0000 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).