From owner-svn-src-head@FreeBSD.ORG Thu Mar 25 13:47:21 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97E1E1065670; Thu, 25 Mar 2010 13:47:21 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC178FC29; Thu, 25 Mar 2010 13:47:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2PDlLij021452; Thu, 25 Mar 2010 13:47:21 GMT (envelope-from netchild@svn.freebsd.org) Received: (from netchild@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2PDlLNZ021449; Thu, 25 Mar 2010 13:47:21 GMT (envelope-from netchild@svn.freebsd.org) Message-Id: <201003251347.o2PDlLNZ021449@svn.freebsd.org> From: Alexander Leidinger Date: Thu, 25 Mar 2010 13:47:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205640 - head/sys/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 13:47:21 -0000 Author: netchild Date: Thu Mar 25 13:47:21 2010 New Revision: 205640 URL: http://svn.freebsd.org/changeset/base/205640 Log: Propagate CONF_CFLAGS (from makeoptions) to the module build too. Discussed with: jhb (on arch@) Modified: head/sys/conf/kern.post.mk head/sys/conf/kmod.mk Modified: head/sys/conf/kern.post.mk ============================================================================== --- head/sys/conf/kern.post.mk Thu Mar 25 13:15:55 2010 (r205639) +++ head/sys/conf/kern.post.mk Thu Mar 25 13:47:21 2010 (r205640) @@ -15,6 +15,10 @@ MKMODULESENV+= DESTDIR="${DESTDIR}" SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;} MKMODULESENV+= KERNBUILDDIR="${.CURDIR}" SYSDIR="${SYSDIR}" +.if defined(CONF_CFLAGS) +MKMODULESENV+= CONF_CFLAGS="${CONF_CFLAGS}" +.endif + .MAIN: all .for target in all clean cleandepend cleandir clobber depend install \ Modified: head/sys/conf/kmod.mk ============================================================================== --- head/sys/conf/kmod.mk Thu Mar 25 13:15:55 2010 (r205639) +++ head/sys/conf/kmod.mk Thu Mar 25 13:47:21 2010 (r205640) @@ -325,6 +325,9 @@ ${_src}: .endfor .endif +# Repsect configuration-specific C flags. +CFLAGS+= ${CONF_CFLAGS} + MFILES?= dev/acpica/acpi_if.m dev/acpi_support/acpi_wmi_if.m \ dev/agp/agp_if.m dev/ata/ata_if.m dev/eisa/eisa_if.m \ dev/iicbus/iicbb_if.m dev/iicbus/iicbus_if.m \