Subject: Re: how to cross-compile kernel?
To: Martin Husemann <>
From: Ronald van der Pol <>
List: current-users
Date: 09/07/2002 21:16:01
On Sat, Sep 07, 2002 at 20:22:12 +0200, Martin Husemann wrote:

>   cd /usr/src && ./ -m sparc -T /usr/tools -t

Hmm, I did a " -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/  |  sh ../../../../kern/ 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

nbmake: stopped in /usr/src/sys/arch/sparc/compile/GENERIC

This is a SPARCstation 1.