Date: Mon, 29 Nov 2004 22:54:26 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Subject: A hack to rebuild port KLDs during kernel builds Message-ID: <200411292254.32943.doconnor@gsoft.com.au>
next in thread | raw e-mail | index | archive | help
--nextPart2029964.ylFCYLexP1 Content-Type: multipart/mixed; boundary="Boundary-01=_6TxqB1RF3P1VNLK" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_6TxqB1RF3P1VNLK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I have a few "third party" KLDs on my system (nvidia, acpi_ppc, dell, if_nd= is)=20 and it's quite annoying to have to rebuild them each kernel build, or=20 upgrade. I have thought about putting them in /boot/modules but I have had= =20 this crash on my fairly often (esp since I am running -current). If you want to try it.. Apply the diff and make /usr/local/kld and copy port-makefile.txt there as= =20 Makefile. Note that (obviously) the ports need to be tweaked to install the driver=20 source and build infrastructure there, but that's not too hard (to do by ha= nd=20 for now anyway). I have the 4 I mentioned building just fine with 5 minutes= =20 work. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Boundary-01=_6TxqB1RF3P1VNLK Content-Type: text/plain; charset="us-ascii"; name="port-makefile.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="port-makefile.txt" # I live in /usr/local/kld/Makefile SUBDIR!= /usr/bin/find . -maxdepth 1 -type d \! -name . \! -name CVS | /usr/bin/xargs /bin/echo .include <bsd.subdir.mk> --Boundary-01=_6TxqB1RF3P1VNLK Content-Type: text/x-diff; charset="us-ascii"; name="port-kld.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="port-kld.diff" Index: sys/modules/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/CVS-Repository/src/sys/modules/Makefile,v retrieving revision 1.410 diff -u -p -r1.410 Makefile =2D-- sys/modules/Makefile 16 Nov 2004 17:19:04 -0000 1.410 +++ sys/modules/Makefile 29 Nov 2004 12:21:58 -0000 @@ -166,6 +166,7 @@ SUBDIR=3D ${_3dfx} \ plip \ ${_pmc} \ portalfs \ + ${_ports} \ ppbus \ ppi \ pps \ @@ -260,6 +261,11 @@ _syscons=3D syscons _ufs=3D ufs .endif =20 +PORTSKLD?=3D /usr/local/kld +.if exists(${PORTSKLD}) && !defined(NO_PORTS_KLDS) +_ports=3D ../../../../${PORTSKLD} +.endif + .if !defined(NOCRYPT) || defined(ALL_MODULES) .if exists(${.CURDIR}/../opencrypto) _crypto=3D crypto --Boundary-01=_6TxqB1RF3P1VNLK-- --nextPart2029964.ylFCYLexP1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBqxUA5ZPcIHs/zowRArD+AJ9kYSy6oryK/7vABPm0Kmhn+HxoMACbBvLG VzN4o+FW0dozopO86GfqolY= =suxy -----END PGP SIGNATURE----- --nextPart2029964.ylFCYLexP1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411292254.32943.doconnor>