<div dir="ltr">Confirmed.<div><br></div><div>I was seeing the same today when testing my rebased changes for kernel*bbclasses.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jul 4, 2018 at 6:09 PM Khem Raj &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 7/2/18 8:03 AM, Paulo Neves wrote:<br>
&gt; The normalize_dtb function was buggy because<br>
&gt; it only converted from .dts suffix to .dtb<br>
&gt; suffix if the user passed a full source path to<br>
&gt; KERNEL_DEVICETREE containing the /dts/ path.<br>
&gt; The problem is that if the user did that there<br>
&gt; would be a warning.<br>
&gt; <br>
&gt; On the othet hand if user just set the variable<br>
&gt; KERNEL_DEVICETREE=&quot;file.dts&quot; the bbclass translation<br>
&gt; to the respective .dtb target did not occur and<br>
&gt; make would fail saying it has no rule to make target<br>
&gt; file.dts<br>
&gt; <br>
&gt; This patch decouples the logic of having /dts/ in the<br>
&gt; path from the target translation.<br>
&gt; <br>
<br>
This breaks a case where relative paths are used e.g. for rpi<br>
kernel we use DTB=overlay/xxx.dtbo and DTB=xxx.dtb and so on<br>
with this change its going to strip leading directory name and<br>
break that assumption.<br>
<br>
See<br>
<a href="http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/conf/machine/include/rpi-base.inc#n17" rel="noreferrer" target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/conf/machine/include/rpi-base.inc#n17</a><br>
<br>
&gt; Signed-off-by: Paulo Neves &lt;<a href="mailto:ptsneves@gmail.com" target="_blank">ptsneves@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;   meta/classes/kernel-devicetree.bbclass | 2 +-<br>
&gt;   1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt; <br>
&gt; diff --git a/meta/classes/kernel-devicetree.bbclass b/meta/classes/kernel-devicetree.bbclass<br>
&gt; index 4f80cc62eb..9866d844ab 100644<br>
&gt; --- a/meta/classes/kernel-devicetree.bbclass<br>
&gt; +++ b/meta/classes/kernel-devicetree.bbclass<br>
&gt; @@ -13,8 +13,8 @@ normalize_dtb () {<br>
&gt;       DTB=&quot;$1&quot;<br>
&gt;       if echo ${DTB} | grep -q &#39;/dts/&#39;; then<br>
&gt;               bbwarn &quot;${DTB} contains the full path to the the dts file, but only the dtb name should be used.&quot;<br>
&gt; -             DTB=`basename ${DTB} | sed &#39;s,\.dts$,.dtb,g&#39;`<br>
&gt;       fi<br>
&gt; +     DTB=`basename ${DTB} | sed &#39;s,\.dts$,.dtb,g&#39;`<br>
&gt;       echo &quot;${DTB}&quot;<br>
&gt;   }<br>
&gt;   <br>
&gt; <br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>