summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 10:40:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-12 15:13:39 +0100
commitde69c6c94ef91182422b35374ea0d18d249fccf0 (patch)
tree8f27ec67bf8b9080c56810baa719d38c0467e391 /meta/classes
parentfd572e8c6bf1e2bb466cc6f38f9bd89df0c7d148 (diff)
downloadpoky-de69c6c94ef91182422b35374ea0d18d249fccf0.tar.gz
classes/sanity: remove obsolete code
We can now rely upon the minimum BitBake version having the SanityCheckFailed event, so remove the code to handle if this is not there. (From OE-Core rev: ba17572c9c11efb45a92ba97914ce1f6d84002c8) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 1210f14ddc..385d7339d3 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -6,13 +6,8 @@ SANITY_REQUIRED_UTILITIES ?= "patch diffstat makeinfo git bzip2 tar gzip gawk ch
6 6
7def raise_sanity_error(msg, d): 7def raise_sanity_error(msg, d):
8 if d.getVar("SANITY_USE_EVENTS", True) == "1": 8 if d.getVar("SANITY_USE_EVENTS", True) == "1":
9 # FIXME: handle when BitBake version is too old to support bb.event.SanityCheckFailed 9 bb.event.fire(bb.event.SanityCheckFailed(msg), d)
10 # We can just fire the event directly once the minimum version is bumped beyond 1.15.1 10 return
11 try:
12 bb.event.fire(bb.event.SanityCheckFailed(msg), d)
13 return
14 except AttributeError:
15 pass
16 11
17 bb.fatal(""" OE-core's config sanity checker detected a potential misconfiguration. 12 bb.fatal(""" OE-core's config sanity checker detected a potential misconfiguration.
18 Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). 13 Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).