Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 17:15:53 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Patrick Mahan <mahan@mahan.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Building FreeBSD on a linux FC11 box.
Message-ID:  <873a0oqb86.fsf@kobe.laptop>
In-Reply-To: <20100221202250.GF57731@acme.spoerlein.net> ("Ulrich \=\?iso-8859-1\?Q\?Sp\=F6rlein\=22's\?\= message of "Sun, 21 Feb 2010 21:22:51 %2B0100")
References:  <4B800F60.60700@mahan.org> <20100220210314.GB22800@kiwi.sharlinx.com> <20100221202250.GF57731@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

On Sun, 21 Feb 2010 21:22:51 +0100, Ulrich Sp=F6rlein <uqs@FreeBSD.org> wro=
te:
> On Sat, 20.02.2010 at 13:03:14 -0800, R. Tyler Ballance wrote:
>> You might want to ask the Debian GNU/kFreeBSD guys:
>>     http://www.debian.org/ports/kfreebsd-gnu/
>>
>> I bet they've got a good idea :)
>
> They are using the kernel only, though.
>
> Before you reinvent the wheel, take a look at NetBSD, they are known for
> their cross-compilation work.

It's non-trivial to set up a NetBSD-like cross-compilation environment,
but the bits you have to use are well-documented in the support of the
NetBSD source tree for 'tools'.  I've experimented a bit with some of
the work that's needed and it includes at least the following:

  * mtree -- This is used by parts of the build glue to set up
    build-time directories.

  * make -- Targetting *all* possible platforms with BSD make is
    probably not worth the effort, but adding a minimal configure.in
    script that can produce an 'fbmake' binary suitable for cross
    building FreeBSD is doable and not very hard.

With these two in place and a bit of Makefile target hacking it might be
possible to cross-build FreeBSD on e.g. Linux.  I don't have a Linux
machine anymore, but if someone starts doing this I can probably set one
up and test any patches.


--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkuH5bAACgkQ1g+UGjGGA7aB/wCggV7frZPeALfAwquxvvEUWDzc
qrsAn0HtlnqZ/F6aztvmhPY/d0ClrB7G
=Jfu8
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?873a0oqb86.fsf>