summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-08-17 22:18:29 +0000
committerHolger Freyther <zecke@selfish.org>2007-08-17 22:18:29 +0000
commit06e6bf2f4dd1d7cd4882a3bf935c31968744b758 (patch)
treea990dca7900270e2ec8b83c877dc9bb306c4479b /classes/sanity.bbclass
parent58d50bcddcb49ab7b940c7f4b14667942bbf8fed (diff)
classes/sanity.bbclass: Check stty settings and complain when tostop is present
tostop is known to make bitbake-1.8 processes hang. Make the user aware of the upcoming issue and propose a solution to this problem.
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 479abce7fa..33cdae33ac 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -90,7 +90,7 @@ def check_sanity(e):
if not check_app_exists('${BUILD_PREFIX}g++', e.data):
missing = missing + "C++ Compiler (${BUILD_PREFIX}g++),"
- required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum"
+ required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum stty"
for util in required_utilities.split():
if not check_app_exists( util, e.data ):
@@ -109,6 +109,11 @@ def check_sanity(e):
if not oes_bb_conf:
messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf\n'
+ # Check if the terminal has stty +tostop
+ if "tostop" in os.popen("stty").read():
+ messages = messages + "You have tostop in your stty terminal setting. This will make BitBake hang when executing. Execute stty -tostop fix this.\n"
+
+
if messages != "":
raise_sanity_error(messages)