Maybe this is what you mean. Found in the manual
NOTE:
This is only supported in .bb and .bbclass files.
def get_depends(bb, d):
if bb.data.getVar('SOMECONDITION', d, 1):
return "dependencywithcond"
else:
return "dependency"
SOMECONDITION
= "1"
DEPENDS
= "${@get_depends(bb, d)}"
This would result in
DEPENDS
containing
dependencywithcond


On 11/10/2013 09:18 PM, Neabex wrote:
> Don:
> I'm not talking about an argument to bitbake, but a variable that
> seems to exist in the context of all .bb files execution.
>
> Victor: 
> It's not documented in that manual either but I think it might be a
> shortcut to bb.data 
> I think it's some 'datasmart' variable that aggregates passed in
> arguments from various other bitbake recipes.
>
> example :
> d.getVar('PN', True)
>
>
>
> On Sunday, November 10, 2013 9:10:20 PM UTC-8, Victor wrote:
>
>     http://docs.openembedded.org/usermanual/usermanual.html
>     <http://docs.openembedded.org/usermanual/usermanual.html>
>
>     The above documentation should clear your query
>
>
>     On Mon, Nov 11, 2013 at 10:35 AM, Neabex <[email protected]
>     <javascript:>> wrote:
>
>         This is proving incredibly hard to google for since searching
>         for 'd' aliases to so many things. Do you guys know where I
>         can find documentation about this variable?
>         -- 
>         For more options, visit http://beagleboard.org/discuss
>         ---
>         You received this message because you are subscribed to the
>         Google Groups "BeagleBoard" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to [email protected]
>         <javascript:>.
>         For more options, visit
>         https://groups.google.com/groups/opt_out
>         <https://groups.google.com/groups/opt_out>.
>
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to