From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 18 05:36:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B69516A4CE for ; Sat, 18 Sep 2004 05:36:04 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2640943D31 for ; Sat, 18 Sep 2004 05:36:04 +0000 (GMT) (envelope-from mwm-dated-1096349461.79c5e2@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 74A3A12A7BC for ; Fri, 17 Sep 2004 22:36:03 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id i8I5V1f7076762 for ; Fri, 17 Sep 2004 22:31:01 -0700 (PDT) (envelope-from mwm-dated-1096349461.79c5e2@mired.org) Received: (qmail 31984 invoked by uid 100); 18 Sep 2004 05:31:01 -0000 Received: by guru.mired.org (tmda-sendmail, from uid 100); Sat, 18 Sep 2004 00:31:00 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <16715.51219.709030.281400@guru.mired.org> Date: Sat, 18 Sep 2004 00:30:59 -0500 To: Cantarella In-Reply-To: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> References: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> X-Mailer: VM 7.17 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer X-Mailman-Approved-At: Sat, 18 Sep 2004 15:39:16 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: Editing and compiling FreeBSD source X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 05:36:04 -0000 In <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95>, Cantarella typed: >=20 > This is my first e-mail for this list. > I am interested in studing to better understand FreeBSD=B4s source= code. > With 'make buildkernel' and 'make installkernel' is it possible to= > compile the changes that I have made? > The changes are simple (just some printf). I am just beginning thi= s > trip through FreeBSD=B4s source code. That will work, but it's the painfull way to do it. The old way is easier to do development with: 1) cd /usr/src/sys/i386/conf 2) config YOURCONFIG 3) cd ../../compile/YOURCONFIG 4) make depend 5) make install You only have to go back to step 1 if you touch the config file. You only have to go back to step 4 if you add #include statements to a source file. Most of the time, you simply redo the "make install", and it only recompiles what you've changed and relinks the kernel. buildkernel and installkernel will recompile everything every time. This won't remake kernel modules - but you can do "make's" in /usr/src/sys/modules/* to deal with those. =09=09=09http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more informatio= n.