Date: Sun, 4 Mar 2012 12:55:09 -0700 From: Warner Losh <imp@bsdimp.com> To: Tim Kientzle <tim@kientzle.com> Cc: "arm@freebsd.org" <arm@freebsd.org> Subject: Re: ports cross-compilers vs. native toolchain Message-ID: <166D2EAF-BC10-4064-A020-71DE3CB641AE@bsdimp.com> In-Reply-To: <A68B207A-2754-4222-A30B-FDBD143A03D5@kientzle.com> 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> <A68B207A-2754-4222-A30B-FDBD143A03D5@kientzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 3, 2012, at 12:03 PM, Tim Kientzle wrote: > On Mar 3, 2012, at 12:17 AM, Stanislav Sedov wrote: >=20 >> 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. >=20 > Actually, I've since managed to build u-boot with the xdev > toolchain. There were two issues: >=20 > 1) "gcc --print-file-name=3Dinclude"=20 >=20 > About a week ago, I committed a fix to FreeBSD-CURRENT > so it now supports this. >=20 > 2) Missing div/mod functions in ARM libgcc. >=20 > 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.) Perhaps. The arm stuff has been fairly minimal for a number of reasons = that likely no longer make sense... Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?166D2EAF-BC10-4064-A020-71DE3CB641AE>