Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 16:16:45 -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:  <02da01c297f5$01299800$12fd2fd8@Admin01>
References:  <20021127070606.90602.qmail@web14804.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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).

    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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02da01c297f5$01299800$12fd2fd8>