<?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 How remove the commit ID from kernel release version? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915552#M137839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good mornig,&lt;/P&gt;&lt;P&gt;Currently, I'm making a patch to the kernel but every time that create it the version is (for instance) 4.9.11-1.0.0&lt;STRONG&gt;+gc37aab8&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can remove &lt;STRONG&gt;the commit ID&amp;nbsp;&lt;/STRONG&gt;from the version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;i.MX Yocto Project Community BSP recipe layers&amp;nbsp;&lt;STRONG&gt;(imx-morty)&amp;nbsp;&lt;/STRONG&gt;plus my meta layer where I added a recipe&amp;nbsp;&lt;STRONG&gt;linux-imx_4.9.11.bbappend&amp;nbsp;&lt;/STRONG&gt;with SRC_URI that&amp;nbsp;links to a specific commit ID of kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for the help.&lt;/P&gt;&lt;P&gt;Riccardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2019 09:01:57 GMT</pubDate>
    <dc:creator>riccardo_cavedo</dc:creator>
    <dc:date>2019-05-28T09:01:57Z</dc:date>
    <item>
      <title>How remove the commit ID from kernel release version?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915552#M137839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good mornig,&lt;/P&gt;&lt;P&gt;Currently, I'm making a patch to the kernel but every time that create it the version is (for instance) 4.9.11-1.0.0&lt;STRONG&gt;+gc37aab8&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can remove &lt;STRONG&gt;the commit ID&amp;nbsp;&lt;/STRONG&gt;from the version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;i.MX Yocto Project Community BSP recipe layers&amp;nbsp;&lt;STRONG&gt;(imx-morty)&amp;nbsp;&lt;/STRONG&gt;plus my meta layer where I added a recipe&amp;nbsp;&lt;STRONG&gt;linux-imx_4.9.11.bbappend&amp;nbsp;&lt;/STRONG&gt;with SRC_URI that&amp;nbsp;links to a specific commit ID of kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in advance for the help.&lt;/P&gt;&lt;P&gt;Riccardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 09:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915552#M137839</guid>
      <dc:creator>riccardo_cavedo</dc:creator>
      <dc:date>2019-05-28T09:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: How remove the commit ID from kernel release version?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915553#M137840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Riccardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thee kernel version string is built after some variables that you should be able to edit. The top Makefile should have the version and other variables listed but I would recommend being careful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 20:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915553#M137840</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2019-05-30T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How remove the commit ID from kernel release version?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915554#M137841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the next 2 kernel variables:&lt;/P&gt;&lt;P&gt;CONFIG_LOCALVERSION=""&lt;BR /&gt;CONFIG_LOCALVERSION_AUTO=n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your kernel config somewhere, I used a config snippet (I called it version.cfg but it does not matter). In the LOCALVERSION string you can also put your own postfix string which will be appended to the version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 07:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915554#M137841</guid>
      <dc:creator>henrideveer</dc:creator>
      <dc:date>2019-05-31T07:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How remove the commit ID from kernel release version?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915555#M137842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Riccardo Cavedon&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Can you please share the steps that you have followed to create patch and which lines you have added to the .bbappend file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Create and add patch in yocto one can refer &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-95252"&gt;this&lt;/A&gt; link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 13:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915555#M137842</guid>
      <dc:creator>radhikasomaiya</dc:creator>
      <dc:date>2019-05-31T13:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How remove the commit ID from kernel release version?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915556#M137843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/gusarambula" rel="nofollow noopener noreferrer" target="_blank"&gt;gusarambula&lt;/A&gt;‌ and &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/henrideveer" rel="nofollow noopener noreferrer" target="_blank"&gt;henrideveer&lt;/A&gt;‌ thank you for the suggestions.&lt;/P&gt;&lt;P&gt;I've found the solution with the suggestion of &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/henrideveer" rel="nofollow noopener noreferrer" target="_blank"&gt;henrideveer&lt;/A&gt;‌ and an additional modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The include file:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;meta-freescale/recipes-kernel/linux/linux-imx.inc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;has the option:&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;SCMVERSION &lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"y"&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;changing "y" with "n" the string with commit ID is removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my append recipe has become:&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;EXTRAPATHS_prepend &lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"${THISDIR}/${PN}:"&lt;/SPAN&gt;

LIC_FILES_CHKSUM &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"&lt;/SPAN&gt;

SRC_URI &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"git://&amp;lt;my_kernel_repo"&lt;/SPAN&gt;
SRCREV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1111111111111111111111111"&lt;/SPAN&gt;
#SRCREV &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"${AUTOREV}"&lt;/SPAN&gt;

# Remove from the kernel version the additional string with commid ID of linux&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;imx repository
SCMVERSION &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"n"&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, the defconfig of kernel has to be:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CONFIG_LOCALVERSION=""&lt;BR /&gt;CONFIG_LOCALVERSION_AUTO=n&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 14:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-remove-the-commit-ID-from-kernel-release-version/m-p/915556#M137843</guid>
      <dc:creator>riccardo_cavedo</dc:creator>
      <dc:date>2019-05-31T14:07:45Z</dc:date>
    </item>
  </channel>
</rss>

