<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(&quot;/Projects/abc/alsa &quot;) 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(&quot;/Projects/abc/xyz&quot;) to its file name.<br>
When it picks up next gpu-viv recipe file(&quot;/Projects/abc/xyz/gpu-<wbr>viv/*/*.bb&quot;), and starts parsing against all PATTERNs,<br>
on finding pattern &quot;/Projects/abc/xyz&quot;, the condition :<br>
&quot;if regex.match(filename):&quot;<br>
<br>
will succeed, as partial file name &quot;/Projects/abc/xyz/gpu-viv&quot; matches to it.<br>
So, it is not matching against correct pattern (&quot;Projects/abc/xyz/gpu-viv&quot;).<br>
This is causing remaining recipes of folder &quot;xyz&quot; are not being parsed against all patterns.<br>
By current change, it will force to parse all recipe files against all PATTERN&#39;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">&lt;<a href="mailto:mounesh.sutar@gmail.com" target="_blank">mounesh.sutar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Mounesh Sutar &lt;<a href="mailto:mounesh_sutar@mentor.com">mounesh_sutar@mentor.com</a>&gt;<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&#39;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&#39;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 &lt;<a href="mailto:mounesh_sutar@mentor.com">mounesh_sutar@mentor.com</a>&gt;<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>