<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/10/2017 6:57 PM, Christopher
      Larson wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABcZANkgVCzqE+me+R0TUp2G9fnR_ehCn0rM_XSCMQ2A0QNgWA@mail.gmail.com">
      <div dir="ltr">I see no need for this patch:
        <div><br>
        </div>
        <div>
          <div>TOPDIR := '${@os.path.dirname(os.path.dirname(FILE))}'</div>
          <div>BBPATH = '${TOPDIR}'</div>
          <div>BBFILES = ''</div>
          <div>BBLAYERS = '\</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>'</div>
        </div>
      </div>
    </blockquote>
    <br>
    Yes. You can manually modify the file. However if you use
    bitbake-layers layerindex-fetch or bitbake layer-add, it is always
    absolute. OTOH, you could make the same argument for not needing
    "bitbake-layers add-layers "since you can also manually modify the
    file.<br>
    <br>
    <blockquote type="cite"
cite="mid:CABcZANkgVCzqE+me+R0TUp2G9fnR_ehCn0rM_XSCMQ2A0QNgWA@mail.gmail.com">
      <div dir="ltr">
        <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"
                  moz-do-not-send="true">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:
                "Jeremy A. Puhlman" &lt;<a
                  href="mailto:jpuhlman@mvista.com"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">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 + "/bblayers.conf.bak"<br>
                         shutil.copy2(bblayers_conf, backup)<br>
                -<br>
                +        if self.tinfoil.config_data.<wbr>getVar('LAYERS_RELATIVE'):<br>
                +            topdir = self.tinfoil.config_data.<wbr>getVar('TOPDIR')<br>
                +            layerdir = os.path.join("${TOPDIR}",
                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"
                      moz-do-not-send="true">bitbake-devel@lists.<wbr>openembedded.org</a><br>
                    <a
                      href="http://lists.openembedded.org/mailman/listinfo/bitbake-devel"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">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>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jeremy A. Puhlman
<a class="moz-txt-link-abbreviated" href="mailto:jpuhlman@mvista.com">jpuhlman@mvista.com</a>
</pre>
  </body>
</html>