<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Yocto: Passing in a git Tag to a Recipe in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723591#M112502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We did solve this problem at O.S. Systems making it easy to centralize all the revisions on a single file and control if the revisions are taken from this file or AUTOREV for development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is public at&amp;nbsp;&lt;A class="link-titled" href="https://code.ossystems.com.br/gitweb?p=meta-ossystems-base.git;a=blob;f=classes/ossystems-srcrev-handler.bbclass;h=5be22fa71120a3d8a4fd62a49ec767422a517717;hb=refs/heads/rocko" title="https://code.ossystems.com.br/gitweb?p=meta-ossystems-base.git;a=blob;f=classes/ossystems-srcrev-handler.bbclass;h=5be22fa71120a3d8a4fd62a49ec767422a517717;hb=refs/heads/rocko"&gt;code.ossystems Code Review - meta-ossystems-base.git/blob - classes/ossystems-srcrev-handler.bbclass&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2017 18:08:33 GMT</pubDate>
    <dc:creator>OtavioSalvador</dc:creator>
    <dc:date>2017-11-24T18:08:33Z</dc:date>
    <item>
      <title>Yocto: Passing in a git Tag to a Recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723589#M112500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a recipe that uses a git repo for source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically while developing, I simply set the SRCREV = "${AUTOREV}" so I retrieve the tip of the branch I am working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other times where I want to specify a tag in the repo to use instead of the tip. I would like to do this by specifying the tag in local.conf and then checking to see if the tag variable is set in the actual recipe.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Say I set the following in local.conf &lt;BR /&gt;BUILDTAG="V1.0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my recipe, I would like to set something like:&lt;/P&gt;&lt;P&gt;if len('BUILDTAG') &amp;gt; 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SRCREV=${BUILDTAG}&lt;BR /&gt;else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SRCREV=${AUTOREV}&lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do something like this? &lt;BR /&gt;Is there a better way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doug Bailey&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 21:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723589#M112500</guid>
      <dc:creator>dougbailey</dc:creator>
      <dc:date>2017-10-25T21:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto: Passing in a git Tag to a Recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723590#M112501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Doug Bailey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory, it should work. Have you tried it yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m not sure if there is a standard or recommended way to do it. &amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/OtavioSalvador"&gt;OtavioSalvador&lt;/A&gt;, would you know if there’s a convention on how to achieve this in Yocto?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 18:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723590#M112501</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2017-11-24T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto: Passing in a git Tag to a Recipe</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723591#M112502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We did solve this problem at O.S. Systems making it easy to centralize all the revisions on a single file and control if the revisions are taken from this file or AUTOREV for development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is public at&amp;nbsp;&lt;A class="link-titled" href="https://code.ossystems.com.br/gitweb?p=meta-ossystems-base.git;a=blob;f=classes/ossystems-srcrev-handler.bbclass;h=5be22fa71120a3d8a4fd62a49ec767422a517717;hb=refs/heads/rocko" title="https://code.ossystems.com.br/gitweb?p=meta-ossystems-base.git;a=blob;f=classes/ossystems-srcrev-handler.bbclass;h=5be22fa71120a3d8a4fd62a49ec767422a517717;hb=refs/heads/rocko"&gt;code.ossystems Code Review - meta-ossystems-base.git/blob - classes/ossystems-srcrev-handler.bbclass&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 18:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Passing-in-a-git-Tag-to-a-Recipe/m-p/723591#M112502</guid>
      <dc:creator>OtavioSalvador</dc:creator>
      <dc:date>2017-11-24T18:08:33Z</dc:date>
    </item>
  </channel>
</rss>

