From owner-freebsd-ppc@FreeBSD.ORG Sat Feb 21 17:39:15 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B05A106564A for ; Sat, 21 Feb 2009 17:39:15 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from semihalf.com (semihalf.com [206.130.101.55]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8678FC15 for ; Sat, 21 Feb 2009 17:39:15 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by semihalf.com (8.13.1/8.13.1) with ESMTP id n1LHdCUe017496; Sat, 21 Feb 2009 10:39:12 -0700 Message-ID: <49A03C3E.6050901@semihalf.com> Date: Sat, 21 Feb 2009 18:39:10 +0100 From: Rafal Jaworowski Organization: Semihalf MIME-Version: 1.0 To: Bruce Cran References: <49A02FBA.2010103@semihalf.com> <20090221171752.5b6ae0d2@tau.draftnet> In-Reply-To: <20090221171752.5b6ae0d2@tau.draftnet> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: Crosscomliling world X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 17:39:15 -0000 Bruce Cran wrote: > On Sat, 21 Feb 2009 17:45:46 +0100 > Rafal Jaworowski wrote: > >> Aleksey V Fedorov wrote: >>> Hi! >>> >>> How to crosscomlile world for MPC8548 target on amd64 host? >>> I have powerpc-binutils and powerpc-gcc installed in >>> /usr/local/bin/powerpc-elf-eabi >>> Is there standard method to make crossbuild? > >> The regular way is the following: >> >> make buildworld TARGET_ARCH=powerpc TARGET_CPUTYPE=e500 >> >> (This creates cross toolchain at the beginning of the build process) > > You'll probably want to update to a newer version of gcc than > 4.2.1 because I believe the MPC8548 (e500v2) was only supported from > early 2008. I'm not following details of gcc development too closely, but e500 support has been around for a long time (we started the e500 port with FreeBSD 6.0 i.e. gcc 3.x). So far the in-tree toolchain was sufficient to produce machine code runnign on e500v1, v2 and v3 without immediate shortages (BTW there are problems of this nature with another Book-E implementation, PPC4xx: the current FreeBSD toolchain needs to be adjusted to produce certain instructions properly for it). Older gcc (3.4.x) bundled with FreeBSD is able to produce broken PowerPC code, but that's a different story affecting not only e500. > I've only found instructions on blogs etc. for crosscompiling FreeBSD > on embedded platforms - is this something that should go on the Wiki or > in the handbook? True, this should be improved; there are some examples on the wiki (ARM is a bit better than PowerPC on this). Rafal