From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Sun, 08 Feb 2015 11:03:49 +0100 Subject: [U-Boot] recent tools on FreeBSD In-Reply-To: References: <54D27501.7040304@myspectrum.nl> <54D3C9D1.6030905@myspectrum.nl> <54D51C5F.7090500@myspectrum.nl> <54D526DB.6080303@googlemail.com> <54D5E332.50401@myspectrum.nl> <54D672E1.30700@myspectrum.nl> Message-ID: <54D73485.90101@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, On 07-02-15 22:02, Simon Glass wrote: >> If this still fails, you can always build it from source, but needs a bit of >> patience. >> Somthing like this should always work: >> >> portsnap fetch >> portsnap extract >> >> cd /usr/ports/devel/git >> make config-recursive >> make >> make install >> >> Let me know if you still have issues. >> >> Regards, >> Jeroen >> >> >> [1] (as root) >> >> pkg install nano git >> git clone git://git.denx.de/u-boot.git >> git checkout v2015.01 -b b2015.01 >> cd u-boot >> pkg install arm-gnueabi-binutils gmake >> >> gmake CC="clang -target arm-freebsd-eabi -no-integrated-as -mllvm >> -arm-use-movt=0" rpi_defconfig >> gmake CROSS_COMPILE=arm-gnueabi-freebsd- CC="clang -target arm-freebsd-eabi >> -no-integrated-as -mllvm -arm-use-movt=0 >> -B/usr/local/bin/arm-gnueabi-freebsd-" CONFIG_USE_PRIVATE_LIBGCC=y >> > Is this for using an ARM cross-compiler? What should I do for building > the tools? I keep seeing 'gcc not found'. Yes it is for cross building. So the host clang / host ld do the native build, the host clang with some help from arm-gnueabi-freebsd-as and arm-gnueabi-freebsd-ld do the cross build. If you only want to build tools for the host you need something like: gmake CC=cc sandbox_config tools Since CC is defined to $(CROSS_COMPILE)gcc it ends up being gcc when CROSS_COMPILE is not set, hence you get the 'gcc not found' errors. Regards, Jeroen