Skip to contentSkip to conversation

kernel.bbclass: add task dependency between bundle_initramfs and package

PATCH In review Ming Liu 1 participant 2 messages Jun 25, 2014

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

PATCH v2 1/1 kernel.bbclass: add task dependency between bundle_initramfs and package

To ensure the bundled image to be packaged into kernel-image, otherwise, If bundle_initramfs runs after do_package, the bundled kernel and initramfs will not be part of the kernel-image package. This can result in boot failures and other issues when the kernel-image is deployed.

---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index 6ed1cb7..764a9ec 100644
@@ -146,7 +146,7 @@ python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''
 }
 
-addtask bundle_initramfs after do_install before do_deploy
+addtask bundle_initramfs after do_install before do_deploy do_package
 
 kernel_do_compile() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
Signature · 1 line
1.8.4.1
author
#1 lore raw

Please ignore this V2 too, I found a drawback that if the kernel-module* are added to the initramfs image, then it will lead us to a circular dependency risk, maybe we should not add this dependency at all.

//Ming Liu

Quoted 23 lines · Ming Liu

To ensure the bundled image to be packaged into kernel-image, otherwise, If bundle_initramfs runs after do_package, the bundled kernel and initramfs will not be part of the kernel-image package. This can result in boot failures and other issues when the kernel-image is deployed.

---
  meta/classes/kernel.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index 6ed1cb7..764a9ec 100644
@@ -146,7 +146,7 @@ python do_devshell_prepend () {
      os.environ["LDFLAGS"] = ''
  }
 
-addtask bundle_initramfs after do_install before do_deploy
+addtask bundle_initramfs after do_install before do_deploy do_package
 
  kernel_do_compile() {
  	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE