summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/options.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-05-13 14:44:49 +1000
committerChris Johns <chrisj@rtems.org>2013-05-13 14:44:49 +1000
commit5237f1ccb77342d17eac2b97b274726722d2e914 (patch)
treefca51d8d162d27af2f35915e4ae57f34d1b0eae2 /source-builder/sb/options.py
parentAdd an RTEMS config wrapper around Makefile.inc. (diff)
downloadrtems-source-builder-5237f1ccb77342d17eac2b97b274726722d2e914.tar.bz2
Fix support for Windows (MinGW) native builds using MSYS.
Fix paths that need to be coverted to host format. The shell expansion needs to invoke a shell on Windows as cmd.exe will not work. Munch the paths into smaller sizes for Windows due to the limited path size.
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r--source-builder/sb/options.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py
index 42bfadc..72709f5 100644
--- a/source-builder/sb/options.py
+++ b/source-builder/sb/options.py
@@ -37,6 +37,11 @@ import sys
basepath = 'sb'
+#
+# Save the host state.
+#
+host_windows = False
+
class command_line:
"""Process the command line in a common way for all Tool Builder commands."""
@@ -460,6 +465,8 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
command line.
"""
+ global host_windows
+
#
# The path to this command.
#
@@ -482,6 +489,7 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'):
try:
import windows
overrides = windows.load()
+ host_windows = True
except:
raise error.general('failed to load Windows host support')
elif os.name == 'posix':