Skip to contentSkip to conversation

what happens if i set up a class function for exporting, but don't export?

DISCUSSION Robert P. J. Day 2 participants 2 messages Mar 11, 2015 – Mar 20, 2015

lore
Share & tools
lore
#0 lore raw

reading bitbake user manual, section 3.4.5, "Flexible Inheritance
for Class Functions", and i know how it works, but what happens if you're writing a .bbclass file, define a function with the format such that it's ready for exporting:

<classname>_<functionmame>

but subsequently don't export it with EXPORT_FUNCTIONS? by what name will it still be available to inheriting files?

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 9 lines · On Wednesday 11 March 2015 04:50:14 Robert P. J. Day wrote:

reading bitbake user manual, section 3.4.5, "Flexible Inheritance
for Class Functions", and i know how it works, but what happens if you're writing a .bbclass file, define a function with the format such that it's ready for exporting:

<classname>_<functionmame>

but subsequently don't export it with EXPORT_FUNCTIONS? by what name will it still be available to inheriting files?

Whether EXPORT_FUNCTIONS is used or not, the function will always be callable as <classname>_<functionname> (since that's how you have defined it).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre