Date: Mon, 20 Sep 2004 02:34:12 +0300 From: Andrew Novikov <mymuss@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: Editing and compiling FreeBSD source Message-ID: <c1e1c6a504091916341602b881@mail.gmail.com> In-Reply-To: <16715.51219.709030.281400@guru.mired.org> References: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> <16715.51219.709030.281400@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Could someone please explan me the difference between: make buildkernel make installkernel and config cd ../../compile/..... make depend make make install Thanks! On Sat, 18 Sep 2004 00:30:59 -0500, Mike Meyer <mwm@mired.org> wrote: > In <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95>, Cantarella <cantarella@senffnet.com.br> typed: > > > > 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. > > 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. > > <mike > -- > Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- Sincerely, Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c1e1c6a504091916341602b881>
