sanity-meta-virt: Make skip variable name layer specific

The variable used to skip the sanity check should be named in a layer specific
way. This will ensure there is no confusion if other layers use a similar sanity
check.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Paul Barker 2017-10-12 16:49:54 +00:00 committed by Bruce Ashfield
parent 89a1121656
commit 1e4530c283
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
addhandler virt_bbappend_distrocheck
virt_bbappend_distrocheck[eventmask] = "bb.event.ConfigParsed"
python virt_bbappend_distrocheck() {
skip_check = e.data.getVar('SKIP_SANITY_BBAPPEND_CHECK') == "1"
skip_check = e.data.getVar('SKIP_META_VIRT_SANITY_CHECK') == "1"
if 'virtualization' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check:
bb.warn("You have included the meta-virtualization layer, but \
'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files \

View File

@ -24,5 +24,5 @@ PREFERRED_PROVIDER_virtual/runc ?= "runc-docker"
PREFERRED_PROVIDER_virtual/containerd ?= "containerd-docker"
# Sanity check for meta-virtualization layer.
# Setting SKIP_SANITY_BBAPPEND_CHECK to "1" would skip the bbappend files check.
# Setting SKIP_META_VIRT_SANITY_CHECK to "1" would skip the bbappend files check.
INHERIT += "sanity-meta-virt"