[yocto] Check IMAGE_FEATURES content in recipe

Piotr Piwko piotr.piwko at gmail.com
Thu May 10 04:29:13 PDT 2018


czw., 10 maj 2018 o 13:02 Alexander Kanavin <
alexander.kanavin at linux.intel.com> napisał(a):

> You should be able to move the contents of the pkg_postinst to the hook.
> Actually two hooks: one for read only rootfs, another for read-write.
> Add this to your image recipe:
>
> ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES",
> "read-only-rootfs", "piotrs_ro_rootfs_hook; ", "piotrs_rw_rootfs_hook;
> ",d)}'
>

Actually, I don't create my own recipe but I try to extend the existing one
(busybox), so your propose may be not so easy as it sounds :). Anyway I
understand the problem and proposed solution.

Thank you all for help!.

-- 
Piotr Piwko
http://www.embedded-engineering.pl/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180510/0cc46b8a/attachment.html>


More information about the yocto mailing list