From owner-freebsd-questions@FreeBSD.ORG Wed Apr 2 11:50:05 2003 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 B644F37B401 for ; Wed, 2 Apr 2003 11:50:05 -0800 (PST) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F6E143FDF for ; Wed, 2 Apr 2003 11:50:04 -0800 (PST) (envelope-from scott@fishballoon.org) Received: from fishballoon.org ([81.104.195.199]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030402195000.QYSE2033.mta06-svc.ntlworld.com@fishballoon.org>; Wed, 2 Apr 2003 20:50:00 +0100 Received: from tuatara.fishballoon.org (tuatara [192.168.1.6]) by fishballoon.org (8.12.6p2/8.12.6) with ESMTP id h32JnKGw027080; Wed, 2 Apr 2003 20:49:20 +0100 (BST) (envelope-from scott@tuatara.fishballoon.org) Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.7/8.12.6/Submit) id h32JnJZn081633; Wed, 2 Apr 2003 20:49:19 +0100 (BST) (envelope-from scott) Date: Wed, 2 Apr 2003 20:49:19 +0100 From: Scott Mitchell To: Antoine Jacoutot Message-ID: <20030402194919.GC517@tuatara.fishballoon.org> References: <200304022011.57634.ajacoutot@lphp.org> <16011.10924.634069.890451@guru.mired.org> <200304022035.15679.ajacoutot@lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304022035.15679.ajacoutot@lphp.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.8-PRERELEASE i386 cc: Mike Meyer cc: freebsd-questions@freebsd.org Subject: Re: rebuild one module X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 19:50:06 -0000 On Wed, Apr 02, 2003 at 08:35:15PM +0200, Antoine Jacoutot wrote: > On Wednesday 02 April 2003 20:23, Mike Meyer wrote: > > Well, what are you doing now to build the kernel? You should be able > > to use the classic kernel build method, except you don't have to > > repeat any of the steps but "make". > > What I am doing is > $ cd /usr/src > $ make buildkernel KERNCONF=MY_CONF > $ make installkernel KERNCONF=MY_CONF > > Then I reboot the machine. But I don't want to rebuild the kernel each time I > change one line in the emu10k1... I want to be able to just rebuild the > module itself. > > Antoine You could either use: # make buildkernel -DNOCLEAN KERNCONF=MY_CONF or you could just: # cd /sys/modules/sound/driver/emu10k1 # make install If you're careful about what's using the driver you can probably get away with just unloading and reloading the module to test your changes, rather than rebooting every time. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon