recommendation for ARM cross-compiler for building for beaglebone black?

Holger Schurig holgerschurig at gmail.com
Mon Jun 30 23:59:47 PDT 2014


I don't have a clue if that is the "best" toolchain, but I'm using this:

#############################################################################
##  Toolchain
#############################################################################
# http://www.linaro.org/downloads/#008

GCC_LINARO_FILE=gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz
GCC_LINARO_HTTP=http://releases.linaro.org/14.04/components/toolchain/binaries/
GCC_LINARO_DIR=gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux
CROSS_COMPILE=`pwd`/$(GCC_LINARO_DIR)/bin/arm-linux-gnueabihf-

.PHONY:: toolchain
toolchain all:: $(GCC_LINARO_DIR)/STAMP

downloads:: downloads/$(GCC_LINARO_FILE)
downloads/$(GCC_LINARO_FILE):
        @test `id -u` != 0 || { echo "\n---> Not as root, dude!
($@)\n"; exit 1; }
        mkdir -p downloads
        wget -q -c -P downloads $(GCC_LINARO_HTTP)/$(GCC_LINARO_FILE)

$(GCC_LINARO_DIR)/STAMP: downloads/$(GCC_LINARO_FILE)
        @test `id -u` != 0 || { echo "\n---> Not as root, dude!
($@)\n"; exit 1; }
        tar xaf $<
        touch $@

Works okay with barebox and Linux.



More information about the barebox mailing list