Date: Fri, 29 Nov 2002 16:29:04 -0600 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "pirat sriyotha" <makhamus@yahoo.com>, <FreeBSD-stable@FreeBSD.ORG> Subject: Re: update system after hacking source codes Message-ID: <02ff01c297f6$b993b7d0$12fd2fd8@Admin01> References: <20021127070606.90602.qmail@web14804.mail.yahoo.com> <02da01c297f5$01299800$12fd2fd8@Admin01>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Scot W. Hetzel" <hetzels@westbend.net> > From: "pirat sriyotha" <makhamus@yahoo.com> > > if i hack some .c file in /usr/src/sys, for example > > net/if.c, how can one update freebsd system to reflect > > such a hacking ? > > > > do one simply make buildworld, installworld at > > /usr/src? > > > > thanks in advance for any helps and hints > > > All you need to do is rebuild your kernel: > > 1. use old kernel build method (only use if /usr/src has been updated since > last build/installworld). Should read "has not been updated since last build/installworld. > > cd /usr/src/sys/i386/conf > config MYKERNEL > cd ../../compile/MYKERNEL > make depend > make > make install > > 2. use new kernel build method (after a buildworld) > > make buildkernel > make installkernel > > or just do: > > make kernel > > If your updating the sources (/usr/src), you should use cvs from a local > source repository (install the cvsup-mirror port), instead of cvsup. As > cvsup will either overrite your changes or fail to update the file. When > you use cvs, it will merge your changes with the updated file. > > Scot > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02ff01c297f6$b993b7d0$12fd2fd8>