mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 15:57:04 +00:00
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
This commit is contained in:
@@ -24,14 +24,6 @@ def check_conf_exists(fn, data):
|
||||
return True
|
||||
return False
|
||||
|
||||
def check_app_exists(app, d):
|
||||
from bb import which, data
|
||||
|
||||
app = data.expand(app, d)
|
||||
path = data.getVar('PATH', d)
|
||||
return len(which(path, app)) != 0
|
||||
|
||||
|
||||
def check_sanity(e):
|
||||
from bb import note, error, data, __version__
|
||||
from bb.event import Handled, NotHandled, getName
|
||||
@@ -96,7 +88,7 @@ def check_sanity(e):
|
||||
if "qemu-native" not in assume_provided:
|
||||
gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version | head -n 1 | cut -f 3 -d ' '")
|
||||
|
||||
if not check_app_exists('gcc-3.4', e.data) and not check_app_exists('gcc-3.3', e.data) and gcc_version[0] != '3':
|
||||
if not check_gcc3(e.data) and gcc_version[0] != '3':
|
||||
missing = missing + "gcc-3.x (needed for qemu-native),"
|
||||
else:
|
||||
required_utilities = required_utilities + " qemu-arm"
|
||||
|
||||
Reference in New Issue
Block a user