summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2010-04-21 11:11:52 -0500
committerJesse Gilles <jgilles@multitech.com>2010-04-26 11:36:00 -0500
commit746d3f145c5d890aa63e00a8261ee5934733eaac (patch)
treec2e5031d32e60335094b01efe804b4445337bcc9 /classes/sanity.bbclass
parent2b0109cdd8be5a58d230db249da51abf617d2ca0 (diff)
qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclass
Move the logic to determine what qemu-TARGET to run into qemu.bbclass so we can check for the right binary in sanity.bbclass. This code was duplicated by glibc-package and eglibc-package anyhow and with the new fn we can clean up the usage in these classes a bit. Now that we have a class for qemu stuff, and the gcc check is just for qemu, move it there. Conflicts: classes/base.bbclass classes/sanity.bbclass
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index f65df61c1d..7e087d8927 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -2,6 +2,8 @@
# Sanity check the users setup for common misconfigurations
#
+inherit qemu
+
def raise_sanity_error(msg):
import bb
bb.fatal(""" Openembedded's config sanity checker detected a potential misconfiguration.
@@ -93,8 +95,7 @@ def check_sanity(e):
missing = missing + "gcc-3.x (needed for qemu-native),"
if "qemu-native" in assume_provided:
- if not check_app_exists("qemu-arm", e.data):
- messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can't be found in PATH"
+ required_utilities += " %s" % (qemu_target_binary(e.data))
if os.path.exists("/proc/sys/vm/mmap_min_addr"):
f = file("/proc/sys/vm/mmap_min_addr", "r")