summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-13 17:13:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-17 14:53:25 +0000
commitedef415be6864eabacd630760ab6a62128aea8ac (patch)
tree4e532fc3ce0ee055b5017afa9598de04e49cff0c /meta/classes/base.bbclass
parent3287e4be35818e5973622d9500dd92ac27bb2e1e (diff)
downloadpoky-edef415be6864eabacd630760ab6a62128aea8ac.tar.gz
classes/base: note variable name in COMPATIBLE_* skip messages
When raising SkipPackage for COMPATIBLE_MACHINE and COMPATIBLE_HOST exceptions, include the name of the variable as a hint to the user. (From OE-Core rev: c9f6fd20cf65799714b45a7bdfc3dd022b3d79cd) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f0c358ea32..091e965c1d 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -379,7 +379,7 @@ python () {
379 import re 379 import re
380 this_host = d.getVar('HOST_SYS', 1) 380 this_host = d.getVar('HOST_SYS', 1)
381 if not re.match(need_host, this_host): 381 if not re.match(need_host, this_host):
382 raise bb.parse.SkipPackage("incompatible with host %s" % this_host) 382 raise bb.parse.SkipPackage("incompatible with host %s (not in COMPATIBLE_HOST)" % this_host)
383 383
384 need_machine = d.getVar('COMPATIBLE_MACHINE', 1) 384 need_machine = d.getVar('COMPATIBLE_MACHINE', 1)
385 if need_machine: 385 if need_machine:
@@ -388,7 +388,7 @@ python () {
388 if this_machine and not re.match(need_machine, this_machine): 388 if this_machine and not re.match(need_machine, this_machine):
389 this_soc_family = d.getVar('SOC_FAMILY', 1) 389 this_soc_family = d.getVar('SOC_FAMILY', 1)
390 if (this_soc_family and not re.match(need_machine, this_soc_family)) or not this_soc_family: 390 if (this_soc_family and not re.match(need_machine, this_soc_family)) or not this_soc_family:
391 raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) 391 raise bb.parse.SkipPackage("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % this_machine)
392 392
393 393
394 dont_want_license = d.getVar('INCOMPATIBLE_LICENSE', 1) 394 dont_want_license = d.getVar('INCOMPATIBLE_LICENSE', 1)