From owner-freebsd-stable Mon Sep 2 18:32:18 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 CD30537B400 for ; Mon, 2 Sep 2002 18:32:13 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A89F43E4A for ; Mon, 2 Sep 2002 18:32:13 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id SAA22038; Mon, 2 Sep 2002 18:31:54 -0700 Message-ID: <3D741109.6040700@owt.com> Date: Mon, 02 Sep 2002 18:31:53 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: dmagda@ee.ryerson.ca Cc: "David W. Chapman Jr." , Joseph , freebsd-stable@FreeBSD.ORG Subject: Re: make kernel "KERNCONF" ignored? References: <1030985369.15461.6.camel@obst> <20020902204552.GB978@houston.rr.com> <20020902213732.GA80617@leviathan.inethouston.net> <3D73E9D1.5000603@owt.com> <86n0r0nfyv.fsf@number6.magda.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 David Magda wrote: > Kent Stewart writes: > > >>That is the reason I have shell scripts that build everything. I may >>make a mistake typing the script name but I found out really fast that >>I did. I don't get to the end of the process and find all of my >>logging or etc. when to /dev/null. I log (tee) everything during the >>build and install and I don't make errors this way. >> > > You can define KERNCONF in /etc/make.conf. > > What I have is the line: > KERNCONF?= MYKERNELC > > This way if I don't specify anything on the command line the value > MYKERNELC is used. If I do define it on the command line, the value > in /etc/make.conf is ignored. > > I hardly change my setup on my one box so it's very convenient. If > you multiple setups that you compile on one box, or change/rename > things frequently this isn't as useful. > My make line is much more involved and susceptible to error. My shell script looks like owt-207-41-94-232# cat mkkernel #! /bin/sh cd /usr/src make buildkernel KERNCONF=CRYSTAL 2>&1 | tee /var/log/build/bkernel-`date "+%Y%m%d-%H%M"`.log The make through the .log are all one line and that is too much to successfully type correctly very many times. I'm not worried about the kernel name as much as the logging stuff. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message