Date: Sun, 15 Mar 2015 01:23:05 -0700 From: Stanislav Sedov <stas@freebsd.org> To: Russell Haley <russ.haley@gmail.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Building Cross Compiler and u-boot Message-ID: <A3F0F190-D423-42B8-8DB1-07DEF9ED6763@freebsd.org> In-Reply-To: <CABx9NuQXb_FJMw%2BqwbaGuFX94LkEMRf_9kAuowk6ctYBEDQn=A@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
> On Mar 14, 2015, at 9:14 PM, Russell Haley <russ.haley@gmail.com> wrote: > > Hello I am trying to build the cross compile tools and make u-boot. > > Tim Kientzle spoke about two ways of getting cross compilers for > outside of building FreeBDS: > > 1) make TARGET=arm TARGET_ARCH=armv6 buildenv > > after a successful buildworld > > 2)make xdev XDEV=arm XDEV_ARCH=armv6 > FWIW, you don’t need FreeBSD toolchain to build uboot — it’s a freestanding application and does not depend on FreeBSD ABI. Using a compiler from the cross-gcc port will suffice. You will need to provide TGTARCH=arm and TGTABI=eabi when building the toolchain. There used to be a arm-rtems-gcc port available which provided packages, but it was sadly removed along with other useful ports. But if you’re using one of the older FreeBSD version with full package collection you can install one by running `pkg_add -r arm-rtems-gcc`. Then build uboot with CROSS_COMPILE=arm-rtems- variable set. -- ST4096-RIPEhelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3F0F190-D423-42B8-8DB1-07DEF9ED6763>
