In message: <[EMAIL PROTECTED]> Alexey Neyman <[EMAIL PROTECTED]> 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 _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"