Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2014 11:36:05 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        Russell Haley <russ.haley@gmail.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>, Rui Paulo <rpaulo@me.com>
Subject:   Re: Building U-Boot
Message-ID:  <BB9D032D-6C57-455C-9ACE-D4BB373ED6C0@kientzle.com>
In-Reply-To: <CABx9NuS%2BCZXSmVA8Ad_TNPyPLVb7bNCpzgCT-Bn1TgVAV4_2oA@mail.gmail.com>
References:  <CABx9NuS%2BCZXSmVA8Ad_TNPyPLVb7bNCpzgCT-Bn1TgVAV4_2oA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Oct 17, 2014, at 10:58 PM, Russell Haley <russ.haley@gmail.com> =
wrote:

> Hello, I'm trying to build u-boot from the instructions that Mr. Paulo
> left here:
>=20
> https://wiki.freebsd.org/Digi-CCWMX53
>=20
> This is the error I get:
>=20
> russell@FreeArm2:/usr/u-boot% gmake ccwmx53js_config
> arm-linux-gcc: not found
> arm-linux-gcc: not found

U-Boot's build system tries to run the cross-gcc as ${CROSS_COMPILE}gcc.

CROSS_COMPILE defaults to "arm-linux-" which is appropriate only if =
you're building on Linux.  The FreeBSD equivalent is armv6-freebsd-gcc =
(assuming you've installed xdev and xdev-links).

The full command I use to configure U-Boot:

gmake SED=3Dgsed HOSTCC=3Dcc CROSS_COMPILE=3Darmv6-freebsd-   =
ccwmx53js_config


SED=3Dgsed -- U-Boot build relies on some idiosyncrasies of GNU sed; you =
may need to install textproc/gsed first.

HOSTCC=3Dcc  -- U-Boot builds some tools that run on the build host; =
those tools can compile with clang or gcc equally well

CROSS_COMPILE=3D/usr/armv6-freebsd/usr/bin/   may work slightly better =
by not requiring xdev-links.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB9D032D-6C57-455C-9ACE-D4BB373ED6C0>