[yocto] Dependence from image type to image recipe
Hi all, I need a bit of help to add a dependence from an image type to an image recipe that build and initramfs. A bit of background: I have an image type recovery.ubifs that boots using a ramdisk. The ramdisk is generated with a different image recipe (recovery-initramfs). So whenever I configure any image (core-image-minimal, core-image-sato) to generate recovery images, it should build first the ramdisk and add it to the final recovery image. In Jethro this was working file using IMAGE_DEPENDS in my custom image-creation class: IMAGE_DEPENDS_recovery.ubifs = " \ mtd-utils-native:do_populate_sysroot \ u-boot:do_deploy \ virtual/kernel:do_deploy \ recovery-initramfs:do_rootfs \ " Now I'm migrating to Morty, and this does not seem to work anymore. When instructed to generate a recovery image, it does not detect the dependence on the recovery-initramfs image, and fails to generate the final image. How should I code such dependence? Remember is not a dependence from any other image recipe, it's a dependence from an image FSTYPE. Hope the description is clear enough. Otherwise please say so and I'll try to explain it better. -- Thanks. Javier Viguera -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Dependence from image type to image recipe
Hello Andrea, On 20/02/17 15:45, Andrea Adami wrote: > > Hello, > I think you have just to adapt to the changes in oe-core [1] > > -recovery-initramfs:do_rootfs \ > +recovery-initramfs:do_image_complete \ > > Cheers > Andrea > > > [1] > http://cgit.openembedded.org/openembedded-core/commit/?id=59a5f596ca29b1eb8283706e3c60fbb39f9c2c23 That was indeed needed, but not enough in my case. But now I know why. Seems that the new code to generate images, does split IMAGE_FSTYPES in a basetype and then coversions. So for dependences the code is looking for IMAGE_DEPENDS_recovery (without \.ubifs), because it thinks the basetype is 'recovery' while I was coding the dependences in IMAGE_DEPENDS_recovery.ubifs. Renaming my image type to recovery_ubifs and changing the dependence to 'do_image_complete' as you suggested fixes the problem. Thanks for your help. Javier Viguera -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Literal curly braces inside python expression
Hi all, I'm having a hard time trying to put some literal curly braces in a python expression and I need a bit of help to solve this problem. I minimal example to reproduce this. If in my recipe i have: VAR1 = "1" VAR2 = "${@base_conditional('VAR1', '1', '{ONE}', '{TWO}', d)}" do_install() { echo "${VAR2}" } Getting the recipe environment I get: # bitbake -e myrecipe | less do_install() { ... echo "${@base_conditional('VAR1', '1', '{ONE}', '{TWO}', d)}" ... } So bitbake is not resolving the python expression. If on the other hand I remove the curly braces: VAR1 = "1" VAR2 = "${@base_conditional('VAR1', '1', 'ONE', 'TWO', d)}" then bitbake solves the expression correctly: # bitbake -e myrecipe | less do_install() { ... echo "ONE" ... } But I do need to put those curly braces. Is there a way? Thanks in advance. -- Javier Viguera -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto