diff options
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index db5d479000..3003fb1624 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -313,6 +313,8 @@ python sysroot_stage_all () { | |||
313 | oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}")) | 313 | oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}")) |
314 | } | 314 | } |
315 | 315 | ||
316 | KERNEL_CONFIG_COMMAND ?= "oe_runmake oldnoconfig || yes '' | oe_runmake oldconfig" | ||
317 | |||
316 | kernel_do_configure() { | 318 | kernel_do_configure() { |
317 | # fixes extra + in /lib/modules/2.6.37+ | 319 | # fixes extra + in /lib/modules/2.6.37+ |
318 | # $ scripts/setlocalversion . => + | 320 | # $ scripts/setlocalversion . => + |
@@ -325,7 +327,7 @@ kernel_do_configure() { | |||
325 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then | 327 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then |
326 | cp "${WORKDIR}/defconfig" "${B}/.config" | 328 | cp "${WORKDIR}/defconfig" "${B}/.config" |
327 | fi | 329 | fi |
328 | yes '' | oe_runmake oldconfig | 330 | eval ${KERNEL_CONFIG_COMMAND} |
329 | } | 331 | } |
330 | 332 | ||
331 | do_savedefconfig() { | 333 | do_savedefconfig() { |