From owner-freebsd-questions@FreeBSD.ORG Fri Jan 21 10:25:16 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5DF916A4CF for ; Fri, 21 Jan 2005 10:25:16 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53C9F43D39 for ; Fri, 21 Jan 2005 10:25:16 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so76715wra for ; Fri, 21 Jan 2005 02:25:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=PhSMfcLUTAd5MuMkerqdzIPw+dcxBf1h4Wtvx8jyU/9ZpStEPoavxmeeyx0uCVyuMZpziPAKajuZfupAMwktL2ZNs+YXqnpMONjpZLrAyTC1eCzLaiLv2rnZ3FusL8aHXER8XPchWjV3xIGU3j9qoTIjTTeKj8MZQiZe03lhWow= Received: by 10.54.38.39 with SMTP id l39mr157809wrl; Fri, 21 Jan 2005 02:25:15 -0800 (PST) Received: by 10.54.50.29 with HTTP; Fri, 21 Jan 2005 02:25:15 -0800 (PST) Message-ID: <7daacbbe050121022516c0671@mail.gmail.com> Date: Fri, 21 Jan 2005 11:25:15 +0100 From: Dominique Goncalves To: Ramiro Aceves In-Reply-To: <41F044F4.9070706@wanadoo.es> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41EFA65E.80307@wanadoo.es> <20050120125840.M1382@wcborstel.nl> <41F044F4.9070706@wanadoo.es> cc: Jorn Argelo cc: freebsd-questions-en Subject: Re: I do not understand kernel modules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dominique Goncalves List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 10:25:17 -0000 Hello, You can use this options : NO_MODULES= true # do not build modules with the kernel MODULES_WITH_WORLD=true # do not build modules when building kernel in your /etc/make.conf, read /usr/share/examples/etc/make.conf for more options. Regards. On Fri, 21 Jan 2005 00:55:32 +0100, Ramiro Aceves wrote: > Jorn Argelo wrote: > > On Thu, 20 Jan 2005 13:38:54 +0100, Ramiro Aceves wrote > > > >>Hello friends. > >> > >>I am a FreeBSD newbie, I am going to ask you a question that I have not > >>been able to solve reading the manual. I am using 5.3 release. I have > >>compiled a custom kernel in my old pentium 75 MHz machine to include > >>the driver for my sound card. I added the following lines to the kernel > >>config file > >> > >>device sound > >>device "snd_es137x" > >> > >>and compiled the kernel perfectly. (long time.... ;-) ) > >> > >>But there is something that I do not understand well. When I look at > >>the contents of /boot/kernel/ directory, I found that there are > >>kernel sound modules *.ko for every sound card the kernel supports. > >>Should not there be my sound card module alone? Does It mean that > >>you have to compile all the stuff, even if you are going to use only > >>one kind of sound card? Am I missing something? > > > > > > Your sound card has been build into the kernel itself (which is /boot/kernel/ > > kernel AFAIK). The *.ko are kernel modules, which you can load using the > > kldload command. So in case you get a new sound card, find out what driver it > > supports and you can use kldload .ko to get support for your sound > > card without recompiling your kernel. > > > Yes, I understand now. The problem is that my old pentium machine takes > very long time to compile all the modules even if I am not going to use > them. I would like to compile only the modules I use, to reduce > compiling time. Is that possible? > > Thanks > > > > > > Cheers, > > > > Jorn > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life."