Date: Sat, 24 Mar 2001 20:42:12 +0100 From: Maxime Henrion <mux@qualys.com> To: hackers@FreeBSD.org Subject: Patch to disallow the build of modules Message-ID: <20010324204212.A777@nebula.cybercable.fr>
next in thread | raw e-mail | index | archive | help
--Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/ --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="Makefile.diff" --- /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> --Q68bSM7Ycu6FN28Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010324204212.A777>