[yocto] Dependence from image type to image recipe

Andrea Adami andrea.adami at gmail.com
Mon Feb 20 06:45:20 PST 2017


On Mon, Feb 20, 2017 at 1:40 PM, Viguera, Javier
<Javier.Viguera at digi.com> wrote:
> 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.
>

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



>
>
> 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list