From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 19 23:34:16 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 8BB4D16A4CE for ; Sun, 19 Sep 2004 23:34:16 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F31043D2D for ; Sun, 19 Sep 2004 23:34:16 +0000 (GMT) (envelope-from mymuss@gmail.com) Received: by mproxy.gmail.com with SMTP id 74so896222rnk for ; Sun, 19 Sep 2004 16:34:12 -0700 (PDT) Received: by 10.38.162.40 with SMTP id k40mr1183597rne; Sun, 19 Sep 2004 16:34:12 -0700 (PDT) Received: by 10.38.72.66 with HTTP; Sun, 19 Sep 2004 16:34:12 -0700 (PDT) Message-ID: Date: Mon, 20 Sep 2004 02:34:12 +0300 From: Andrew Novikov To: freebsd-hackers@freebsd.org In-Reply-To: <16715.51219.709030.281400@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95> <16715.51219.709030.281400@guru.mired.org> Subject: Re: Editing and compiling FreeBSD source X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Novikov List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Sep 2004 23:34:16 -0000 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 wrote: > In <7ea4ce2e54aa7d07618278640e7be260@200.140.233.95>, Cantarella typed: > > > > This is my first e-mail for this list. > > I am interested in studing to better understand FreeBSD=B4s source c= ode. > > 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=B4s source code. >=20 > That will work, but it's the painfull way to do it. The old way is > easier to do development with: >=20 > 1) cd /usr/src/sys/i386/conf > 2) config YOURCONFIG > 3) cd ../../compile/YOURCONFIG > 4) make depend > 5) make install >=20 > 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. >=20 > This won't remake kernel modules - but you can do "make's" in > /usr/src/sys/modules/* to deal with those. >=20 > -- > Mike Meyer http://www.mired.org/consulting.h= tml > Independent Network/Unix/Perforce consultant, email for more information. >=20 >=20 > _______________________________________________ > 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= " >=20 --=20 Sincerely, Andrew