linux-yocto: add kern-tools-native to kernel_metadata depends
PATCH 1/2 linux-yocto: add kern-tools-native to kernel_metadata depends
The autobuilder failed like this:
temp/run.do_kernel_metadata.25242: line 165: createme: command not found
createme is provided by kern-tools-native. do_patch has a dependency on kern-tools-native, but do_kernel_metadata runs before do_patch. So move the dependency from do_patch to do_kernel_metadata, moving the statement from the .inc to the class so it's alongside the task definition.
[ YOCTO #7531 ]
--- meta/classes/kernel-yocto.bbclass | 1 + meta/recipes-kernel/linux/linux-yocto.inc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
meta/classes/kernel-yocto.bbclass +1 -0
@@ -261,6 +261,7 @@ do_kernel_checkout[dirs] = "${S}" addtask kernel_checkout before do_patch after do_unpack addtask kernel_metadata after do_validate_branches before do_patch +do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" do_kernel_configme[dirs] += "${S} ${B}" do_kernel_configme() {
meta/recipes-kernel/linux/linux-yocto.inc +0 -2
@@ -32,8 +32,6 @@ KCONF_BSP_AUDIT_LEVEL ?= "0" LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" -do_patch[depends] = "kern-tools-native:do_populate_sysroot" - addtask kernel_configme before do_configure after do_patch # Pick up shared functions
Signature · 1 line
1.7.10.4
PATCH 2/2 kernel-yocto: merge duplicate kernel_configme task definitions
The kernel_configme task was added twice (once in the .bbclass, one in a .inc) with different ordering constraints.
Change this to be just one definition in the bbclass with the stronger ordering constraints.
--- meta/classes/kernel-yocto.bbclass | 2 +- meta/recipes-kernel/linux/linux-yocto.inc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
meta/classes/kernel-yocto.bbclass +1 -1
@@ -289,7 +289,7 @@ do_kernel_configme() { echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config } -addtask kernel_configme after do_patch +addtask kernel_configme before do_configure after do_patch python do_kernel_configcheck() { import re, string, sys
meta/recipes-kernel/linux/linux-yocto.inc +0 -2
@@ -32,8 +32,6 @@ KCONF_BSP_AUDIT_LEVEL ?= "0" LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" -addtask kernel_configme before do_configure after do_patch - # Pick up shared functions inherit kernel inherit kernel-yocto
Signature · 1 line
1.7.10.4
Re: [PATCH 2/2] kernel-yocto: merge duplicate kernel_configme task definitions
Quoted 5 lines · Ross Burton
The
kernel_configmetask was added twice (once in the .bbclass, one in a .inc) with different ordering constraints.Change this to be just one definition in the bbclass with the stronger ordering constraints.
Agreed. Organically grown .. and not ideal in the existing layout :)
Quoted 41 lines
Signed-off-by Ross Burton <[email protected]>--- meta/classes/kernel-yocto.bbclass | 2 +- meta/recipes-kernel/linux/linux-yocto.inc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)meta/classes/kernel-yocto.bbclass +1
-1@@ -289,7 +289,7 @@ do_kernel_configme() { echo "CONFIG_LOCALVERSION="\"${LINUX_VERSION_EXTENSION}\" >> ${B}/.config } -addtask kernel_configme after do_patch +addtask kernel_configme before do_configure after do_patch python do_kernel_configcheck() { import re, string, sysmeta/recipes-kernel/linux/linux-yocto.inc +0
-3@@ -32,8 +32,6 @@ KCONF_BSP_AUDIT_LEVEL ?= "0" LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" -addtask kernel_configme before do_configure after do_patch - # Pick up shared functions inherit kernel inherit kernel-yocto --1.7.10.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 8 lines · Ross Burton
The autobuilder failed like this:
temp/run.do_kernel_metadata.25242: line 165: createme: command not found
createme is provided by kern-tools-native.
do_patchhas a dependency on kern-tools-native, butdo_kernel_metadataruns beforedo_patch. So move the dependency fromdo_patchtodo_kernel_metadata, moving the statement from the .inc to the class so it's alongside the task definition.
Agreed. I've meant to do this cleanup myself a few times .. and then get sidetracked.
If the depends had been beside the task definition in the .inc, I would have realized
that I needed to tweak it at the same time .. so this is much better.
Quoted 42 lines
[ YOCTO #7531 ]
Signed-off-by Ross Burton <[email protected]>--- meta/classes/kernel-yocto.bbclass | 1 + meta/recipes-kernel/linux/linux-yocto.inc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)meta/classes/kernel-yocto.bbclass +1
-0@@ -261,6 +261,7 @@ do_kernel_checkout[dirs] = "${S}" addtask kernel_checkout before do_patch after do_unpack addtask kernel_metadata after do_validate_branches before do_patch +do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" do_kernel_configme[dirs] += "${S} ${B}" do_kernel_configme() {meta/recipes-kernel/linux/linux-yocto.inc +0
-3@@ -32,8 +32,6 @@ KCONF_BSP_AUDIT_LEVEL ?= "0" LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" -do_patch[depends] = "kern-tools-native:do_populate_sysroot" - addtask kernel_configme before do_configure after do_patch # Pick up shared functions --1.7.10.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"