From owner-freebsd-hackers Fri Dec 5 00:54:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA03820 for hackers-outgoing; Fri, 5 Dec 1997 00:54:48 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA03812 for ; Fri, 5 Dec 1997 00:54:42 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id AAA11284; Fri, 5 Dec 1997 00:54:30 -0800 (PST) Message-ID: <19971205005430.09155@hydrogen.nike.efn.org> Date: Fri, 5 Dec 1997 00:54:30 -0800 From: John-Mark Gurney To: Greg Lehey Cc: Francisco Reyes , "hackers@freebsd.org" Subject: Re: Why so many steps to build new kernel? References: <199712050750.XAA25888@super.zippo.com> <19971205161339.59500@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <19971205161339.59500@lemis.com>; from Greg Lehey on Fri, Dec 05, 1997 at 04:13:39PM +0800 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Greg Lehey scribbled this message on Dec 5: > On Fri, Dec 05, 1997 at 02:50:07AM -0400, Francisco Reyes wrote: > > I was wondering if there would be any problems with creating a script > > for some of the steps of building a new kernel. What if any would be > > the problem with having a script which does: > > > > config kern1 > > cd ../../kern1 > > make depend > > make all > > make install > > Why not? Of course, you could simplify it. > > > If such script was created it should check the return code of the > > make command to make sure there were no problems. > > You wouldn't need to do that if you wrote: > > make config depend all install > > Better still, you could make a target 'world' which did this for you, > including the cd's and configs in your original version. hmm... where is this config target for make?? just checked my -current kernel source tree and see no config target... also, how do you propose to handle the directory tree being removed and recreated out from under you when config runs? (hmm... something like exec'ing make after the config phase might work...) -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD