From my experience this happens when you flash the image directly after a build from scratch(build dir deleted).
So I have to re-run the build before flash.
With DEPENDS = "virtual/kernel", enigma-info waits until do_install() kernel is ready.
It seems that's too soon.
STAGING_KERNEL_DIR does exist quit early in the build.
${PKGDATA_DIR}/kernel-depmod/kernel-abiversion is created by kernel.bbclass
emit_depmod_pkgdata() {
# Stash data for depmod
install -d ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/
echo "${KERNEL_VERSION}" > ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/${KERNEL_PACKAGE_NAME}-abiversion
cp ${B}/System.map ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/System.map-${KERNEL_VERSION}
}
PACKAGEFUNCS += "emit_depmod_pkgdata"
emit_depmod_pkgdata() will be executed in package.bbclass
for f in (d.getVar('PACKAGEFUNCS') or '').split():
bb.build.exec_func(f, d)
oe.qa.exit_if_errors(d)
So I try this patch now.
diff --git a/meta-openpli/recipes-openpli/enigma2/enigma-info.bb b/meta-openpli/recipes-openpli/enigma2/enigma-info.bb
index d15422fa..f9eab9ef 100644
--- a/meta-openpli/recipes-openpli/enigma2/enigma-info.bb
+++ b/meta-openpli/recipes-openpli/enigma2/enigma-info.bb
@@ -3,7 +3,7 @@ SUMMARY = "enigma.info used by BoxInfo"
PRIORITY = "required"
MAINTAINER = "OpenPLi team"
-DEPENDS = "virtual/kernel"
+do_install[depends] += "virtual/kernel:do_rm_work"
require conf/license/openpli-gplv2.inc
enigma-info waits until the kernel has been built completely then.