Kernel module inconsistency was policy on GPL'd drivers?
M. Warner Losh
imp at bsdimp.com
Tue May 27 22:15:03 PDT 2003
In message: <200305280837.19418.alex.neyman at auriga.ru>
Alexey Neyman <alex.neyman at 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
More information about the freebsd-current
mailing list