Syntax for requiring a dependency task's deploy phase to be finished
Hi,
I'm trying to build a kernel containing an initramfs linked directly into the kernel binary. This is inspired by the recent discussion
here: building a minimal image with IMAGE_FSTYPE set to cpio.
I need to be sure that by the time the kernel's do_compile task executes, the minimal image has been deploy to ${DEPLOY_DIR}/image. What's the right way to write this dependency?
Thanks
Quoted 7 lines · Matt Hoosier
I'm trying to build a kernel containing an initramfs linked directly into the kernel binary. This is inspired by the recent discussion
here: building a minimal image withIMAGE_FSTYPEset to cpio.I need to be sure that by the time the kernel's
do_compiletask executes, the minimal image has been deploy to ${DEPLOY_DIR}/image. What's the right way to write this dependency?
If I understand correctly you want something like
do_compile[depends] += "minimal-image:do_deploy"
inside the kernel recipe where "minimal-image" is the name of the image recipe.
Cheers,
Richard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Purdie schreef:
Quoted 9 lines · Matt Hoosier
Quoted 7 lines
I'm trying to build a kernel containing an initramfs linked directly into the kernel binary. This is inspired by the recent discussion
here: building a minimal image withIMAGE_FSTYPEset to cpio.I need to be sure that by the time the kernel's
do_compiletask executes, the minimal image has been deploy to ${DEPLOY_DIR}/image. What's the right way to write this dependency?
Quoted 6 lines
If I understand correctly you want something like
do_compile[depends] += "minimal-image:do_deploy"
inside the kernel recipe where "minimal-image" is the name of the image recipe.
And make sure *nothing* in that image depends on a kernel at buildtime, otherwise bitbake will start spewing incomprehensible backtraces :) A better approach would be to write a bbclass that takes a kernel image and initramfs and glues those together.
regards,
Koen
- --
[email protected] will go go away in december 2007, please use [email protected] instead.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFHTxlDMkyGM64RGpERAhg8AJ9suIHZD8NIXvyK0+FwvVQe1iJoxgCeLMKd u9K/J91oaRA6WV16kTlpaOs=
=yZ7f
-----END PGP SIGNATURE-----
Quoted 17 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Richard Purdie schreef:
Quoted 13 lines · Matt Hoosier
Quoted 7 lines
I'm trying to build a kernel containing an initramfs linked directly into the kernel binary. This is inspired by the recent discussion
here: building a minimal image withIMAGE_FSTYPEset to cpio.I need to be sure that by the time the kernel's
do_compiletask executes, the minimal image has been deploy to ${DEPLOY_DIR}/image. What's the right way to write this dependency?If I understand correctly you want something like
do_compile[depends] += "minimal-image:do_deploy"
Quoted 7 lines
Quoted 2 lines
inside the kernel recipe where "minimal-image" is the name of the image recipe.
And make sure *nothing* in that image depends on a kernel at buildtime, otherwise bitbake will start spewing incomprehensible backtraces :) A better approach would be to write a bbclass that takes a kernel image and initramfs and glues those together.
Okay, thanks to both. Richard's suggestion solves the immediate need.