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/base.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/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 65ad478cbc..c083d48d85 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -1340,18 +1340,6 @@ def check_app_exists(app, d): path = data.getVar('PATH', d, 1) return len(which(path, app)) != 0 -def check_gcc3(data): - # 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 inherit patch |