While building busybox with QA package-missing checking enabled, there was warning: ... WARNING: QA Issue: package busybox-mdev not generated, but listed in PACKAGES WARNING: QA Issue: package busybox-httpd not generated, but listed in PACKAGES ...
The config in ${B}/.config decides to generate busybox-mdev, busybox-httpd or not. Files are copied if the packages generated. So set PACKAGES in do_package according to the existance of files. Signed-off-by: Hongxu Jia <hongxu....@windriver.com> --- meta/recipes-core/busybox/busybox.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index bd66e4f..23115ae 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -314,6 +314,16 @@ python () { } python do_package_prepend () { + if not os.path.exists(d.expand("${D}${sysconfdir}/init.d/busybox-httpd")): + packages = (d.getVar('PACKAGES', True) or '').split() + packages.remove(d.expand('${PN}-httpd')) + d.setVar('PACKAGES', ' '.join(packages)) + + if not os.path.exists(d.expand("${D}${sysconfdir}/init.d/mdev")): + packages = (d.getVar('PACKAGES', True) or '').split() + packages.remove(d.expand('${PN}-mdev')) + d.setVar('PACKAGES', ' '.join(packages)) + # We need to load the full set of busybox provides from the /etc/busybox.links # Use this to see the update-alternatives with the right information -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core