From owner-freebsd-hackers Sat Mar 24 11:42:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from nebula.cybercable.fr (d217.dhcp212-126.cybercable.fr [212.198.126.217]) by hub.freebsd.org (Postfix) with ESMTP id 10D8E37B719 for ; Sat, 24 Mar 2001 11:42:48 -0800 (PST) (envelope-from mux@qualys.com) Received: (from mux@localhost) by nebula.cybercable.fr (8.11.3/8.11.3) id f2OJgDw10761 for hackers@FreeBSD.org; Sat, 24 Mar 2001 20:42:13 +0100 (CET) (envelope-from mux) Date: Sat, 24 Mar 2001 20:42:12 +0100 From: Maxime Henrion To: hackers@FreeBSD.org Subject: Patch to disallow the build of modules Message-ID: <20010324204212.A777@nebula.cybercable.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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 --Q68bSM7Ycu6FN28Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message