From owner-freebsd-stable Fri Nov 29 14:16:53 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A6F337B401 for ; Fri, 29 Nov 2002 14:16:52 -0800 (PST) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6421143EAF for ; Fri, 29 Nov 2002 14:16:51 -0800 (PST) (envelope-from hetzels@westbend.net) Received: from Admin01 (admin01.westbend.net [216.47.253.18]) by mail.westbend.net (8.12.6/8.12.5) with SMTP id gATMGm1K070189; Fri, 29 Nov 2002 16:16:48 -0600 (CST) (envelope-from hetzels@westbend.net) Message-ID: <02da01c297f5$01299800$12fd2fd8@Admin01> From: "Scot W. Hetzel" To: "pirat sriyotha" , References: <20021127070606.90602.qmail@web14804.mail.yahoo.com> Subject: Re: update system after hacking source codes Date: Fri, 29 Nov 2002 16:16:45 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=0.8 required=8.0 tests=REFERENCES,SPAM_PHRASE_03_05,USER_AGENT_OE version=2.43 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "pirat sriyotha" > 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