Date: Sat, 2 Jun 2001 15:32:04 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Kris Kennaway <kris@obsecurity.org> Cc: Alfred Perlstein <bright@rush.net>, Jiangyi Liu <gzjyliu@public.guangzhou.gd.cn>, freebsd-hackers@FreeBSD.ORG Subject: Re: How to recompile kernel after minor changes? Message-ID: <20010602153204.C28335@ringworld.oblivion.bg> In-Reply-To: <20010602143532.A28335@ringworld.oblivion.bg>; from roam@orbitel.bg on Sat, Jun 02, 2001 at 02:35:32PM %2B0300 References: <878zjb20fd.fsf@fatcow.home> <20010601210728.A1832@superconductor.rush.net> <20010602115823.D24747@ringworld.oblivion.bg> <20010602043145.B97130@xor.obsecurity.org> <20010602143532.A28335@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 02, 2001 at 02:35:32PM +0300, Peter Pentchev wrote: > On Sat, Jun 02, 2001 at 04:31:45AM -0700, Kris Kennaway wrote: > > On Sat, Jun 02, 2001 at 11:58:23AM +0300, Peter Pentchev wrote: > > > On Fri, Jun 01, 2001 at 09:07:28PM -0400, Alfred Perlstein wrote: > > > > * Jiangyi Liu <gzjyliu@public.guangzhou.gd.cn> [010601 20:25] wrote: > > > > > Hi all, > > > > > > > > > > After just changing a little in sys/kern/kern_sig.c, how can I rebuild > > > > > the kernel fast? I think it should not take such a long time as 'make > > > > > buildkernel' does. Anyway, just kern_sig.c need to be recompiled and > > > > > the kernel can be linked. So how do you guys do in such case? > > > > > > > > try: > > > > make buildkernel -DNOCLEAN > > > > > > And if you've really only changed kern_sig.c, add -DMODULES_WITH_WORLD, too. > > > This will cut down the kernel compile time to the dependencies' and set > > > generation (which cannot be avoided in any sane build), and then compiling > > > only 4-5 files. > > > > or -DNO_MODULES, as it's usually spelled when only doing a kernel compile :-) > > On -stable? > > [roam@ringworld:v4 /usr/src]$ fgrep NO_MODULES Makefile* > [roam@ringworld:v4 /usr/src]$ fgrep NO_MODULES sys/Makefile* > [roam@ringworld:v4 /usr/src]$ fgrep NO_MODULES sys/modules/Makefile* > [roam@ringworld:v4 /usr/src]$ find /usr/share/mk -type f | xargs fgrep NO_MODUL > ES > [roam@ringworld:v4 /usr/src]$ > > Or is it somewhere else? *oof* (extracts foot from mouth) Of course, with a bit more looking, I found it in /sys/conf/Makefile.${arch} G'luck, Peter -- If wishes were fishes, the antecedent of this conditional would be true. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010602153204.C28335>