Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 22:52:07 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        doconnor@gsoft.com.au
Cc:        freebsd-current@freebsd.org
Subject:   Re: policy on GPL'd drivers?
Message-ID:  <20030527.225207.101586684.imp@bsdimp.com>
In-Reply-To: <200305281147.53271.doconnor@gsoft.com.au>
References:  <C90CF9CA-9040-11D7-941E-0003937E39E0@mac.com> <200305281147.53271.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200305281147.53271.doconnor@gsoft.com.au>
            "Daniel O'Connor" <doconnor@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



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