AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20071024143824.38738cc4@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E056C915F@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 24 Oct 2007 14:39:08 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Subject: Re: This AM's Kernel build error
Message-ID: <20071024143908.3a47ce42@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E056C915F@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E02F3DA29@onstor-exch02.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E056C915F@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Wed, 24 Oct 2007 14:20:34 -0700 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> The top level Kernel target now needs some command line variables.
> Since we will soon be building both bobcat and cougar Linux kernels a
> PROD variable is needed. Since we will also be building for both NFS
> root filesystems and a compact flash filesystem two more variables are
> needed, DESTDIR and TFTPDIR. Since you need so many command line
> variables might as well throw in VARIANT. It, too, is needed.
> 
> I am planning on creating the make release targets to set these for
> you but until I get that together this is how you should invoke the
> kernel build.
> 
> cd .. && make VARIANT=dbg (or opt) PROD=bl (or cg)
> DESTDIR=/var/nfsroot/bobcat TFTPDIR=/var/nfsroot/bobcat
> 
> For PROD=cg use /var/nfsroot/cougar for DESTDIR and TFTPDIR.
> 
> Of course if you have a bobcat Linux box then you want to set TFTPDIR
> to the actual directory your bobcat boots from. Since you don't have
> one of these setting DESTDIR and TFTPDIR to the same directory is
> good enough for the time being.
> 
> I will also change the top level Makefile so if PROD=ch or bc the
> Linux kernel target won't fire.

Just hard code it to bl currently, and when cougar is a reality, then
we will add a target to build both.  Or add some bits that error out if
it isn't set to bl and we'll clean that when cougar is added.


> Larry
> 
> -----Original Message-----
> From: Ken Renshaw 
> Sent: Wednesday, October 24, 2007 1:52 PM
> To: Andy Sharp; Larry Scheer
> Subject: RE: This AM's Kernel build error
> 
> Hi guys. This is what I'm doing:
> 
> #
> # Cougar and Bobcat Linux targets, compile only
> #
> 
>         if [ ${NIGHTLY} == "true" ]; then
> 
>                 # First build the linux kernel...
> 
>                 echo "" >> ${BUILDLOGS}/auditlog
>                 echo "***** bc and ch target builds completed,
> compilation of linux kernel beginning at `date`" >>
> ${BUILDLOGS}/auditlog
>                 cd .. && make kernel 2>&1 |tee
> ${BUILDLOGS}/linux-kernel-compile.log
>                 cd nfx-tree
>                 echo "" >> ${BUILDLOGS}/auditlog
>                 echo "***** Compilation of linux kernel completed, cg
> and bl target builds now starting at `date`" >> ${BUILDLOGS}/auditlog
> 
>                 # ..and then the cougar and bobcat-on-linux targets.
>                 make ${MKFLAGS} VARIANT=dbg PROD=cg all 2>&1 |tee
> ${BUILDLOGS}/cg-dbg-compile.log
>                 make ${MKFLAGS} VARIANT=opt PROD=cg all 2>&1 |tee
> ${BUILDLOGS}/cg-opt-compile.log
>                 make ${MKFLAGS} VARIANT=dbg PROD=bl all 2>&1 |tee
> ${BUILDLOGS}/bl-dbg-compile.log
>                 make ${MKFLAGS} VARIANT=opt PROD=bl all 2>&1 |tee
> ${BUILDLOGS}/bl-opt-compile.log
>                 echo "" >> ${BUILDLOGS}/auditlog
>                 echo "***** Compilation of cg and bl target builds
> completed at `date`" >> ${BUILDLOGS}/auditlog
> 
>         fi
> 
> 
> it would be nice if the makefile disallowed building on cheetah, but
> I'll go ahead and change the build script to skip building linux for
> cheetah.
> 
> Thanks,
> 
> -Ken
> 
> 
> -----Original Message-----
> From: Andy Sharp
> Sent: Wed 10/24/2007 1:50 PM
> To: Larry Scheer
> Cc: Ken Renshaw
> Subject: Re: This AM's Kernel build error
>  
> The makefile should prevent this, unless someone is doing something
> strange.
> 
> On Wed, 24 Oct 2007 13:26:02 -0700 "Larry Scheer"
> <larry.scheer@onstor.com> wrote:
> 
> > Looks like the kernel build failed because PROD was set to "ch"
> > (cheetah)
> > 
> > make -C linux/rootfs DESTDIR=/perforce/trees/dev/distr TFTPDIR=
> > PROD=ch kernel
> > ...
> > ...
> > ...
> > make[3]: Leaving directory
> > `/perforce/trees/dev/linux/kernel/linux-mips-2.6'
> > /usr/local/sde4/bin/conv -f bin -o linux-mips-2.6/vmlinux.bin
> > a.out: No such file or directory
> > make[2]: *** [linux-mips-2.6/vmlinux.bin] Error 1
> > make[2]: Leaving directory `/perforce/trees/dev/linux/kernel'
> > make[1]: *** [/perforce/trees/dev/distr/boot/vmlinux.bin] Error 2
> > make[1]: Leaving directory `/perforce/trees/dev/linux/rootfs'
> > make: *** [kernel] Error 2
> > 
> > 
> > Ken, 
> >     How does your build script invoke the linux kernel build?
> > 
> > 
> > Larry
> 
