Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 11:03:25 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Stanislav Sedov <stas@FreeBSD.org>
Cc:        "arm@freebsd.org" <arm@FreeBSD.org>
Subject:   Re: ports cross-compilers vs. native toolchain
Message-ID:  <A68B207A-2754-4222-A30B-FDBD143A03D5@kientzle.com>
In-Reply-To: <890D6B89-8031-496C-A5A2-A2836369F765@FreeBSD.org>
References:  <23CB6C35-9450-40BA-9FA3-37C44B328CA8@freebsd.org> <CABt%2Bj0mB4w==h_SQ4YyDM24_wGOjcdZDK9T1N3DqjSkap0VkQw@mail.gmail.com> <E8A24EBE-967D-44F8-A884-3207B3C6F0FE@bsdimp.com> <8042D895-3B3D-431E-ADCC-A150BDC838ED@kientzle.com> <890D6B89-8031-496C-A5A2-A2836369F765@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 3, 2012, at 12:17 AM, Stanislav Sedov wrote:

> On Jan 18, 2012, at 9:49 PM, Tim Kientzle <tim@kientzle.com> wrote:
>=20
>> 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)).=20
>=20
> You can use arm-rtems-gcc or build one with arm/eabi settings to build
> uboot.  Personally, I've been using the rtems gcc port.  The uboot is
> a freestanding application, so it does not need FreeBSD libs tool =
chain to
> build and work.

Actually, I've since managed to build u-boot with the xdev
toolchain.  There were two issues:

1) "gcc --print-file-name=3Dinclude"=20

About a week ago, I committed a fix to FreeBSD-CURRENT
so it now supports this.

2) Missing div/mod functions in ARM libgcc.

You can work around this by adding -lc to a couple
of places in the u-boot makefiles.  I'm also looking into
a fix for FreeBSD libgcc.  (Looks like these functions
were disabled deliberately?  I'm still digging.)

Tim




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A68B207A-2754-4222-A30B-FDBD143A03D5>