<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-freescale.git/classes/fsl-kernel-localversion.bbclass, branch master</title>
<subtitle>Mirror of github.com/Freescale/meta-freescale</subtitle>
<id>https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=master</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-freescale.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/'/>
<updated>2026-07-17T12:18:19+00:00</updated>
<entry>
<title>fsl-kernel-localversion: Add task docstring per oelint</title>
<updated>2026-07-17T12:18:19+00:00</updated>
<author>
<name>Luciano Dittgen</name>
<email>luciano.dittgen@ossystems.com.br</email>
</author>
<published>2026-07-15T13:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=c895f2166c81cfb0ebf32bb2a1513387f29e82b8'/>
<id>urn:sha1:c895f2166c81cfb0ebf32bb2a1513387f29e82b8</id>
<content type='text'>
Set a task[doc] docstring on do_kernel_localversion so the custom task is
documented (task.docstrings). bbclass.underscores on the class filename
is handled by the layer-wide suppression.

No functional change.

Signed-off-by: Luciano Dittgen &lt;luciano.dittgen@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>global: Replace tabs with spaces in task bodies</title>
<updated>2026-07-12T08:06:36+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2026-07-12T08:06:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=97b58d1c9e0f850441ac1f0df8c517729721e8c8'/>
<id>urn:sha1:97b58d1c9e0f850441ac1f0df8c517729721e8c8</id>
<content type='text'>
Convert leading-tab indentation to spaces in shell task bodies across
the layer. Generated mechanically by oelint-adv's auto-fix for a single
rule (oelint.tabs.notabs), isolated to one commit.

Verified safe: every change is leading indentation of shell/BitBake code
(no mid-line tabs, and none of the affected files contain heredocs where
a tab would be significant), so there is no functional change.

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>global: Clean up BitBake list spacing</title>
<updated>2026-07-07T17:40:00+00:00</updated>
<author>
<name>Luciano Dittgen</name>
<email>luciano.dittgen@ossystems.com.br</email>
</author>
<published>2026-07-07T17:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=717410a38d033a3c18a617145a69f5b50b88f824'/>
<id>urn:sha1:717410a38d033a3c18a617145a69f5b50b88f824</id>
<content type='text'>
Normalize list continuations, append spacing, quote style, and simple
flag values so the metadata follows oelint BitBake syntax expectations.

Tested with: git diff --check.

Signed-off-by: Luciano Dittgen &lt;luciano.dittgen@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>fsl-kernel-localversion: Fix duplicate LOCALVERSION</title>
<updated>2025-12-15T18:38:03+00:00</updated>
<author>
<name>Tom Hochstein</name>
<email>tom.hochstein@nxp.com</email>
</author>
<published>2025-12-15T18:17:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=e6a138da453e94b9042003b5959c6ac2d2ea7221'/>
<id>urn:sha1:e6a138da453e94b9042003b5959c6ac2d2ea7221</id>
<content type='text'>
The kernel version contains LOCALVERSION twice. For example, for
LOCALVERSION=nxp-next:
```
$ cat tmp/work/imx95evk-poky-linux/linux-imx/6.18.y+git/build/include/generated/utsrelease.h
#define UTS_RELEASE "6.18.0-nxp-next-nxp-next-06195-gb61baedaf5d5"
```

The problem is kernel-yocto.bbclass adds LOCALVERSION via .config if
LINUX_VERSION_EXTENSION is not empty, and the build itself adds it
because fsl-kernel-localversion.bbclass sets CONFIG_LOCALVERSION_AUTO=y
whenever SCMVERSION is enabled.

Fix by clearing LINUX_VERSION_EXTENSION if SCMVERSION is enabled.

Signed-off-by: Tom Hochstein &lt;tom.hochstein@nxp.com&gt;
</content>
</entry>
<entry>
<title>fsl-kernel-localversion: fix SRCREV_machine and AUTOREV use cases</title>
<updated>2023-12-04T14:16:51+00:00</updated>
<author>
<name>Max Krummenacher</name>
<email>max.krummenacher@toradex.com</email>
</author>
<published>2023-12-03T11:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=16a356ef0d5d62090e84530e125ea6952994aaeb'/>
<id>urn:sha1:16a356ef0d5d62090e84530e125ea6952994aaeb</id>
<content type='text'>
Depending on how one uses the Yocto kernel classes the kernels hash
is defined in either "SRCREV_machine" or "SRCREV". If "SRCREV_machine"
is in use, "SRCREV" stays at its bitbake default "INVALID".

If the "SRCREV_machine" or "SRCREV" is set to "AUTOREV" that value is
replaced by "AUTOINC".

If using "SRCREV_machine" and/or "AUTOREV" do_kernel_localversion fails

| run.do_kernel_localversion:158 exit 128 from 'head=`git --git-dir=.../.git rev-parse --verify --short INVALID 2&gt; /dev/null`'

Cope with both use cases.

