<div dir="ltr">Hi,<br>
Adding more information about this issue.<br>
For example, consider below recipes with respective Pattern Name and priority.<br>
<br>
Package Name Recipe file path BBFILE_PATTERN Priority<br>
<br>
alsa /Projects/abc/alsa /Projects/abc/alsa 160<br>
layer-man /Projects/abc/layer-man /Projects/abc/layer-man 150<br>
xyz /Projects/abc/xyz /Projects/abc/xyz 130<br>
gpu-viv /Projects/abc/xyz/gpu-viv /Projects/abc/xyz/gpu-viv 130<br>
update-1 /Projects/abc/xyz/update-1 /Projects/abc/xyz/update-1 130<br>
update-2 /Projects/abc/xyz/update-2 /Projects/abc/xyz/update-2 130<br>
<br>
<br>
If we consider the case of parsing alsa recipe, with its file name
parsing against all patterns, it would find matching
pattern("/Projects/abc/alsa ") and parse successfully.<br>
Similarly the case with layer-man recipes.<br>
When it comes to case of xyz, it does parses like other alsa recipe, as
it would find matching pattern("/Projects/abc/xyz") to its file name.<br>
When it picks up next gpu-viv recipe file("/Projects/abc/xyz/gpu-<wbr>viv/*/*.bb"), and starts parsing against all PATTERNs,<br>
on finding pattern "/Projects/abc/xyz", the condition :<br>
"if regex.match(filename):"<br>
<br>
will succeed, as partial file name "/Projects/abc/xyz/gpu-viv" matches to it.<br>
So, it is not matching against correct pattern ("Projects/abc/xyz/gpu-viv").<br>
This is causing remaining recipes of folder "xyz" are not being parsed against all patterns.<br>
By current change, it will force to parse all recipe files against all PATTERN's and store matching patterns.<br>
<br>
Regards,<br>
Mounesh</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 11:54 AM, Mounesh Sutar <span dir="ltr"><<a href="mailto:mounesh.sutar@gmail.com" target="_blank">mounesh.sutar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Mounesh Sutar <<a href="mailto:mounesh_sutar@mentor.com">mounesh_sutar@mentor.com</a>><br>
<br>
bitbake is parsing all recipe files, against layers BBFILE_PATTERN for warning message display.<br>
In case of sublayer with lower/equal priority, then all sublayer's patterns are not being<br>
considered for pattern match. While checking recipe file against matching pattern,<br>
the first matching pattern is accepted and added to matched list, while remaning PATTERNs are<br>
not being considered. With this, the recipes are being neglected from PATTERN match.<br>
This fix let's parser run through all the layers PATTERNs and on matching added to match list.<br>
<br>
Upstream-Status: Submitted [<a href="mailto:bitbake-devel@lists.openembedded.org">bitbake-devel@lists.<wbr>openembedded.org</a>]<br>
<br>
Signed-off-by: Mounesh Sutar <<a href="mailto:mounesh_sutar@mentor.com">mounesh_sutar@mentor.com</a>><br>
---<br>
bitbake/lib/bb/cooker.py | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py<br>
index 4df8881..5fde995 100644<br>
--- a/bitbake/lib/bb/cooker.py<br>
+++ b/bitbake/lib/bb/cooker.py<br>
@@ -1705,7 +1705,7 @@ class CookerCollectFiles(object):<br>
if matched != None:<br>
if not regex in matched:<br>
matched.add(regex)<br>
- return pri<br>
+ return pri<br>
return 0<br>
<br>
def get_bbfiles(self):<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.5<br>
<br>
</font></span></blockquote></div><br></div>