From owner-freebsd-questions@FreeBSD.ORG Fri Jun 12 14:50:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AC901065670 for ; Fri, 12 Jun 2009 14:50:19 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 14CB78FC21 for ; Fri, 12 Jun 2009 14:50:18 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id A0BC77E837; Fri, 12 Jun 2009 06:50:17 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Fri, 12 Jun 2009 06:50:16 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <20090612125419.e418347b.freebsd@edvax.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906120650.16738.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Wojciech Puchar , Polytropon Subject: Re: Compiling in sound driver in kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 14:50:19 -0000 On Friday 12 June 2009 04:43:46 Wojciech Puchar wrote: > > # cd /usr/src/sys/i386/conf > > # cp GENERIC MYKERNEL > > (or use any other descriptive name instead of MYKERNEL). > > edit MYKERNEL and add > > device sound > > device snd_hda > > # cd /usr/src > > # make buildkernel KERNCONF=MYKERNEL > > # make installkernel KERNCONF=MYKERNEL > > # reboot > > why not: > > > edit MYKERNEL > config MYKERNEL > cd ../compile/MYKERNEL make obj > make depend > make > make install > > ? Because it is more typing? One can actually put KERNCONF in /etc/src.conf. In fact, one can put multiple kernel files in KERNCONF and the first one in the list will be the one installed, all will be built. This is how I share kernels over nfs to multiple machines from one build machine by mounting /usr/src and /usr/obj on the target machines and just running make installkernel. The target machines have their kernelname set in their own /etc/src.conf. -- Mel