Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 1999 19:13:30 -0700
From:      Rahul Dhesi <dhesi@rahul.net>
To:        freebsd-stable@freebsd.org
Subject:   Re: Debug kernel by default (was: System size with -g)
Message-ID:  <199904070213.AA24428@waltz.rahul.net>
References:  <freebsd-questions.19990407082416.H2142@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
FWIW, I have been using the below script to config and build new
kernels.  Note that `domainname` yields the TCP/IP domain in my case.

BTW, would we ever want to do a 'config' and not follow that with
'make depend' in the build directory?  If not, then config ought to
automatically do 'make depend'.

--cut here--cut here--
#! /bin/sh
if :
then
host=`hostname`
domain=`domainname`
kernel=`basename $host .$domain`

kdebug=kernel.debug

config -g $kernel &&
   (cd ../../compile/$kernel && 
    make clean && make depend && 
    make &&
    make install &&
    ( cd /var/crash; rm -f $kdebug.old;
    test -f $kdebug && mv -f $kdebug $kdebug.old || true ) &&
    cp /kernel /var/crash/$kdebug &&
    chflags noschg /kernel &&
    strip --strip-debug /kernel &&
    chflags schg /kernel
   )
fi > Log 2>&1
--cut here--cut here--
-- 
Rahul Dhesi <dhesi@spams.r.us.com>


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?199904070213.AA24428>