Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Sep 2002 18:31:53 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        dmagda@ee.ryerson.ca
Cc:        "David W. Chapman Jr." <dwcjr@inethouston.net>, Joseph <mystical@houston.rr.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: make kernel "KERNCONF" ignored?
Message-ID:  <3D741109.6040700@owt.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help


David Magda wrote:

> Kent Stewart <kstewart@owt.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D741109.6040700>