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