Commit Graph

7 Commits

Author SHA1 Message Date
Piotr Wojtaszczyk
358dfab86c fsl-u-boot-localversion.bbclass: Add back UBOOT_LOCALVERSION to .scmversion
This fixes regression done in the mentioned commit.

Fixes: d7e13f19fb ("fsl-u-boot-localversion.bbclass: fix SRCREV_machine and AUTOREV use cases")
Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
(cherry picked from commit 3a26a0b27f)
2024-08-01 14:34:47 +00:00
Piotr Wojtaszczyk
78048cd289 fsl-u-boot-localversion.bbclass: Unify indentations
Fixes: d7e13f19fb ("fsl-u-boot-localversion.bbclass: fix SRCREV_machine and AUTOREV use cases")
Signed-off-by: Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
(cherry picked from commit 8c5fbbce4d)
2024-08-01 14:34:47 +00:00
Jun Zhu
d7e13f19fb fsl-u-boot-localversion.bbclass: fix SRCREV_machine and AUTOREV use cases
Use the same logic as fsl-kernel-localversion.bbclass:
    commit 16a356ef0d

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2023-12-05 18:47:35 +08:00
Daniel Wagenknecht
415373942a classes: make localversion classes deterministic
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 <dwagenknecht@emlix.com>
2023-11-28 12:05:41 +01:00
Khem Raj
59d36c9832 layer: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 10:08:24 -07:00
Otavio Salvador
b212a04143 fsl-u-boot-localversion.bbclass: Ensure git is run inside ${S}
The tasks does not run inside ${S} by default anymore so we must
ensure to run Git inside it.

Change-Id: I9bba889ed13cc386d23fa4efdac2af5b46e2d65b
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-08-23 23:26:55 -03:00
Otavio Salvador
f8517afc7a Move meta-fsl-arm content to layer root
The meta-fsl-arm is going to be used as the base for this layer. It
contains a clean history and allowing a more granullar set of changes.

This commit is just a rename of all contents of meta-fsl-arm
subdirectory to this layer's root, subsequent changes are based on top
of that.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-16 15:01:29 -03:00