ports cross-compilers vs. native toolchain
Warner Losh
imp at bsdimp.com
Sun Mar 4 19:56:05 UTC 2012
On Mar 3, 2012, at 12:03 PM, Tim Kientzle wrote:
> On Mar 3, 2012, at 12:17 AM, Stanislav Sedov wrote:
>
>> On Jan 18, 2012, at 9:49 PM, Tim Kientzle <tim at kientzle.com> wrote:
>>
>>> 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)).
>>
>> 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=include"
>
> 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.)
Perhaps. The arm stuff has been fairly minimal for a number of reasons that likely no longer make sense...
Warner
More information about the freebsd-arm
mailing list