Skip to contentSkip to conversation

linux-yocto: add kern-tools-native to kernel_metadata depends

PATCH In review Ross Burton 2 participants 4 messages Mar 27, 2015

lore
Share & tools
lore
#0 lore raw

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
index 14551a2..a1fbb51 100644
@@ -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
index c62f8ca..5b69a49 100644
@@ -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
#1 lore raw

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
index a1fbb51..650ae5a 100644
@@ -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
index 5b69a49..3b41a61 100644
@@ -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
Acked-by on v1 1/2
#3 lore raw
In reply to Ross Burton
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_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.

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 ]

---
 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
index 14551a2..a1fbb51 100644
@@ -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
index c62f8ca..5b69a49 100644
@@ -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"
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] kernel-yocto: merge duplicate kernel_configme task definitions

In reply to Ross Burton
Quoted 5 lines · Ross Burton

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.

Agreed. Organically grown .. and not ideal in the existing layout :)

Quoted 41 lines
---
 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
index a1fbb51..650ae5a 100644
@@ -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 -3
index 5b69a49..3b41a61 100644
@@ -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"