Hi, Here is a patch to select the modules you want and don't want. The patch is for /usr/src/sys/modules/Makefile from RELENG_4. Then you have to put variables in make.conf (i'm writing the patch for defaults/make.conf) like this : NO_KMOD_FPU=true NO_KMOD_GNUFPU=true ... Thanks for any review. Maxime -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code Key fingerprint = F9B6 1D5A 4963 331C 88FC CA6A AB50 1EF2 8CBE 99D6 Public Key : http://www.epita.fr/~henrio_m/
--- /usr/src/sys/modules/Makefile Tue Mar 13 02:26:22 2001 +++ Makefile Sat Mar 24 20:35:54 2001 @@ -2,7 +2,7 @@ # XXX present but broken: ip_mroute_mod pcic -SUBDIR= accf_data accf_http agp aha amr an aue \ +_SUBDIR= accf_data accf_http agp aha amr an aue \ ccd cd9660 coda cue dc fdesc fxp if_disc if_ef if_ppp \ if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kernfs kue \ linux md mfs mii mlx msdos ncp pcn netgraph nfs ntfs nullfs \ @@ -12,16 +12,22 @@ # XXX some of these can move to the general case when de-i386'ed .if ${MACHINE_ARCH} == "i386" -SUBDIR+=aac asr bktr coff fpu gnufpu ibcs2 linprocfs mly ray splash streams \ +_SUBDIR+=aac asr bktr coff fpu gnufpu ibcs2 linprocfs mly ray splash streams \ svr4 vesa wi .endif .if ${MACHINE} == "pc98" -SUBDIR+=snc +_SUBDIR+=snc .endif .if ${MACHINE_ARCH} == "alpha" -SUBDIR+=osf1 +_SUBDIR+=osf1 .endif + +.for kmod in ${_SUBDIR} +.if !defined(NO_KMOD_${kmod:U}) +SUBDIR+=${kmod} +.endif +.endfor .include <bsd.subdir.mk>