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

Jerry Jacobs xor.gate.engineering at gmail.com
Fri Apr 30 13:34:47 UTC 2010


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.

This is how my tree looks like:

/opt/arm-2010q1/bin  ==> codesourcery toolchain

/opt/mini2440/oe/
   |----- bitbake              ==> bitbake
   |----- openembedded ==> openembedded overlay
   |----- tunebox             ==> my distro buildir
           | ------ conf        ==> configuration dir for local.conf
           | ------ setenv    ==> script to set the environment

setenv:
export OEBASE=/opt/mini2440/oe/openembedded
export PATH=/opt/mini2440/oe/bitbake/bin:/opt/arm-2010q1/bin:$PATH
export BBPATH=/opt/mini2440/oe/tunebox:$OEBASE
export BB_ENV_EXTRAWHITE="OEBASE"

local.conf:
BBFILES = "/opt/mini2440/oe/openembedded/recipes/*/*.bb"
DISTRO = "micro"
MACHINE = "mini2440"

I found also the arago distro which has a toolchain-csl.conf and includes it
in local.conf, but they do black magic to set the variables:
TOOLCHAIN_SYSPATH
TOOLCHAIN_PATH
SDK_PATH

which can be found in the git repository.

I hope somebody can clear some things up, because its very obsecure if you
start from scratch.

Kind regards,
Jerry Jacobs



More information about the Openembedded-devel mailing list