diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-03-03 14:04:57 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-03-03 14:04:57 -0700 |
commit | 27de16184dccb7b3a49bd08c9282fe4843d00251 (patch) | |
tree | 6bcec8ec1d29302af8f8f475b88ebc85f085c43f /classes/sanity.bbclass | |
parent | 8b0202e6e3f90a772df301e8522f9deb03e50132 (diff) | |
download | openembedded-27de16184dccb7b3a49bd08c9282fe4843d00251.tar.gz |
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.
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r-- | classes/sanity.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index a78e8edf8a..5f0e724456 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. @@ -95,7 +97,7 @@ def check_sanity(e): missing = missing + "gcc-3.x (needed for qemu-native)," if "qemu-native" in assume_provided: - required_utilities += "qemu" + required_utilities += " %s" % (qemu_target_binary(e.data)) try: if os.path.exists("/proc/sys/vm/mmap_min_addr"): |