Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 23:14:43 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        current@freebsd.org
Subject:   Re: Kernel module inconsistency was policy on GPL'd drivers?
Message-ID:  <20030527.231443.42771754.imp@bsdimp.com>
In-Reply-To: <200305280837.19418.alex.neyman@auriga.ru>
References:  <1054095955.1429.52.camel@boxster> <3ED43A34.7020704@btc.adaptec.com> <200305280837.19418.alex.neyman@auriga.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200305280837.19418.alex.neyman@auriga.ru>
            Alexey Neyman <alex.neyman@auriga.ru> writes:
: I'd rather see something like
: PORTS_KMODS=audio/aureal-kmod xxx/yyy
: knob in the /etc/make.conf

Funny, I had similar thoughts before seeing your patch.  Here's my
latest patch.  You could put it in /etc/make.conf, but that's really
the wrong place because you typically would want to tie it to a
specific kernel config.  However, there's nothing stopping you from
doing that if you want.  I'd do it as a makeoptions, ala
MODULES_OVERRIDE.

This version fixes two bugs: make clean (reported by alex!), and
propigationg of SYSDIR.  I suppose that I should replace /usr/ports
with something like PORTSDIR too, eh?

Warner

--- //depot/user/imp/freebsd-imp/sys/conf/kern.post.mk#10
+++ /paco/imp/p4/src/sys/conf/kern.post.mk
@@ -21,6 +21,19 @@
 	    ${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
 .endif
 .endfor
+# Handle out of tree ports
+.if defined(PORTS_MODULES)
+.if defined(SYSDIR)
+PORTSMODULESENV=SYSDIR=${SYSDIR}
+.endif
+.for target in all install clean
+${target}: ports-${target}
+ports-${target}:
+.for __i in ${PORTS_MODULES}
+	cd /usr/ports/${__i}; ${PORTSMODULESENV} ${MAKE} ${target}
+.endfor
+.endfor
+.endif
 
 .ORDER: kernel-install modules-install
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527.231443.42771754.imp>