Date: Fri, 17 Sep 2004 22:46:48 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Andrew Novikov <mymuss@gmail.com> Cc: Cantarella <cantarella@senffnet.com.br> Subject: Re: Editing and compiling FreeBSD source Message-ID: <20040917194648.GA1106@gothmog.gr> In-Reply-To: <c1e1c6a504091711317bf2c2dd@mail.gmail.com> References: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> <c1e1c6a504091711317bf2c2dd@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-09-17 21:31, Andrew Novikov <mymuss@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040917194648.GA1106>