summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/execute.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-04-01 15:19:56 +1100
committerChris Johns <chrisj@rtems.org>2013-04-01 15:19:56 +1100
commit4f26bdb2f0372abc1273f16594e9ac1fd96e0559 (patch)
treef904e09cfe49b15b35b66d96a934a139c497a132 /source-builder/sb/execute.py
parentAdd which type of hosts work. Some 32bit hosts have issues. (diff)
downloadrtems-source-builder-4f26bdb2f0372abc1273f16594e9ac1fd96e0559.tar.bz2
Add Canadian Cross support.
Add support to build MinGW tools using Cygwin. This is a Canadian cross build. Do not expand the directives when parsing a configuration file. Hold in the package object the text as read from the configuration file. Still parse the logic but leave the macros. This allows a configuration to be varied when the build happens. The Canadian cross uses this to build a build compiler used to build a Cxc runtime. Add Cxc support to the build module. In the defaults add rm and rmfile macros, add Cxc paths and pre-build script code. In the setbuilder check for a Cxc build and if so and the package allow Cxc build the build host version then the host target version. Add cygiwn support to the defaults processing and to the Windows module.
Diffstat (limited to 'source-builder/sb/execute.py')
-rwxr-xr-xsource-builder/sb/execute.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source-builder/sb/execute.py b/source-builder/sb/execute.py
index ad4ffde..fda4974 100755
--- a/source-builder/sb/execute.py
+++ b/source-builder/sb/execute.py
@@ -102,14 +102,20 @@ class execute:
def _readthread(fh, out, prefix = ''):
"""Read from a file handle and write to the output handler
until the file closes."""
+ count = 0
while True:
line = fh.readline()
+ count += 1
if len(line) == 0:
break
if out:
out(prefix + line)
else:
log.output(prefix + line)
+ if count > 10:
+ log.flush()
+ count = 0
+
def _timerthread(proc, timer):
"""Timer thread calls the timer handler if one
is present once a second. The user provides a handler