policy on GPL'd drivers?
M. Warner Losh
imp at bsdimp.com
Tue May 27 21:52:46 PDT 2003
In message: <200305281147.53271.doconnor at gsoft.com.au>
"Daniel O'Connor" <doconnor at gsoft.com.au> writes:
: The only downside is that there are no hooks into the build process so you
: have to be VERY careful when you update your kernel, or you get panics :(
This is true. I'd thought that MODULES_OVERRIDE would help, but ports
builds and kernel builds are different enough to make this not easy to
do.
Wanna test a patch? Add a 'makeoptions PORTS_MODULES=comms/ltmdm' to
your config file and apply the following patch. Lemme know how well
(or poorly) it works. There's likely some hidden assumptions that
make it appear to work for me.
Warner
--- sys/conf/kern.post.mk#10 Tue May 27 22:34:04 2003
+++ sys/conf/kern.post.mk Tue May 27 22:34:04 2003
@@ -41,6 +41,20 @@
.endif
.endif
+.if defined(PORTS_MODULES)
+modules: ports-all
+ports-all:
+.for __i in ${PORTS_MODULES}
+ cd /usr/ports/${__i}; ${MAKE} all
+.endfor
+
+modules-install: ports-install
+ports-install:
+.for __i in ${PORTS_MODULES}
+ cd /usr/ports/${__i}; ${MAKE} install
+.endfor
+.endif
+
.if !defined(DEBUG)
FULLKERNEL= ${KERNEL_KO}
.else
More information about the freebsd-current
mailing list