summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/macros.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/macros.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/macros.py')
-rw-r--r--source-builder/sb/macros.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source-builder/sb/macros.py b/source-builder/sb/macros.py
index 200dabb..f77af97 100644
--- a/source-builder/sb/macros.py
+++ b/source-builder/sb/macros.py
@@ -145,8 +145,11 @@ class macros:
raise TypeError('bad value tuple value field: %s' % (type(value[2])))
if value[0] not in ['none', 'triplet', 'dir', 'file', 'exe']:
raise TypeError('bad value tuple (type field): %s' % (value[0]))
- if value[1] not in ['none', 'optional', 'required', 'override', 'undefine']:
+ if value[1] not in ['none', 'optional', 'required',
+ 'override', 'undefine', 'convert']:
raise TypeError('bad value tuple (attrib field): %s' % (value[1]))
+ if value[1] == 'convert':
+ value = self.expand(value)
self.macros[self.write_map][self.key_filter(key)] = value
def __delitem__(self, key):