Subject: Re: how to cross-compile kernel?
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 09/07/2002 22:16:30
You need to call tool's nbmake-sparc rather than just 'nbmake' or 'make',
i.e. /usr/tools/bin/nbmake-sparc in your case.

Jaromir

Ronald van der Pol wrote:
> On Sat, Sep 07, 2002 at 20:22:12 +0200, Martin Husemann wrote:
> 
> >   cd /usr/src && ./build.sh -m sparc -T /usr/tools -t
> 
> Hmm, I did a "build.sh -m sparc -D xxx". Then I used the "-t" option.
> No effect. Only after using "-T /usr/tools" I got a nbconfig. If this
> is true, I think build needs some more documentation.
> 
> Moreover, it still does not work:
> cat ../../../../arch/sparc/sparc/genassym.cf  |  sh ../../../../kern/genassym.sh cc  -mno-fpu -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -I.  -I../../../../arch -I../../../.. -nostdinc -DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   > assym.h.tmp &&  mv -f assym.h.tmp assym.h
> cc1: Invalid option `no-fpu'
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/sys/arch/sparc/compile/GENERIC
> kirk#
> 
> This is a SPARCstation 1.
> 
> 	rvdp
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-