summaryrefslogtreecommitdiff
path: root/classes/toradex-kernel-localversion.bbclass
AgeCommit message (Collapse)Author
2023-08-22toradex-kernel-localversion: follow oe changesMax Krummenacher
The setting of localversion has been changed in openembedded-core to accomodate changes in the kernel sources around v6.3. This changed that the kernel and external kernel modules with our way of setting localversion didn't use the same module magic. One used what we want for LOCALVERSION twice while the other uses it only once. Compare with OE-Commits: commit b378eec156 ("kernel: make LOCALVERSION consistent between recipes") commit 765b13b730 ("kernel: fix localversion in v6.3+") Related-to: ELB-5330 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-08-14layer: convert to new override syntaxMax Krummenacher
This is the result of automated script (0.9.3) conversion: +# meta-toradex-distro +vars = vars + ["preempt-rt","tdx","upstream"] +# meta-toradex-* machines +vars = vars + ["apalis-","colibri-","verdin-","tegra124"] +# meta-freescale +vars = vars + ["imx","mx6","mx7","mx8","use-mainline-bsp","use-nxp-bsp"] ../openembedded-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-04-01toradex-kernel/u-boot-localversion: use fixed length git hashStefan Agner
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>
2020-03-13toradex-kernel-config: add bbclassMing Liu
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>
2020-03-06toradex-kernel-localversion.bbclass: fix set scmversion with autorevMax Krummenacher
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>
2020-03-05toradex-kernel-localversion.bbclass: fix set scmversion with autorevMax Krummenacher
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>
2020-03-04toradex-kernel-localversion.bbclass: use SRCREV to set scmversionMing Liu
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>
2020-02-13toradex-kernel-localversion.bbclass: use origin branch set scmversionMing Liu
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>
2020-01-09toradex-kernel-localversion: disable automatic localversionStefan Agner
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>
2019-12-19toradex-kernel-localversion: disable automatic localversionStefan Agner
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>
2019-12-18toradex-kernel/u-boot-localversion: make sure version is definedStefan Agner
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>
2019-12-11toradex-kernel-localversion: fix compilation with mainline recipeStefan Agner
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>
2019-12-03toradex-kernel-localversion: add Toradex specific local versionStefan Agner
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>