Skip to contentSkip to conversation

one more point about PACKAGE_DEBUG_SPLIT_STYLE

DISCUSSION Robert P. J. Day 1 participant 1 message Sep 17, 2021

lore
Share & tools
lore
#0 lore raw

http://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGE_DEBUG_SPLIT_STYLE

that section claims:

“debug-with-srcpkg”: The same behavior as “.debug” previously described with the exception that all source files are placed in a separate *-src pkg. This is the default behavior.

well, it's sort of the default behaviour. the code in
package.bbclass states:

# We default to '.debug' style
if d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-file-directory':
# Single debug-file-directory style debug info debugappend = ".debug"
...
else:
# Original OE-core, a.k.a. ".debug", style debug info debugappend = ""
debugstaticappend = ""

so, according to the if construct in package.bbclass, unless you
explicitly set that variable, the default is ".debug." HOWEVER, not once you notice what is happening in bitbake.conf:

PACKAGE_DEBUG_SPLIT_STYLE ?= "debug-with-srcpkg"

it just seems like those two explanations are fighting with each other.

rday