Subject: Re: Kernel cross-compiling howto
To: None <tech-kern@netbsd.org>
From: Klaus Heinz <k.heinz.dez.vier@onlinehome.de>
List: tech-kern
Date: 12/25/2004 17:02:09
Florian Stoehr wrote:

> I got many replies, so I learned that build.sh itself is capable of
> doing the kernel-only crosscompile, futhermore there are instructions
> under "crosscompiling NetBSD" -> but the toolchain moving seems not
> mentioned there.

I don't see why you would need to rename the directory:

  $ ls -1 bin
  i386--netbsdelf-addr2line
  i386--netbsdelf-ar
  ...
  powerpc--netbsd-addr2line
  powerpc--netbsd-ar
  ...

> Unfortunately, there is no link to the cross compiling howto in the
> kernel FAQ -> maybe it'd be good to put a link to the cross-compiling
> howto there?

This is indeed a good idea.

> Still I wonder why "nbmake" will not work - I saw this in another
> kernel-crosscompiling mail in the archive (although that was old and
> used build.sh -t to build the toolchain which seems depreacted).

You need nbmake-<yourarch>. This is a script containing the variables
resulting from your first invocation of build.sh.

ciao
     Klaus