From owner-freebsd-arm@FreeBSD.ORG Thu Jan 19 06:24:56 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D74106564A for ; Thu, 19 Jan 2012 06:24:56 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id E059D8FC18 for ; Thu, 19 Jan 2012 06:24:55 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q0J5n1jG075558; Thu, 19 Jan 2012 05:49:01 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id qhmwgsyu9p6avagjvb8atank9i; Thu, 19 Jan 2012 05:49:01 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=utf-8 From: Tim Kientzle In-Reply-To: Date: Wed, 18 Jan 2012 21:49:00 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> References: <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> To: Warner Losh X-Mailer: Apple Mail (2.1251.1) Cc: arm@freebsd.org Subject: Re: ports cross-compilers vs. native toolchain X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2012 06:24:56 -0000 I'm trying to build a customized u-boot (so that I can add the bootelf command, which is needed to chain Rafa=C5=82's ubldr version of loader(8)). Of course, I'm trying to build this from TI's sources customized for this board, which means I'm not using the FreeBSD-customized sources from denx.de. Since ubldr is built with the native cross-tools, I've been trying to build u-boot the same way, but I've run into a few problems that make me wonder if it would make more sense to build u-boot with the cross-* ports instead, hence my question. (If I understand correctly, ubldr calls into u-boot, so the two need to be built compatibly, hence the question.) Sounds like I should keep poking at u-boot with the native cross tools=E2=80=A6. Unfortunately, the native cross-version of ld is crashing, and I have not yet been able to successfully build a debug version of the native cross tools so I can figure out why. I'll no doubt have more questions very soon. ;-) Tim On Jan 18, 2012, at 12:37 PM, Warner Losh wrote: > The cross-* ports are more for rtems, and not for FreeBSD also... >=20 > See 'make xdev' if you want to build native compilers in a = cross-building environment. >=20 > Warner >=20 > On Jan 18, 2012, at 1:23 PM, Alex T. wrote: >=20 >> If I'm not mistaken, this port is not supposed to be built directly. = Well, >> you may, but >> from what I see is that there one is supposed to build = devel/arm-rtems-gcc, >> which in >> its turn defines mentioned variables and builds cross-gcc port. >> And it looks like the only pair of values is supported is arm/rtems. >>=20 >> On 18 January 2012 07:30, Tim Kientzle wrote: >>=20 >>> What TGTARCH/TGTABI settings for cross-gcc >>> and cross-binutils match the native arm.arm cross >>> toolchain? >>>=20 >>> Tim