diff options
| author | Steve Sakoman <steve@sakoman.com> | 2024-02-15 15:45:23 -1000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-02-15 15:49:52 -1000 |
| commit | 0b39955d14600257a6eafc211fd68a933c69a0e9 (patch) | |
| tree | a263861fd5e2c0ae5270f3421c603473ee53e188 | |
| parent | 355838a15ecce17798f7290032df271b3d50b40b (diff) | |
| download | poky-0b39955d14600257a6eafc211fd68a933c69a0e9.tar.gz | |
Revert "kernel: fix localversion in v6.3+"
This reverts commit d9273edae80978c34f8426f34f991b9598828aa9.
This commit is causing breakage for some vendor kernel builds.
(From OE-Core rev: 59cc2e75c15f8c6371a4c4a3b7bd2e6c3f145fbc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/classes/kernel-arch.bbclass | 7 | ||||
| -rw-r--r-- | meta/classes/kernel.bbclass | 10 |
2 files changed, 2 insertions, 15 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index 0a79dea0af..4cd08b96fb 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
| @@ -66,10 +66,3 @@ 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 | 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}" | ||
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 940f1a3cf4..5951347361 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
| @@ -418,7 +418,7 @@ do_compile_kernelmodules() { | |||
| 418 | if (grep -q -i -e '^CONFIG_MODULES=y$' ${B}/.config); then | 418 | if (grep -q -i -e '^CONFIG_MODULES=y$' ${B}/.config); then |
| 419 | oe_runmake -C ${B} ${PARALLEL_MAKE} modules ${KERNEL_EXTRA_ARGS} | 419 | oe_runmake -C ${B} ${PARALLEL_MAKE} modules ${KERNEL_EXTRA_ARGS} |
| 420 | 420 | ||
| 421 | # Module.symvers gets updated during the | 421 | # Module.symvers gets updated during the |
| 422 | # building of the kernel modules. We need to | 422 | # building of the kernel modules. We need to |
| 423 | # update this in the shared workdir since some | 423 | # update this in the shared workdir since some |
| 424 | # external kernel modules has a dependency on | 424 | # external kernel modules has a dependency on |
| @@ -635,13 +635,7 @@ kernel_do_configure() { | |||
| 635 | # $ scripts/setlocalversion . => + | 635 | # $ scripts/setlocalversion . => + |
| 636 | # $ make kernelversion => 2.6.37 | 636 | # $ make kernelversion => 2.6.37 |
| 637 | # $ make kernelrelease => 2.6.37+ | 637 | # $ make kernelrelease => 2.6.37+ |
| 638 | # See kernel-arch.bbclass for post v6.3 removal of the extra | 638 | touch ${B}/.scmversion ${S}/.scmversion |
| 639 | # + in localversion. .scmversion is no longer used, and the | ||
| 640 | # variable LOCALVERSION must be used | ||
| 641 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]; then | ||
| 642 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | ||
| 643 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | ||
| 644 | fi | ||
| 645 | 639 | ||
| 646 | if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ ! -f "${B}/.config" ]; then | 640 | if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ ! -f "${B}/.config" ]; then |
| 647 | mv "${S}/.config" "${B}/.config" | 641 | mv "${S}/.config" "${B}/.config" |
