All of lore.kernel.org
 help / color / mirror / Atom feed
* How to specify a default value for a variable in a recipe
@ 2014-06-13 13:08 Patrick Doyle
  2014-06-13 13:47 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Doyle @ 2014-06-13 13:08 UTC (permalink / raw)
  To: yocto@yoctoproject.org

OK, I've got to ask this, because it totally confuses me.  I wrote a
recipe to build a custom application (gstreamer plugin, actually) that
I wanted to fetch from our SCM.  Bitbake told me I needed to specify a
source revision and even gave me a clue of what to put in.  Looking at
the development manual, I decided I wanted to use the latest revision
from our repository by default, so I added the following line to my
recipe:

SRCREV_default_pn-gstxbac = "${AUTOREV}"

But now I'm curious.  Why couldn't I use (I haven't tried this yet)

SRCREV_pn-gstxbac ?= "${AUTOREV}"

and even more confusingly, why isn't the syntax something more like:

SRCREV_pn-gstxbac_default = "${AUTOREV}"

What's going on here?

Does one syntax (BLAH_default vs BLAH ?=) get evaluated early in the
bitbake process and the other get evaluated late?

Does the location of the letters "default" in a variable name matter?

At some point, I really need to wrap my head around Bitbake, it's
syntax, and how it operates and internalize all of that.

--wpd


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-13 14:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 13:08 How to specify a default value for a variable in a recipe Patrick Doyle
2014-06-13 13:47 ` Gary Thomas
2014-06-13 14:07   ` Patrick Doyle
2014-06-13 14:13     ` Gary Thomas
2014-06-13 14:33       ` Patrick Doyle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.