summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2024-02-15 15:45:23 -1000
committerSteve Sakoman <steve@sakoman.com>2024-02-15 15:49:52 -1000
commit0b39955d14600257a6eafc211fd68a933c69a0e9 (patch)
treea263861fd5e2c0ae5270f3421c603473ee53e188 /meta/classes/kernel.bbclass
parent355838a15ecce17798f7290032df271b3d50b40b (diff)
downloadpoky-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>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass10
1 files changed, 2 insertions, 8 deletions
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"