diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-03-01 11:18:28 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-03-02 10:36:21 -0700 |
commit | 31e93854259130e20a4e08c9d803c34edc4b447e (patch) | |
tree | c601600bc20b60240a1977680ae727b273f9c92e /classes/sanity.bbclass | |
parent | f2f02f6e4754f69b83de7613860fd580e27c0237 (diff) | |
download | openembedded-31e93854259130e20a4e08c9d803c34edc4b447e.tar.gz |
qemu: Perform our sanity checks based on ENABLE_BINARY_LOCALE_GENERATION
Perform qemu-related checks not based on if we're ARM but based on if
we'll be using qemu for binary locale generation. Clarify what the
first of these sanity checks does. Next, change the check for a
provided qemu binary to be generic enough to work on all arches (and catch
distribution or user built versions of qemu). While we're in here, correct
the gcc version check code in base.bbclass.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Acked-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r-- | classes/sanity.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index b66c9a9877..a78e8edf8a 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -83,8 +83,10 @@ def check_sanity(e): required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum" - if data.getVar('TARGET_ARCH', e.data, True) == "arm": - # qemu-native needs gcc 3.x + # If we'll be running qemu, perform some sanity checks + if data.getVar('ENABLE_BINARY_LOCALE_GENERATION', e.data, True): + # Some versions of qemu-native needs gcc 3.x. Do a special + # check here to allow for host 'gcc' is 3.x. if "qemu-native" not in assume_provided and "gcc3-native" in assume_provided: gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version | head -n 1 | cut -f 3 -d ' '") @@ -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 += "qemu" try: if os.path.exists("/proc/sys/vm/mmap_min_addr"): |