Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2012 21:49:00 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        arm@freebsd.org
Subject:   Re: ports cross-compilers vs. native toolchain
Message-ID:  <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com>
In-Reply-To: <E8A24EBE-967D-44F8-A884-3207B3C6F0FE@bsdimp.com>
References:  <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <CABt%2Bj0mB4w==h_SQ4YyDM24_wGOjcdZDK9T1N3DqjSkap0VkQw@mail.gmail.com> <E8A24EBE-967D-44F8-A884-3207B3C6F0FE@bsdimp.com>

index | next in thread | previous in thread | raw e-mail

I'm trying to build a customized u-boot (so that I can
add the bootelf command, which is needed to chain
Rafał'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….

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...
> 
> See 'make xdev' if you want to build native compilers in a cross-building environment.
> 
> Warner
> 
> On Jan 18, 2012, at 1:23 PM, Alex T. wrote:
> 
>> 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.
>> 
>> On 18 January 2012 07:30, Tim Kientzle <kientzle@freebsd.org> wrote:
>> 
>>> What TGTARCH/TGTABI settings for cross-gcc
>>> and cross-binutils match the native arm.arm cross
>>> toolchain?
>>> 
>>> Tim



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8042D895-3B3D-431E-ADCC-A150BDC838ED>