[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-stable
Subject: Re: update system after hacking source codes
From: "Scot W. Hetzel" <hetzels () westbend ! net>
Date: 2002-11-29 22:29:04
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic