what is the 'd' variable in bitbake recipes?

2,608 views
Skip to first unread message

Neabex

unread,
Nov 11, 2013, 12:05:56 AM11/11/13
to beagl...@googlegroups.com
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?

Don deJuan

unread,
Nov 11, 2013, 12:10:33 AM11/11/13
to beagl...@googlegroups.com
On 11/10/2013 09:05 PM, Neabex 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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Do you mean
-D
or
-d
D – Tells BitBake where to install the completed application and its files in preparation for packaging.

-d, --disable-psyco
disable using the psyco just-in-time compiler (not recommended)

All this is in
man bitbake


sanchayan maity

unread,
Nov 11, 2013, 12:10:20 AM11/11/13
to beagl...@googlegroups.com
The above documentation should clear your query


On Mon, Nov 11, 2013 at 10:35 AM, Neabex <nick...@gmail.com> 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?

--

Neabex

unread,
Nov 11, 2013, 12:18:54 AM11/11/13
to beagl...@googlegroups.com
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)

Don deJuan

unread,
Nov 11, 2013, 12:22:21 AM11/11/13
to beagl...@googlegroups.com
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

Jack Mitchell

unread,
Nov 12, 2013, 5:13:53 AM11/12/13
to beagl...@googlegroups.com
I would ask on the OpenEmbedded mailing list for the correct answer, the
other answers currently given are wrong. The bitbake manual will be the
best place to find the answer on your own, however it is significantly
dated at the moment.

====+GUESS+====
I imagine d is an object which represents a recipe. As it is a variable
though, it could really be anything and possibly different depending on
the context.
====+GUESS+====

Cheers,
Jack.
> it, send an email to beagleboard...@googlegroups.com <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 beagleboard...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


--
Jack Mitchell (ja...@embed.me.uk)
Embedded Systems Engineer
Cambridgeshire, UK
http://www.embed.me.uk
--

Jack Mitchell

unread,
Nov 12, 2013, 5:16:06 AM11/12/13
to beagl...@googlegroups.com
Please do not give this link out, it refers to OpenEmbedded Classic and
as such is depreciated.

On 11/11/13 05:10, sanchayan maity wrote:
> http://docs.openembedded.org/usermanual/usermanual.html
>
> The above documentation should clear your query
>
>
> On Mon, Nov 11, 2013 at 10:35 AM, Neabex <nick...@gmail.com
> <mailto:nick...@gmail.com>> 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 beagleboard...@googlegroups.com
> <mailto:beagleboard%2Bunsu...@googlegroups.com>.
> 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 beagleboard...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


Robert P. J. Day

unread,
Nov 12, 2013, 5:46:18 AM11/12/13
to beagl...@googlegroups.com
On Tue, 12 Nov 2013, Jack Mitchell wrote:

> I would ask on the OpenEmbedded mailing list for the correct answer, the
> other answers currently given are wrong. The bitbake manual will be the
> best place to find the answer on your own, however it is significantly
> dated at the moment.

i'm pretty sure it's simply the global "data dictionary", which
keeps track of all of the relevant variables and their values.

rday

--

========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
Reply all
Reply to author
Forward
0 new messages