As discussed in the "[Openembedded-architecture] Yocto Compatible 2.0 + signature changes" mail thread, changes in a .bbappend cannot be done unconditionally. Making _append and _remove depend on overrides which get set based on DISTRO_FEATURES is one way of achieving this.
The oe.utils.optional_includes() helper function has not been discussed before. It's an attempt to address concerns by developers that having to write code for (potentially complex) condition checking is error prone and hard to read. It depends on the bitbake enhancement that allows including multiple files at once. Patrick Ohly (2): bitbake.conf: DISTRO_FEATURES as overrides utils.py: helper function for optional include files meta/conf/bitbake.conf | 17 ++++++++++++++++- meta/lib/oe/utils.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) base-commit: 49c255494c1d0704a1c8c428281c81541b05dc3e -- git-series 0.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core