[OE-core] RDEPENDS kernel-image-zimage & kernel.bbclass PKG name

André Draszik git at andred.net
Tue May 14 13:35:48 UTC 2019


Hi,

As part of the build, kernel packages are renamed, e.g.
kernel-image-zimage basically becomes
kernel-image-zimage-${KERNEL_VERSION}

When a package created by recipe B RDEPENDS on kernel-image-zimage,
the ipk generated ultimately depends on
kernel-image-zimage-${KERNEL_VERSION} (not kernel-image-zimage).
Once the kernel is updated, it appears as though recipe B is not
repackaged, so the package still runtime depends on the original
kernel, which doesn't exist anymore, and thus building the image
fails.

Specifically, I have
MACHINE_EXTRA_RDEPENDS += "kernel-image-zimage"
in my BSP, and hence packagegroup-machine-base runtime depends on
kernel-image-zimage-4.9.11-cl-som-imx7-5.1+gc27010d99a3d.
Updating the kernel doesn't trigger a rebuild of packagegroup-machine-base,
so things fail for me.


Am I missing something in my BSP? I could probably do a bbappend
on packagegroup-base.bb and add something like
do_packagedata[depends] += "virtual/kernel:do_packagedata"

This doesn't seem right, though.


Any ideas or thoughts?


Cheers,
Andre'




More information about the Openembedded-core mailing list