From owner-freebsd-questions Sat Jan 5 10:14:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id 91DC237B416 for ; Sat, 5 Jan 2002 10:14:12 -0800 (PST) Received: from barbish ([63.70.155.108]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Sat, 5 Jan 2002 13:16:45 -0500 From: "Joe & Fhe Barbish" To: "Joe Clarke" Cc: "FBSD Questions" Subject: RE: removeing sound card from kernel binary Date: Sat, 5 Jan 2002 13:14:08 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1010252764.25865.8.camel@shumai.marcuscom.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Let me see if I understand you correctly. Since all the hardware and software componets like IPFW, nated, user ppp and the like that I use is defined in the kernel source that I have recompiled, I really have no need for any of the load on demand modules that the normal compile includes for me by default. If I issue make depend && make NO_MODULES=YES && make install The compile will take less time and the resulting binary will be smaller in size and have no ill effects on my current environment. -----Original Message----- From: Joe Clarke [mailto:marcus@marcuscom.com] Sent: Saturday, January 05, 2002 12:46 PM To: Joe & Fhe Barbish Cc: nils@tisys.org; Scott Mitchell; FBSD Questions Subject: RE: removeing sound card from kernel binary On Sat, 2002-01-05 at 12:31, Joe & Fhe Barbish wrote: > I have all ready removed the sound card statements from > the kernel source and recompiled. But during compiles for > other thinks I see a lot of statements roll by for sound card > support during make and make install processing. > I though maybe there was some way to un-bundle load module > support for sound cards. > > Or let me ask this a different way. > > What is the sound card statements I see roll by during > make & make install referring too? Chances are they are the various snd_* modules that appear in /modules. Even if you don't have any sound support in your kernel, unless you do: make NO_MODULES=YES when building your kernel, klds will be built, which include all the sound drivers. I don't think you can just not build the sound support modules unless you hack the Makefiles. Joe > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Scott Mitchell > Sent: Saturday, January 05, 2002 11:48 AM > To: Joe & Fhe Barbish > Cc: FBSD Questions > Subject: Re: removeing sound card from kernel binary > > On Sat, Jan 05, 2002 at 11:24:30AM -0500, Joe & Fhe Barbish wrote: > > I am building a stand-a-lone firewall box. > > I have no need for sound card support. > > > > Is there a way to remove from the kernel to > > make the kernel binary smaller? > > Build a custom kernel without any audio drivers in it? The GENERIC kernel > config doesn't include any audio stuff anyway, so the customisation should > be trivial :-) > > That said, there's probably a lot of other cruft you can strip out of > GENERIC for this box, and you might want to have the firewall code compiled > in rather than loaded from modules, so building a custom kernel is a good > idea anyways. > > Scott > > -- > =========================================================================== > Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels > Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" > scott.mitchell@mail.com | 0xAA775B8B | -- Anon > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message