Building Cross Compiler and u-boot
Stanislav Sedov
stas at freebsd.org
Sun Mar 15 08:23:22 UTC 2015
> On Mar 14, 2015, at 9:14 PM, Russell Haley <russ.haley at 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-RIPE
More information about the freebsd-arm
mailing list