<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/openbmc.git/meta-phosphor/classes/obmc-phosphor-kernel-version.bbclass, branch validation</title>
<subtitle>Intel-BMC/openbmc is a BMC implementation for servers (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/openbmc.git/atom?h=validation</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/openbmc.git/atom?h=validation'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/openbmc.git/'/>
<updated>2019-05-21T00:43:56+00:00</updated>
<entry>
<title>meta-phosphor: Improve kernel version string</title>
<updated>2019-05-21T00:43:56+00:00</updated>
<author>
<name>Lei YU</name>
<email>mine260309@gmail.com</email>
</author>
<published>2019-05-15T23:52:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/openbmc.git/commit/?id=b5a2c26b248ab6cfb47a346fcec542f2297d297b'/>
<id>urn:sha1:b5a2c26b248ab6cfb47a346fcec542f2297d297b</id>
<content type='text'>
The kernel version string by yocto by default is &lt;tag&gt;-&lt;revision&gt;, e.g.

    5.0.7-b1b37a25644213428f4bab4c427581dd923e35da

Where the revision is the version specified by SRCREV, no matter if
there are additional pathces applied or not.

This commit improves it by

* If there are no yocto patches, keep the current version but use a
  shorter revision, e.g. 5.0.7-b1b37a2
* If there are yocto patches, append -dirty-&lt;new-short-revision&gt; to the
  version string, e.g. 5.0.7-b1b37a2-dirty-84fa553

Resolves openbmc/openbmc#1289

Tested: Verify the kernel version string is changed as above depending
        on if there are yocto patches.

(From meta-phosphor rev: fcfd10d7380309bc274c4f5a8355ecaeb60ce439)

Change-Id: I4210227a981721a6b322d640984ea58c57802cb1
Signed-off-by: Lei YU &lt;mine260309@gmail.com&gt;
Signed-off-by: Brad Bishop &lt;bradleyb@fuzziesquirrel.com&gt;
</content>
</entry>
</feed>
