]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel: make LOCALVERSION consistent between recipes
authorBruce Ashfield <bruce.ashfield@gmail.com>
Sat, 22 Jul 2023 02:31:09 +0000 (22:31 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jul 2023 14:27:30 +0000 (15:27 +0100)
commitb378eec156998eea55ba61e59103cb34fab0d07c
tree738daa9294eb1a76efacbdb8f215b06c65772c20
parenta15cd04f528d137d428a572f15d1ec5ebbbd81f0
kernel: make LOCALVERSION consistent between recipes

The initial fix for localversion setting in 6.3+ broke older
recipes and also broke recipes setting localversion in a kernel
recipe, as make-mod-scripts (and other locations) can trigger
a regeneration of files and don't have access to the variable.

Moving the setting of this variable to the global namespace
doesn't make sense, so we follow the example of the kernel-abiversion
and save a kernel-localversion to the build artifacts.

Recipes that may regenerate scripts/dynamic files, must
depend on the do_shared_workedir of the kernel and use the helper
function to read the file storing the localversion.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/kernel-arch.bbclass
meta/classes-recipe/kernel.bbclass
meta/classes-recipe/kernelsrc.bbclass
meta/classes-recipe/linux-kernel-base.bbclass
meta/classes-recipe/module-base.bbclass
meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb