Hi, I have a few "third party" KLDs on my system (nvidia, acpi_ppc, dell, if_ndis) and it's quite annoying to have to rebuild them each kernel build, or upgrade. I have thought about putting them in /boot/modules but I have had 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 Makefile. Note that (obviously) the ports need to be tweaked to install the driver source and build infrastructure there, but that's not too hard (to do by hand for now anyway). I have the 4 I mentioned building just fine with 5 minutes work. -- 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
# 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>
Index: sys/modules/Makefile
===================================================================
RCS file: /usr/CVS-Repository/src/sys/modules/Makefile,v
retrieving revision 1.410
diff -u -p -r1.410 Makefile
--- 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= ${_3dfx} \
plip \
${_pmc} \
portalfs \
+ ${_ports} \
ppbus \
ppi \
pps \
@@ -260,6 +261,11 @@ _syscons= syscons
_ufs= ufs
.endif
+PORTSKLD?= /usr/local/kld
+.if exists(${PORTSKLD}) && !defined(NO_PORTS_KLDS)
+_ports= ../../../../${PORTSKLD}
+.endif
+
.if !defined(NOCRYPT) || defined(ALL_MODULES)
.if exists(${.CURDIR}/../opencrypto)
_crypto= crypto
pgpqXe4hMFqBV.pgp
Description: PGP signature

