Skip to contentSkip to conversation

curious about setting of PROVIDES in bitbake.conf

DISCUSSION Robert P. J. Day 2 participants 3 messages Jun 18, 2014

lore
Share & tools
lore
#0 lore raw

from current bitbake.conf file:

PROVIDES = ""
PROVIDES_prepend = "${PN} "

is there a reason that PROVIDES is set to null, only to immediately set it based on the following line? is there some subtle issue this is meant to address?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 8 lines · On Wednesday 18 June 2014 09:10:00 Robert P. J. Day wrote:

from current bitbake.conf file:

PROVIDES = ""
PROVIDES_prepend = "${PN} "

is there a reason that PROVIDES is set to null, only to immediately set it based on the following line? is there some subtle issue this is meant to address?

I think the intention is to set the initial value to blank, and ensure that ${PN} is the first item in the list (since _prepend gets applied later). If you just simply had PROVIDES = "${PN}" then it could be overridden somewhere else such that ${PN} was not in PROVIDES at all, which would be counter-intuitive.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 10 lines · Paul Eggleton
Quoted 8 lines · On Wednesday 18 June 2014 09:10:00 Robert P. J. Day wrote:

from current bitbake.conf file:

PROVIDES = ""
PROVIDES_prepend = "${PN} "

is there a reason that PROVIDES is set to null, only to immediately set it based on the following line? is there some subtle issue this is meant to address?

Quoted 5 lines

I think the intention is to set the initial value to blank, and ensure that ${PN} is the first item in the list (since _prepend gets applied later). If you just simply had PROVIDES = "${PN}" then it could be overridden somewhere else such that ${PN} was not in PROVIDES at all, which would be counter-intuitive.

ah, of course, i should have thought of that. duh.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================