RFC: sysutils/u-boot-beaglebone-eabi

Tim Kientzle kientzle at freebsd.org
Fri Aug 2 06:19:15 UTC 2013


On Aug 1, 2013, at 12:14 AM, Mark R V Murray wrote:
> 
> On 1 Aug 2013, at 04:45, Tim Kientzle <kientzle at freebsd.org> wrote:
> 
>> P.S.  By the way, to make this work, I had to add real ARM cross-compiler
>> ports.  We now have devel/arm-eabi-binutils and devel/arm-eabi-gcc
> 
> Hi Tim,
> 
> Does Clang/LLVM still not do this properly?

Nothing wrong.  Clang/LLVM compiles U-Boot just fine
as far as I can tell.  That's what I've been doing for months.

But I couldn't figure out how to make that work for the U-Boot port:

1) I need a cross-compiler the u-boot port can depend on.
    I don't know a particularly clean way to depend on
    the xdev tools that I was using before.  It seemed much
    easier to depend on another port.

2) Our port tree already had some basic framework for cross-GCC.
    (Remember this is typically being cross-compiled for ARM
    on i386 or amd64.)  I had to fix that support a little to make it
    work correctly, but the outline was already there.

3) I didn't see anything already in ports for cross-clang.

4) The base clang has some cross-build abilities, but
     it's not really useful without ARM libc or binutils.

Is there some other approach that I overlooked?

Tim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130801/6664ce38/attachment.sig>


More information about the freebsd-arm mailing list