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

Denys Dmytriyenko denis at denix.org
Tue Sep 21 19:22:19 UTC 2010


On Tue, Sep 21, 2010 at 03:04:00PM -0400, George C. Huntington, III wrote:
> If I just have the TARGET_VENDOR = "-none", but not the TARGET_SYS =
> "arm-none-linux-gnueabi",
> then I get an error from external-toolchain-csl.bb telling me it couldn't
> stat /opt/arm/arm-2009q3/arm-angstrom-linux-gnueabi/libc/lib/*

Ah, I see. Angstrom assigns TARGET_VENDOR in conf/distro/include/angstrom.inc 
and I had to change it to a weak assignment in Arago, because distro 
configuration overwrites local.conf configuration. You can try poking the 
correct value either in angstrom.inc or glibc-external.inc for now - need to 
figure out the proper place for it later.

> does that mean that the (external-toolchain-csl.bb) recipe should change to
> use ${TOOLCHAIN_SYSPATH} instead of ${TOOLCHAIN_PATH}/${TARGET_SYS}

I don't think it matters on that level...

-- 
Denys


> On Tue, Sep 21, 2010 at 2:48 PM, Denys Dmytriyenko <denis at denix.org> wrote:
> 
> > 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
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> _______________________________________________
> 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