summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/conf/local.conf.sample4
-rw-r--r--meta/classes/sanity.bbclass8
2 files changed, 9 insertions, 3 deletions
diff --git a/build/conf/local.conf.sample b/build/conf/local.conf.sample
index 0512ced85c..4816294f9c 100644
--- a/build/conf/local.conf.sample
+++ b/build/conf/local.conf.sample
@@ -75,8 +75,8 @@ TMPDIR = "${OEROOT}/build/tmp"
75# Also, make can be passed flags so it run parallel threads e.g.: 75# Also, make can be passed flags so it run parallel threads e.g.:
76# PARALLEL_MAKE = "-j 4" 76# PARALLEL_MAKE = "-j 4"
77 77
78# Comment this out if you are *not* using provided qemu deb - see README 78# Uncomment this if you are using the Openedhand provided qemu deb - see README
79ASSUME_PROVIDED += "qemu-native" 79# ASSUME_PROVIDED += "qemu-native"
80 80
81# Uncomment these two if you want BitBake to build images useful for debugging. 81# Uncomment these two if you want BitBake to build images useful for debugging.
82# DEBUG_BUILD = "1" 82# DEBUG_BUILD = "1"
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 71dc26fa7d..2742dada7d 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -89,12 +89,18 @@ def check_sanity(e):
89 if not check_app_exists('${BUILD_PREFIX}g++', e.data): 89 if not check_app_exists('${BUILD_PREFIX}g++', e.data):
90 missing = missing + "C++ Compiler," 90 missing = missing + "C++ Compiler,"
91 91
92 required_utilities = "patch diffstat help2man texi2html cvs svn bzip2 tar gzip gawk makeinfo qemu-arm" 92 required_utilities = "patch diffstat help2man texi2html cvs svn bzip2 tar gzip gawk makeinfo"
93 93
94 for util in required_utilities.split(): 94 for util in required_utilities.split():
95 if not check_app_exists( util, e.data ): 95 if not check_app_exists( util, e.data ):
96 missing = missing + "%s," % util 96 missing = missing + "%s," % util
97 97
98 # qemu-native needs gcc 3.x
99 gcc_version = commands.getoutput("${BUILD_PREFIX}gcc --version | head -n 1 | cut -f 3 -d ' '")
100
101 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':
102 missing = missing + "gcc-3.x (needed for qemu-native),"
103
98 if missing != "": 104 if missing != "":
99 missing = missing.rstrip(',') 105 missing = missing.rstrip(',')
100 messages = messages + "Please install following missing utilities: %s\n" % missing 106 messages = messages + "Please install following missing utilities: %s\n" % missing