diff options
Diffstat (limited to 'meta/classes/kernel.bbclass')
| -rw-r--r-- | meta/classes/kernel.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5951347361..80fb1879b0 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
| @@ -614,6 +614,7 @@ do_shared_workdir () { | |||
| 614 | # We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware | 614 | # We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware |
| 615 | SYSROOT_DIRS = "" | 615 | SYSROOT_DIRS = "" |
| 616 | 616 | ||
| 617 | KERNEL_LOCALVERSION ??= "" | ||
| 617 | KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} olddefconfig || oe_runmake -C ${S} O=${B} oldnoconfig" | 618 | KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} olddefconfig || oe_runmake -C ${S} O=${B} oldnoconfig" |
| 618 | 619 | ||
| 619 | python check_oldest_kernel() { | 620 | python check_oldest_kernel() { |
| @@ -635,7 +636,10 @@ kernel_do_configure() { | |||
| 635 | # $ scripts/setlocalversion . => + | 636 | # $ scripts/setlocalversion . => + |
| 636 | # $ make kernelversion => 2.6.37 | 637 | # $ make kernelversion => 2.6.37 |
| 637 | # $ make kernelrelease => 2.6.37+ | 638 | # $ make kernelrelease => 2.6.37+ |
| 638 | touch ${B}/.scmversion ${S}/.scmversion | 639 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]; then |
| 640 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | ||
| 641 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | ||
| 642 | fi | ||
| 639 | 643 | ||
| 640 | if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ ! -f "${B}/.config" ]; then | 644 | if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ ! -f "${B}/.config" ]; then |
| 641 | mv "${S}/.config" "${B}/.config" | 645 | mv "${S}/.config" "${B}/.config" |
