<div dir="ltr">I see no need for this patch:<div><br></div><div><div>TOPDIR := &#39;${@os.path.dirname(os.path.dirname(FILE))}&#39;</div><div>BBPATH = &#39;${TOPDIR}&#39;</div><div>BBFILES = &#39;&#39;</div><div>BBLAYERS = &#39;\</div><div>    ${TOPDIR}/poky/meta-yocto-bsp \<br></div><div>    ${TOPDIR}/poky/meta-yocto \</div><div>    ${TOPDIR}/poky/meta \</div><div>    ${TOPDIR}/meta-oe/meta-oe \</div><div>&#39;</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 2:47 PM, Jeremy Puhlman <span dir="ltr">&lt;<a href="mailto:jpuhlman@mvista.com" target="_blank">jpuhlman@mvista.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">From: &quot;Jeremy A. Puhlman&quot; &lt;<a href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>&gt;<br>
<br>
Use case:<br>
Some users place their projects and their layers under source control.<br>
If absolute paths are used for the layers, the bblayers file is invalid<br>
when checked out on another system. If the layers are checked in<br>
relative to the project, then the project can be used anywhere.<br>
<br>
If LAYERS_RELATIVE is set in the bblayers.conf file, each layer is added<br>
relative to TOPDIR.<br>
<br>
Signed-off-by: Jeremy Puhlman &lt;<a href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>&gt;<br>
---<br>
 lib/bblayers/action.py | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/lib/bblayers/action.py b/lib/bblayers/action.py<br>
index b1326e5..4dc6622 100644<br>
--- a/lib/bblayers/action.py<br>
+++ b/lib/bblayers/action.py<br>
@@ -38,7 +38,9 @@ class ActionPlugin(LayerPlugin):<br>
         tempdir = tempfile.mkdtemp()<br>
         backup = tempdir + &quot;/bblayers.conf.bak&quot;<br>
         shutil.copy2(bblayers_conf, backup)<br>
-<br>
+        if self.tinfoil.config_data.<wbr>getVar(&#39;LAYERS_RELATIVE&#39;):<br>
+            topdir = self.tinfoil.config_data.<wbr>getVar(&#39;TOPDIR&#39;)<br>
+            layerdir = os.path.join(&quot;${TOPDIR}&quot;, os.path.relpath(layerdir,<wbr>topdir))<br>
         try:<br>
             notadded, _ = bb.utils.edit_bblayers_conf(<wbr>bblayers_conf, layerdir, None)<br>
             if not (args.force or notadded):<br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
2.6.2<br>
<br>
--<br>
______________________________<wbr>_________________<br>
bitbake-devel mailing list<br>
<a href="mailto:bitbake-devel@lists.openembedded.org">bitbake-devel@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/bitbake-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Senior Software Engineer, Mentor Graphics</div></div></div></div>
</div></div></div>