From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 17 19:49:09 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 DFE3E16A4CE for ; Fri, 17 Sep 2004 19:49:08 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10C7743D3F for ; Fri, 17 Sep 2004 19:49:08 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b239.otenet.gr [212.205.244.247]) i8HJn4Qc023284; Fri, 17 Sep 2004 22:49:05 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i8HJkmGN001154; Fri, 17 Sep 2004 22:46:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i8HJkmNQ001153; Fri, 17 Sep 2004 22:46:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 17 Sep 2004 22:46:48 +0300 From: Giorgos Keramidas To: Andrew Novikov Message-ID: <20040917194648.GA1106@gothmog.gr> References: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Phone: +30-2610-312145 Mobile: +30-6944-116520 X-Mailman-Approved-At: Sat, 18 Sep 2004 15:39:16 +0000 cc: freebsd-hackers@freebsd.org cc: Cantarella 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: Fri, 17 Sep 2004 19:49:09 -0000 On 2004-09-17 21:31, Andrew Novikov wrote: > On Tue, 14 Sep 2004 08:54:02 +0000, cantarella@senffnet.com.br wrote: > > This is my first e-mail for this list. > > I am interested in studing to better understand FreeBSD?s 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 this > > trip through FreeBSD?s source code. > > yes, as long as your changes were made under /usr/src/sys/ If the changes are trivial (i.e. just an extra printf() call, as suggested above) you might even get away with something faster: # cd /usr/src # make -DNOCLEAN buildkernel or even, by directly using "make" in the object directory, i.e.: # cd /usr/obj/usr/src/sys/SOLERO # make && make install Before you start taking such shortcuts though, you should definitely get acquainted with the build process of FreeBSD. The Handbook contains an entire chapter on building and installing from the sources. Please read it carefully. As many times as it takes... Regards, Giorgos