diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-02-22 11:35:45 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-03-01 05:19:54 -1000 |
| commit | 26f23535eef1f3314c42cd00cda0c6da7cdaf9af (patch) | |
| tree | 23dbb577e2732eafb663b553fd95484b09386e62 /meta/classes/kernel-arch.bbclass | |
| parent | 2b7c113459a602c91badaa7543d02811feac0151 (diff) | |
| download | poky-26f23535eef1f3314c42cd00cda0c6da7cdaf9af.tar.gz | |
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.
(From OE-Core rev: cca0971a7d92d823cc0c2b16cf14a7b2ed8ecb61)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
cherry-picked from master b378eec156998eea55ba61e59103cb34fab0d07c
Signed-off-by: Andreas Helbech Kleist <andreaskleist@gmail.com>
Acked-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
| -rw-r--r-- | meta/classes/kernel-arch.bbclass | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index 0a79dea0af..62c8211621 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
| @@ -65,11 +65,3 @@ KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH} -fuse-ld=bfd ${DE | |||
| 65 | KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}" | 65 | KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}" |
| 66 | KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}" | 66 | KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}" |
| 67 | TOOLCHAIN ?= "gcc" | 67 | TOOLCHAIN ?= "gcc" |
| 68 | |||
| 69 | # 6.3+ requires the variable LOCALVERSION to be set to not get a "+" in | ||
| 70 | # the local version. Having it empty means nothing will be added, and any | ||
| 71 | # value will be appended to the local kernel version. This replaces the | ||
| 72 | # use of .scmversion file for setting a localversion without using | ||
| 73 | # the CONFIG_LOCALVERSION option. | ||
| 74 | KERNEL_LOCALVERSION ??= "" | ||
| 75 | export LOCALVERSION ?= "${KERNEL_LOCALVERSION}" | ||
