[oe] Usage of meta recipe external-toolchain-csl

Tom Rini tom_rini at mentor.com
Fri Apr 30 16:53:06 UTC 2010


On Fri, 2010-04-30 at 15:34 +0200, Jerry Jacobs wrote:
> Dear all,
> 
> I'm very new to openembedded and already have a clear view how it is
> structured. My embedded board mini2440 is already in git and want to create
> my own distro.
> The problem where I bump against is how to use the Codesourcery external
> toolchain for my target. I know there is the file in recipes/meta/
> external-toolchain-csl.bb
> but it not clear how to use it.

There's 2 ways.  One way is, in local.conf:
### CSL public ARM does <arch>-none-<os>, so fill in the -none
TARGET_VENDOR = "-none"
### Bring in external-toolchain-csl.bb
TOOLCHAIN_BRAND = "csl"
### Where the CSL version is installed.
TOOLCHAIN_PATH = "/full/path/to/arm-2009q3"
### Where inside the CSL install the target libraries exist.
TOOLCHAIN_SYSPATH = "${TOOLCHAIN_PATH}/arm-none-linux-gnueabi"
### Add tools to the PATH automatically.
PATH_prepend = "${TOOLCHAIN_PATH}/bin:"
require conf/distro/include/toolchain-external.inc

The other way has a few less variables in local.conf but assumes PATH is
already updated.  Denys will reply shortly with that, I imagine.

-- 
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list