summaryrefslogtreecommitdiff
path: root/classes/toradex-kernel-localversion.bbclass
AgeCommit message (Collapse)Author
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>