Fixes: 41537394 ("classes: make localversion classes deterministic")
Signed-off-by: Max Krummenacher &lt;max.krummenacher@toradex.com&gt;
</content>
</entry>
<entry>
<title>classes: make localversion classes deterministic</title>
<updated>2023-11-28T11:05:41+00:00</updated>
<author>
<name>Daniel Wagenknecht</name>
<email>dwagenknecht@emlix.com</email>
</author>
<published>2023-11-28T10:47:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=415373942a8f3ca4c6f04dff35823c065f43d696'/>
<id>urn:sha1:415373942a8f3ca4c6f04dff35823c065f43d696</id>
<content type='text'>
The localversion string built into the kernel and u-boot should be
deterministic. With OpenEmbedded it is common practice to apply patches
to the sources. The commit id of HEAD will differ each time the patching
step is rerun. With the previous implementation of the fsl-{kernel,u-
boot}-localversion classes this produced non-deterministic commit ids to
be used. This is undesireable, because the commit-id read from the
version string during runtime is not present in the sources. It also
caused problems when building out-of-tree kernel-modules if the kernel
itself was taken from sstate cache but the kernel-module needed to be
rebuild and retriggered the kernels do_patch task (see #961).

Rework to produce a deterministic string that will use the commit id
given as SRCREV and count the number of patches applied on top.

With e.g. commit id 11aabbcc and 5 patches this will result in a version
string
  +g11aabbcc+p5

Fixes: https://github.com/Freescale/meta-freescale/issues/961

Signed-off-by: Daniel Wagenknecht &lt;dwagenknecht@emlix.com&gt;
</content>
</entry>
<entry>
<title>fsl-kernel-localversion: fix regression setting LOCALVERSION</title>
<updated>2023-06-19T12:06:24+00:00</updated>
<author>
<name>Javier Viguera</name>
<email>javier.viguera@digi.com</email>
</author>
<published>2023-06-19T09:56:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=e5401e6aebbc15617b4397db6cb5fa103db144bc'/>
<id>urn:sha1:e5401e6aebbc15617b4397db6cb5fa103db144bc</id>
<content type='text'>
CONFIG_LOCALVERSION is a string setting. It needs to go between quotes in
the .config file.

$ grep CONFIG_LOCALVERSION= .config
CONFIG_LOCALVERSION="-dey"

Signed-off-by: Javier Viguera &lt;javier.viguera@digi.com&gt;
Signed-off-by: Oleksandr Suvorov &lt;oleksandr.suvorov@foundries.io&gt;
</content>
</entry>
<entry>
<title>classes: fsl-kernel-localversion: fix usage with devtool</title>
<updated>2022-07-31T14:48:22+00:00</updated>
<author>
<name>Francesco Valla</name>
<email>valla.francesco@gmail.com</email>
</author>
<published>2022-07-31T13:51:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=5d96d634568636aa41faf72356c47f0d04532c87'/>
<id>urn:sha1:5d96d634568636aa41faf72356c47f0d04532c87</id>
<content type='text'>
Make fsl-kernel-localversion devtool-compatible, avoiding to depend on
${WORKDIR}/defconfig to be present. Two approaches are taken:

- for recipes inheriting kernel-yocto, LINUX_VERSION_EXTENSION is set to
  LOCALVERSION; in this way, the do_kernel_configme task will use it to
  set CONFIG_LOCALVERSION once the .config file is generated;

- for recipes not inheriting kernel-yocto, CONFIG_LOCALVERSION is simply
  appended to the .config file contained inside the build directory.

The do_kernel_localversion is being made executed after do_kernel_configme
rather than do_kernel_metadata; in this way, modifications are applied
after the config-by-fragments step has already been performed.

Signed-off-by: Francesco Valla &lt;valla.francesco@gmail.com&gt;
</content>
</entry>
<entry>
<title>classes: fsl-kernel-localversion: Fix config fragments apply</title>
<updated>2021-04-18T01:12:52+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2021-04-17T15:14:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=5943060c8ea892054f2d995d398e21bcb2237543'/>
<id>urn:sha1:5943060c8ea892054f2d995d398e21bcb2237543</id>
<content type='text'>
We have to ensure the task run do_kernel_metadata so the config
fragments can be applied properly.

Refs: #707.
Fixes: #733.
Fixes: 49299998 ("classes: fsl-kernel-localversion: Fix task dependency")
Fixes: c7e23876 ("linux-imx.inc: inherit kernel-yocto class")
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
</content>
</entry>
<entry>
<title>classes: fsl-kernel-localversion: Fix task dependency</title>
<updated>2021-04-10T13:07:02+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2021-04-10T13:07:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-freescale.git/commit/?id=492999986124b5e960d0e21fc81d341458d6c5ad'/>
<id>urn:sha1:492999986124b5e960d0e21fc81d341458d6c5ad</id>
<content type='text'>
We need to do any change to the generated `.config` file after it is
finished to be modified. In the case of `kernel-yocto` class being in use,
we need to do it after `kernel_configme` task.

Fixes: c7e23876 ("linux-imx.inc: inherit kernel-yocto class")
Fixes: #707.
Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
Change-Id: I7d32b47595dff269defdc5b3f98aa0b9d89b603a
</content>
</entry>
</feed>
