diff options
Diffstat (limited to 'meta/classes/kernel.bbclass')
| -rw-r--r-- | meta/classes/kernel.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 940f1a3cf4..96e41b5192 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
| @@ -541,6 +541,7 @@ do_shared_workdir () { | |||
| 541 | # | 541 | # |
| 542 | 542 | ||
| 543 | echo "${KERNEL_VERSION}" > $kerneldir/${KERNEL_PACKAGE_NAME}-abiversion | 543 | echo "${KERNEL_VERSION}" > $kerneldir/${KERNEL_PACKAGE_NAME}-abiversion |
| 544 | echo "${KERNEL_LOCALVERSION}" > $kerneldir/${KERNEL_PACKAGE_NAME}-localversion | ||
| 544 | 545 | ||
| 545 | # Copy files required for module builds | 546 | # Copy files required for module builds |
| 546 | cp System.map $kerneldir/System.map-${KERNEL_VERSION} | 547 | cp System.map $kerneldir/System.map-${KERNEL_VERSION} |
| @@ -630,6 +631,19 @@ python check_oldest_kernel() { | |||
| 630 | check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION" | 631 | check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION" |
| 631 | do_configure[prefuncs] += "check_oldest_kernel" | 632 | do_configure[prefuncs] += "check_oldest_kernel" |
| 632 | 633 | ||
| 634 | KERNEL_LOCALVERSION ??= "" | ||
| 635 | |||
| 636 | # 6.3+ requires the variable LOCALVERSION to be set to not get a "+" in | ||
| 637 | # the local version. Having it empty means nothing will be added, and any | ||
| 638 | # value will be appended to the local kernel version. This replaces the | ||
| 639 | # use of .scmversion file for setting a localversion without using | ||
| 640 | # the CONFIG_LOCALVERSION option. | ||
| 641 | # | ||
| 642 | # Note: This class saves the value of localversion to a file | ||
| 643 | # so other recipes like make-mod-scripts can restore it via the | ||
| 644 | # helper function get_kernellocalversion_file | ||
| 645 | export LOCALVERSION="${KERNEL_LOCALVERSION}" | ||
| 646 | |||
| 633 | kernel_do_configure() { | 647 | kernel_do_configure() { |
| 634 | # fixes extra + in /lib/modules/2.6.37+ | 648 | # fixes extra + in /lib/modules/2.6.37+ |
| 635 | # $ scripts/setlocalversion . => + | 649 | # $ scripts/setlocalversion . => + |
