summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 85a38ba285..46bc7c66b6 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -85,12 +85,15 @@ def check_sanity(e):
85 required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum" 85 required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum"
86 86
87 # qemu-native needs gcc 3.x 87 # qemu-native needs gcc 3.x
88 if "qemu-native" not in assume_provided: 88 if "qemu-native" not in assume_provided and "gcc3-native" in assume_provided:
89 gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version | head -n 1 | cut -f 3 -d ' '") 89 gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version | head -n 1 | cut -f 3 -d ' '")
90 90
91 if not check_gcc3(e.data) and gcc_version[0] != '3': 91 if not check_gcc3(e.data) and gcc_version[0] != '3':
92 messages = messages + "gcc3-native was in ASSUME_PROVIDED but the gcc-3.x binary can't be found in PATH"
92 missing = missing + "gcc-3.x (needed for qemu-native)," 93 missing = missing + "gcc-3.x (needed for qemu-native),"
93 else: 94
95 if "qemu-native" in assume_provided:
96 messages = messages + "qemu-native was in ASSUME_PROVIDED but the QEMU binaries can't be found in PATH"
94 required_utilities = required_utilities + " qemu-arm" 97 required_utilities = required_utilities + " qemu-arm"
95 98
96 for util in required_utilities.split(): 99 for util in required_utilities.split():