Age | Commit message (Collapse) | Author |
|
Make sure the git hash is always 12 characters long. This avoids issues
where we can get different length git hashes between to independent
builds. This can be problematic when sstate is shared.
Related-to: TOR-810
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
It contains a helper function kernel_configure_variable that could be
called in do_configure_append task to assign a value to a config
variable in ${B}/.config.
Change toradex-kernel-localversion.bbclass to use this function.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit aaf2b59a0bd69c1cfea6d2fc0df30ab49e16e031)
|
|
Handle the case where SRCREV_machine is set to AUTOREV.
As SRCREV_machine isn't set to INVALID as its default drop checking for INVALID.
fixes: f22318f toradex-kernel-localversion.bbclass: use SRCREV to set scmversion
Related-to: TOR-694
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 319f84b395d5b129c7dca90554746589d2bb9f52)
|
|
Handle the case where SRCREV is set to AUTOREV.
fixes: f22318f toradex-kernel-localversion.bbclass: use SRCREV to set scmversion
Related-to: TOR-694
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 3e645e66daea9951a02b9de0f52864a79389e23a)
|
|
In commit 32df2d41:
[ toradex-kernel-localversion.bbclass: use origin branch set scmversion ]
we changed to use origin branch to set scmversion, but that's not good
enough, we should stick to SRCREV which is the latest original commit
in the source.
Related-to: TOR-694
Signed-off-by: Ming Liu <ming.liu@toradex.com>
(cherry picked from commit a49daf2f134e019d528566cf1903d4a3ce211297)
|
|
For kernel-yocto, the commit hash of HEAD is different for every run of
do_patch if there is any patch in SRC_URI, this is breaking the recipes
that relying on KERNEL_VERSION which contains scmversion, so we should
let scmversion stick to the original head instead of the HEAD after
do_patch, this will make scmversion stable and hence will make
KERNEL_VERSION stable for the recipes that relying on it.
Signed-off-by: Ming Liu <ming.liu@toradex.com>
|
|
Actually, LOCALVERSION_AUTO needs to be enabled to make the kernel
build system picking up .scmversion. So make sure LOCALVERSION_AUTO
is enabled when we generate a .scmversion file and disabled otherwise.
Fixes: 1bb212d9311a ("toradex-kernel-localversion: disable automatic localversion")
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit e730835d6230f83d86d03daa38ceaf381d1d15fd)
|
|
Make sure LOCALVERSION_AUTO is disabled to avoid interference with
our LOCALVERSION. This fixes building of the i.MX 8 kernel recipe.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Make sure TDX_VERSION is defined in case Toradex distro is not used.
This avoids confusing localverisons with just a dash.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
The mainline recipe has the .config file ready later then our kernel
recipes. Use kernel_do_configure_append() which seems to work for both
cases.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|
|
Add Toradex specific local version implementation for the Linux
kernel. This implementation is a simplified version from what is in
meta-freescale. It can be used with linux-yocto based Linux recipes
as well as regular OE kernel recipes and linux-fslc based recipes.
This allows us to reuse the class in all Linux recipes used by Toradex.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
|