summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-03-01 11:18:28 +0000
committerTom Rini <tom_rini@mentor.com>2010-03-02 10:36:21 -0700
commit31e93854259130e20a4e08c9d803c34edc4b447e (patch)
treec601600bc20b60240a1977680ae727b273f9c92e /classes/base.bbclass
parentf2f02f6e4754f69b83de7613860fd580e27c0237 (diff)
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/base.bbclass')
-rw-r--r--classes/base.bbclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 358a9a2b68..65ad478cbc 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1341,16 +1341,15 @@ def check_app_exists(app, d):
return len(which(path, app)) != 0
def check_gcc3(data):
- # Primarly used by qemu to make sure we have a workable gcc-3.4.x.
- # Start by checking for the program name as we build it, was not
- # all host-provided gcc-3.4's will work.
-
+ # Primarly used by qemu to make sure we have a workable gcc-3.x.
+ # Start by checking for the program name as we build it as there
+ # are some distribtuion provided gcc-3.x's that will not work.
gcc3_versions = 'gcc-3.4.6 gcc-3.4.4 gcc34 gcc-3.4 gcc-3.4.7 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32'
for gcc3 in gcc3_versions.split():
if check_app_exists(gcc3, data):
return gcc3
-
+
return False
# Patch handling