Skip to contentSkip to conversation

kernel.bbclass: move in addtask kernel_link_images statement from linux-yocto.inc

PATCH In review [email protected] 2 participants 2 messages Mar 30, 2017 – Apr 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kernel.bbclass: move in addtask kernel_link_images statement from linux-yocto.inc

From: Ming Liu <[email protected]>

Add kernel_link_images task in kernel.bbclass instead of adding it in linux-yocto.inc, or else the recipes inheriting kernel.bbclass might run into implicit dependency issues.

---
 meta/classes/kernel.bbclass               | 1 +
 meta/recipes-kernel/linux/linux-yocto.inc | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -0
index 244087a..bc09fba 100644
@@ -538,6 +538,7 @@ do_kernel_link_images() {
 		ln -sf ../../../vmlinuz.bin
 	fi
 }
+addtask kernel_link_images after do_compile before do_strip
 
 do_strip() {
 	if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
meta/recipes-kernel/linux/linux-yocto.inc +0 -1
index 556546f..637506a 100644
@@ -65,6 +65,5 @@ do_install_append(){
 
 # extra tasks
 addtask kernel_version_sanity_check after do_kernel_metadata do_kernel_checkout before do_compile
-addtask kernel_link_images after do_compile before do_strip
 addtask validate_branches before do_patch after do_kernel_checkout
 addtask kernel_configcheck after do_configure before do_compile
Signature · 1 line
2.7.4
#1 lore raw
Quoted 38 lines · On Thu, Mar 30, 2017 at 3:20 PM, <[email protected]> wrote:

From: Ming Liu <[email protected]>

Add kernel_link_images task in kernel.bbclass instead of adding it in linux-yocto.inc, or else the recipes inheriting kernel.bbclass might run into implicit dependency issues.

---
 meta/classes/kernel.bbclass               | 1 +
 meta/recipes-kernel/linux/linux-yocto.inc | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -0
index 244087a..bc09fba 100644
@@ -538,6 +538,7 @@ do_kernel_link_images() {
                ln -sf ../../../vmlinuz.bin
        fi
 }
+addtask kernel_link_images after do_compile before do_strip
 
 do_strip() {
        if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
meta/recipes-kernel/linux/linux-yocto.inc +0 -2
index 556546f..637506a 100644
@@ -65,6 +65,5 @@ do_install_append(){
 
 # extra tasks
 addtask kernel_version_sanity_check after do_kernel_metadata do_kernel_checkout before do_compile
-addtask kernel_link_images after do_compile before do_strip
 addtask validate_branches before do_patch after do_kernel_checkout
 addtask kernel_configcheck after do_configure before do_compile
--

2.7.4

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Hello,

this patch is useful i.e. when building non-yocto kernels for mips. In our recipe we add exactly that task.

Cheers
Andrea