diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-03-07 07:15:59 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-12 09:59:34 -0700 |
commit | 05dc31e5461e6a8791bdc0f93ec56d07e08d19e9 (patch) | |
tree | 20f5be01707812b96dbaaf0e7037f902218eaf46 /meta-gnome/classes | |
parent | cf50e1f47d9d4329406c7c8cb8c1cbe9e310367f (diff) | |
download | meta-openembedded-contrib-05dc31e5461e6a8791bdc0f93ec56d07e08d19e9.tar.gz |
santiy-meta-gnome: add class for bbappend files checking
Idea taken from meta-virt
Add a new class, sanity-meta-gnome.bbclass, to check for whether necessary
settings are available for bbappend files in this layer to be effective,
and warn users if not.
In addition, a variable SKIP_SANITY_BBAPPEND_CHECK is added to enable users
to explicitly skip the checking to avoid unwanted warnings.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-gnome/classes')
-rw-r--r-- | meta-gnome/classes/sanity-meta-gnome.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-gnome/classes/sanity-meta-gnome.bbclass b/meta-gnome/classes/sanity-meta-gnome.bbclass new file mode 100644 index 00000000000..331ea193d9e --- /dev/null +++ b/meta-gnome/classes/sanity-meta-gnome.bbclass @@ -0,0 +1,10 @@ +addhandler gnome_bbappend_distrocheck +gnome_bbappend_distrocheck[eventmask] = "bb.event.SanityCheck" +python gnome_bbappend_distrocheck() { + skip_check = e.data.getVar('SKIP_META_GNOME_SANITY_CHECK') == "1" + if 'x11' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check: + bb.warn("You have included the meta-gnome layer, but \ +'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files \ +may not take effect. See the meta-gnome README for details on enabling \ +meta-gnome support.") +} |