, Paul Becke <pbecke@javagear.com>
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
List: current-users
Date: 06/01/2000 16:14:49
On Mon, May 31, 2021 at 02:49:25PM -0400, Edwin Foo wrote:
> but for kernels, I'm noticing that i386 stuff still gets
> included for libs and includes. How do I get the toolchain to look in
> /usr/pkg/cross/arm-netbsd/include and lib by default?
On Wed, May 31, 2000 at 03:15:18PM -0500, Paul Becke wrote:
> I have been trying to do the same thing, with not much success.
I'm going to document this once I have a better understanding of it,
but I've cross compiled kernels for sparc and macppc by sourcing the
following script before building, so these are in your environment
for the build:
#!/bin/sh
export MACHINE=macppc
export MACHINE_ARCH=powerpc
export AR=/usr/pkg/cross/powerpc-netbsd/bin/ar
export AS=/usr/pkg/cross/powerpc-netbsd/bin/as
export CC=/usr/pkg/cross/powerpc-netbsd/bin/cc
export CPP="/usr/pkg/cross/powerpc-netbsd/bin/cc -E"
export LD=/usr/pkg/cross/powerpc-netbsd/bin/ld
export NM=/usr/pkg/cross/powerpc-netbsd/bin/nm
export RANLIB=/usr/pkg/cross/powerpc-netbsd/bin/ranlib
export SIZE=/usr/pkg/cross/powerpc-netbsd/bin/size
export STRIP=/usr/pkg/cross/powerpc-netbsd/bin/strip
You'll need to :%s/powerpc/whatever/ first.
--
Mason Loring Bliss mason@acheron.middleboro.ma.us E w i g e
awake ? sleep : dream; http://acheron.ne.mediaone.net B l u m e n k r a f t