[oe] trying to use external-toolchain-csl with angstrom

Denys Dmytriyenko denis at denix.org
Tue Sep 21 18:48:41 UTC 2010


On Tue, Sep 21, 2010 at 02:27:23PM -0400, George C. Huntington, III wrote:
> I had to set TARGET_SYS = "arm-none-linux-gnueabi" in my local.conf to get
> the toolchain to be used, but now it appears that the gmp configure script
> doesn't like getting passed "--target=arm-none-linux-gnueabi"  am I just
> configuring things wrong?

Hi,

I see that you copied most of toolchain setup in your local.conf from arago. 
But, in reality, you don't need all that. I haven't tried external toolchain 
with Agstrom lately, but you should only need to setup these 4 variables:

TOOLCHAIN_PATH = "/opt/arm/arm-2009q3"
TARGET_VENDOR = "-none"
TOOLCHAIN_TYPE = "external"
TOOLCHAIN_BRAND = "csl"

You may also need PATH_prepend like in your example below, if you don't set 
your system PATH accordingly before using OE. Everything else should be taken 
care by the framework automatically.

-- 
Denys


> here is my local.conf:
> 
> DISTRO = "angstrom-2008.1"
> 
> DL_DIR = "${OEDIR}/downloads"
> 
> BBFILES := "${OEDIR}/openembedded/recipes/*/*.bb
> ${OEDIR}/openembedded.custom/recipes/*/*.bb"
> BBFILE_COLLECTIONS = "upstream custom"
> BBFILE_PATTERN_upstream = "^${OEDIR}/openembedded/recipes/"
> BBFILE_PATTERN_custom = "^${OEDIR}/openembedded.custom/recipes"
> BBFILE_PRIORITY_upstream = "5"
> BBFILE_PRIORITY_custom = "10"
> 
> IMAGE_FSTYPES = "jffs2 tar cpio.gz"
> 
> BBINCLUDELOGS = "yes"
> 
> CVS_TARBALL_STASH = ""
> ANGSTROM_FEED_CONFIGS = ""
> #DEBIAN_MIRROR = "ftp://ftp.us.debian.org/debian/pool"
> 
> #ENABLE_BINARY_LOCALE_GENERATION = "0"
> 
> PREFERRED_VERSION_mono = "2.4.2.3"
> PREFERRED_VERSION_mono-mcs-intermediate = "2.4.2.3"
> PREFERRED_VERSION_mono-native = "2.4.2.3"
> 
> #PREFERRED_VERSION_directfb = "1.4.1"
> 
> #PREFERRED_VERSION_mono = "svn"
> #PREFERRED_VERSION_mono-mcs-intermediate = "svn"
> #PREFERRED_VERSION_mono-native = "svn"
> 
> # Black magic to automatically set SDK_PATH out of PATH - don't touch this!
> # Works with pretty much any external toolchain, like CS Lite or MV Pro 5
> # Handles cross-toolchain vs. native toolchain
> # SDK_PATH can be overwritten externally by META_SDK_PATH, e.g. for SDK
> TOOLCHAIN_PATH = "/opt/arm/arm-2009q3"
> TOOLCHAIN_SYSPATH = "${TOOLCHAIN_PATH}/arm-none-linux-gnueabi"
> #~ PATH_prepend = "${TOOLCHAIN_PATH}/bin"
> SDK_PATH = "${@[bb.data.getVar('TOOLCHAIN_PATH', d, 1),
> bb.data.getVar('META_SDK_PATH', d, 1)][bool(bb.data.getVar('META_SDK_PATH',
> d, 1))]}"
> # Set the necessary variables to use binary CodeSourcery Lite
> TARGET_VENDOR = "-none"
> TARGET_SYS = "arm-none-linux-gnueabi"
> TARGET_CPPFLAGS_append = " -I${SDK_PATH}/${TARGET_SYS}/libc/usr/include "
> TARGET_LDFLAGS_prepend = " -L${SDK_PATH}/${TARGET_SYS}/libc/lib
> -Wl,-rpath-link,${SDK_PATH}/${TARGET_SYS}/libc/lib "
> TOOLCHAIN_TYPE = "external"
> TOOLCHAIN_BRAND = "csl"
> 
> 
> # add the following to site.conf if you want to go
> # faster, use less space, etc
> #PARALLEL_MAKE = "-j 5"
> #BB_NUMBER_THREADS = "4"
> #INHERIT += "rm_work"
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




More information about the Openembedded-devel mailing list