Subject: Re: cross build netbsd kernel
To: Jens Gran <jensgran@gmail.com>
From: Chuck Swiger <cswiger@mac.com>
List: netbsd-help
Date: 07/09/2005 12:03:46
Jens Gran wrote:
> On 7/9/05, Stefan Schumacher <stefan@net-tex.de> wrote:
[ ... ]
> I mean only kernel's source and tools which need to build it on another OS.
> And of couse I already have pmake, gcc, sh and so on things.
>
> So
> gnusrc.tgz . . . . . . . . . . . Mar 30 17:03 76M
> sharesrc.tgz . . . . . . . . . . Mar 30 17:03 4783K
> src.tgz. . . . . . . . . . . . . Mar 30 17:03 36M
> syssrc.tgz . . . . . . . . . . . Mar 30 17:03 26M
> xsrc.tgz . . . . . . . . . . . . Mar 30 17:03 81M
>
> I need all this stuff to build kernel?
In theory, all you would need is syssrc, not the rest.
In practice, the kernel and libc need to agree on the system call interface, so
you either need to build the kernel against an existing NetBSD userland (or
"world"), or you need to build world to have that available to build a usable
kernel.
Be warned: trying to cross-compile a kernel on some other platform is a
wizard-level operation involving serious black magic.
--
-Chuck