<div class="gmail_quote">On Wed, Jul 18, 2012 at 5:12 PM, Ross Burton <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Many people don&#39;t understand the nuances of PATH/BBPATH, so help them by clarifying<br>
the warning and displaying the parsed list element-by-element.<br>
<br>
Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
---<br>
 meta/classes/sanity.bbclass |    4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass<br>
index 765958e..52226f1 100644<br>
--- a/meta/classes/sanity.bbclass<br>
+++ b/meta/classes/sanity.bbclass<br>
@@ -390,7 +390,8 @@ def check_sanity(sanity_data):<br>
<br>
     paths = sanity_data.getVar(&#39;PATH&#39;, True).split(&quot;:&quot;)<br>
     if &quot;.&quot; in paths or &quot;&quot; in paths:<br>
-        messages = messages + &quot;PATH contains &#39;.&#39; or &#39;&#39;, which will break the build, please remove this.&quot;<br>
+        messages = messages + &quot;PATH contains &#39;.&#39; or &#39;&#39; (empty element), which will break the build, please remove this.\n&quot;<br>
+        messages = messages + &quot;Parsed PATH is &quot; + str(paths) + &quot;\n&quot;<br>
<br>
     bbpaths = sanity_data.getVar(&#39;BBPATH&#39;, True).split(&quot;:&quot;)<br>
     if &quot;.&quot; in bbpaths or &quot;&quot; in bbpaths:<br>
@@ -402,6 +403,7 @@ def check_sanity(sanity_data):<br>
                 &quot;Please check your layer.conf files and other BBPATH &quot;        \<br>
                 &quot;settings to remove the current working directory &quot;           \<br>
                 &quot;references.&quot;);<br>
+        bb.warn(&quot;Parsed BBPATH is&quot; + str(bbpaths));<br>
<br>
     if sanity_data.getVar(&#39;TARGET_ARCH&#39;, True) == &quot;arm&quot;:<br>
         # This path is no longer user-readable in modern (very recent) Linux<br></blockquote><div><br></div><div>Good change. </div><div><br></div><div>ag </div></div>