From owner-freebsd-arm@FreeBSD.ORG Fri Aug 2 06:19:15 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 02ACB83A for ; Fri, 2 Aug 2013 06:19:15 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AD3962643 for ; Fri, 2 Aug 2013 06:19:14 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r726J4bg030019; Fri, 2 Aug 2013 06:19:04 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id kpmzexjvy42qvkqfzjj8uvi2u2; Fri, 02 Aug 2013 06:19:04 +0000 (UTC) (envelope-from kientzle@freebsd.org) Subject: Re: RFC: sysutils/u-boot-beaglebone-eabi Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/signed; boundary="Apple-Mail=_5222E83A-AA62-44D2-A20A-92F681234C86"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Tim Kientzle In-Reply-To: <1D89CA5C-4C52-4669-8239-935CE3904469@grondar.org> Date: Thu, 1 Aug 2013 23:19:03 -0700 Message-Id: References: <1D89CA5C-4C52-4669-8239-935CE3904469@grondar.org> To: Mark R V Murray X-Mailer: Apple Mail (2.1283) Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2013 06:19:15 -0000 --Apple-Mail=_5222E83A-AA62-44D2-A20A-92F681234C86 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Aug 1, 2013, at 12:14 AM, Mark R V Murray wrote: > > On 1 Aug 2013, at 04:45, Tim Kientzle 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 --Apple-Mail=_5222E83A-AA62-44D2-A20A-92F681234C86 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJR+09YAAoJEGMNyGo0rfFBAgMH/3ZiRepufzuhtDMOrfSbQoDn ZsNzl8tIaMfKX/nhc5ExGDXP5jLR3rxgc/4styJgVQF5PSEzIErlyGAQG6uqWrhv twGYP52OIFfKLVWunounTbX81wny3OPpGJpbTfEih9tyGg6lgcTvzDOpVPRpVuDy iz1VvTzxMD7dluFszBN9XMl4fjo3XBxNOi0wQPxl7P85IQV+3Gf6ru2oQJ6jGGdQ aTcXtAqmyuE2mnaAiutpH+HEUjnlSJ9jzwBBTfP4iva1zVij8flgSmVFXQM4ZusR Q3v6nTVraFY51cw9OzuvsvvZgYlKfyTlbuNP6ivVa0SPI/e/ZBUVIhNoCywyUL4= =at/I -----END PGP SIGNATURE----- --Apple-Mail=_5222E83A-AA62-44D2-A20A-92F681234C86--