Skip to contentSkip to conversation

more musings about bitbake user manual

DISCUSSION Robert P. J. Day 1 participant 1 message Mar 8, 2021

lore
Share & tools
lore
#0 lore raw

curious about others' thoughts on the following. in BB user manual,
there is an example of overrides (which, ironically, i'm pretty sure i added once upon a time) that presents a real-life example of overrides:

"The following lines from the recipe file first set the kernel branch variable KBRANCH to a default value, then conditionally override that value based on the architecture of the build:

KBRANCH = "standard/base"
KBRANCH_qemuarm = "standard/arm-versatile-926ejs"
KBRANCH_qemumips = "standard/mti-malta32"
... snip ...

it occurs that the wording above might mislead readers to believe
that the default value of KBRANCH must be set first, and conditional overrides are required to *follow* that, when i'm pretty sure that's not the case. so assuming i'm right (seems that way from simple testing), is it worth adding a note to emphasize that ordering in the above is not relevant?

also, just below that, more annoying pedantry ... an example i think
i might have added as well way back when:

KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc"

i recall using this very example in a course, and a student immediately noticed that the last two lines were override-style assignments with exactly the same value, and was there a way to combine them in a single override-style assignment? i said no, it doesn't work that way, i just want to make sure there wasn't some clever new feature for that. and as long as my understanding is correct, perhaps that's also worth another note in case a reader is wondering the same thing.

thoughts?

rday