[oe] how to add file to SRC_URI for target only

Esben Haabendal esbenhaabendal at gmail.com
Mon Aug 30 16:52:07 UTC 2010


On Thu, Aug 26, 2010 at 4:27 PM, Chris Larson <clarson at kergoth.com> wrote:

> Okay, how about..
>
> OVERRIDES =. "${@['', 'target:']['${BPN}' == '${PN}']}"

I can also think of at least one way to do this without using anonymous code.

In base.bbclass:
RECIPE_TYPE = "target"
OVERRIDES =. "${RECIPE_TYPE}"

In native.bbclass:
RECIPE_TYPE = "native"

In cross.bbclass:
RECIPE_TYPE = "cross"

and so on...

/Esben
-- 
Esben Haabendal, Senior Software Consultant
DoréDevelopment ApS, Ved Stranden 1, 9560 Hadsund, DK-Denmark
Phone: +45 51 92 53 93, E-mail: eha at doredevelopment.dk
WWW: http://www.doredevelopment.dk




More information about the Openembedded-devel mailing list