[OE-core] DEPENDS tranlation with BBCLASSEXTEND

Khem Raj raj.khem at gmail.com
Sun Mar 27 20:08:02 UTC 2011


Hi,

I observed that if I have 
DEPENDS = "a b" in recipe.bb which has BBCLASSEXTEND = "native"
then dependecies for recipe-native shows a-native b-native so far so
good

Now if I want to add a dependency which only is needed for native recipe
I do

DEPENDS_virtclass-native += "c-native"

what this does is it will ignore a-native and b-native dependencies and
only adds "c-native" to depends of native recipe

DEPENDS_virtclass-native_append = " c-native"

This does what I wanted i.e. have deps on a-native b-native c-native

I think behavior of += or _append should be similar. Is my understanding
correct ?


p.s. Another niggle I see is that suppose in above scenario I want
native recipe to not depend upon on b-native but other deps are good.

It would be good to have a directive to exclude deps that should not be
converted into dep-native 

Thx

-- 
-Khem




More information about the Openembedded-core mailing list