recipes-kernel: linux: Use KERNEL_DEFCONFIG to configure the kernel

We define the KERNEL_CONFIGCOMMAND variable in order to launch
'make <defconfig' during the configure step of the recipe. As the old
'file://defconfig' is no longer required, we remove it. The task
do_kernel_configme is incompatible with the notion of in-tree defconfig,
so we disable it.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
Romain Perier 2016-08-07 15:48:43 +02:00 committed by Trevor Woerner
parent 8e1caba550
commit ac1fce7ff7

View File

@ -4,8 +4,7 @@
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.1.y \
file://defconfig"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.1.y"
SRCREV = "${AUTOREV}"
# Override this variable in order to don't pass --noallconfig to configme,
@ -20,3 +19,5 @@ PV = "${LINUX_VERSION}"
# Include only supported boards for now
COMPATIBLE_MACHINE = "(radxarock|marsboard-rk3066|firefly-rk3288)"
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${@d.getVar('KERNEL_DEFCONFIG', True) or ""}"
deltask kernel_configme