From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 12:24:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E62DD16A4CE for ; Mon, 29 Nov 2004 12:24:43 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA7B43D5F for ; Mon, 29 Nov 2004 12:24:40 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id iATCOZji098352; Mon, 29 Nov 2004 22:54:36 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Mon, 29 Nov 2004 22:54:26 +1030 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2029964.ylFCYLexP1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200411292254.32943.doconnor@gsoft.com.au> X-Spam-Score: -0.4 () PGP_SIGNATURE_2,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: A hack to rebuild port KLDs during kernel builds X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 12:24:44 -0000 --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 --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--