From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 26 18:07:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C072B1065676 for ; Fri, 26 Feb 2010 18:07:49 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 32B908FC15 for ; Fri, 26 Feb 2010 18:07:48 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id DD5F8EB48CF; Fri, 26 Feb 2010 20:07:47 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id B9970160CE4; Fri, 26 Feb 2010 20:07:47 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TADJuhRCWyQt; Fri, 26 Feb 2010 20:07:47 +0200 (EET) Received: from kobe.laptop (ppp-94-64-198-255.home.otenet.gr [94.64.198.255]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 7168E160CE8; Fri, 26 Feb 2010 20:07:47 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o1QI7kpP003167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2010 20:07:46 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o1QI7iMg003146; Fri, 26 Feb 2010 20:07:44 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Patrick Mahan 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 +0100") Date: Fri, 26 Feb 2010 17:15:53 +0200 Message-ID: <873a0oqb86.fsf@kobe.laptop> References: <4B800F60.60700@mahan.org> <20100220210314.GB22800@kiwi.sharlinx.com> <20100221202250.GF57731@acme.spoerlein.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: freebsd-hackers@freebsd.org Subject: Re: Building FreeBSD on a linux FC11 box. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 18:07:49 -0000 --=-=-= 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 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----- --=-=-=--