sort of a followup to something richard purdie wrote recently regarding BBFILE_PATTERN. these days, the standard for any layer is to define, in layer.conf, the following:
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" ... snip ... BBFILE_PATTERN_my-layer = "^${LAYERDIR}/" AIUI, the combination of those two settings means that this layer will add to the recipes mix all bb and bbappend files that match the wildcard pattern in BBFILES. so far, so good. recently, though, i ran across the following -- a (properly-structured) "main" layer, which contained three sub-layers, call them "sub1", sub2" and "sub3", very much like how the meta-cloud-services layer is in itself a valid layer, but also contains, as subdirectories, more focused, related layers. again, nothing wildly unusual here. https://git.yoctoproject.org/cgit/cgit.cgi/meta-cloud-services/tree/ what i ran across was a "main" layer with those three "sub" layers, wherein layer.conf contained that standard BBFILES setting, but then continued on to do this (all else was standard content)": BBFILE_PATTERN_main = "^${LAYERDIR}/(?!sub1|sub2|sub3) i assumed (based on no actual knowledge) that that represented some sort of legacy way to say, "all .bb and .bbappend files, *except* for any in those subdirectories" -- effectively a filtering mechanism, is that about right? i can see how that might be useful if those sub-layers contained recipe and append files that exactly matched the top-level BBFILES wildcard pattern but, as with meta-cloud-services, those sub-layers are valid layers in their own right, so that all of *their* .bb and .bbappend files would be one level further down and wouldn't be picked up by the "main" BBFILES wildcard pattern, anyway. does that look like what's happening here? just a legacy holdover from when that might have been a more common way to associate recipes with layers? rday
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#150209): https://lists.openembedded.org/g/openembedded-core/message/150209 Mute This Topic: https://lists.openembedded.org/mt/81861974/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-