summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-01-03 14:07:44 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-01-03 14:07:44 +0000
commit66ff85a04873f307baeed7c0d2c92e195bda4b96 (patch)
treee1dc793e40122d4ce5a947956fc44be89f2980d8 /meta/classes/base.bbclass
parent67eaa28a3d2bebb2e5f1d46244db248afd3545e7 (diff)
downloadpoky-66ff85a04873f307baeed7c0d2c92e195bda4b96.tar.gz
base and sanity bbclasses + qemu: move gcc3 availability checking into base.bbclass
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3402 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index d4cae4931c..816f872f0b 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -897,6 +897,23 @@ python () {
897 base_after_parse(d) 897 base_after_parse(d)
898} 898}
899 899
900def check_app_exists(app, d):
901 from bb import which, data
902
903 app = data.expand(app, d)
904 path = data.getVar('PATH', d)
905 return len(which(path, app)) != 0
906
907def check_gcc3(data):
908
909 gcc3_versions = 'gcc-3.4 gcc34 gcc-3.4.4 gcc-3.4.6 gcc-3.4.7 gcc-3.3 gcc33 gcc-3.3.6 gcc-3.2 gcc32'
910
911 for gcc3 in gcc3_versions.split():
912 if check_app_exists(gcc3, data):
913 return gcc3
914
915 return False
916
900# Patch handling 917# Patch handling
901inherit patch 918inherit patch
902 919