summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/windows.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-05-15 12:15:14 +1000
committerChris Johns <chrisj@rtems.org>2013-05-15 12:15:14 +1000
commitdb65c6aaf1e73722cfa1327d77419ecc402f096a (patch)
tree282a2cccf62ad776a0f50beaec02ee936c7ed2d5 /source-builder/sb/windows.py
parentAdd better error messages. (diff)
downloadrtems-source-builder-db65c6aaf1e73722cfa1327d77419ecc402f096a.tar.bz2
Support Canadian cross builds on FreeBSD (and other hosts).
Set up the rules to manage the separate host and build setting to allow a Canadian cross to complete. Update the scripts to move the build directory and host/build flags into the defaults so they are common for all build configurations.
Diffstat (limited to 'source-builder/sb/windows.py')
-rw-r--r--source-builder/sb/windows.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/source-builder/sb/windows.py b/source-builder/sb/windows.py
index 1b636d6..c9fd111 100644
--- a/source-builder/sb/windows.py
+++ b/source-builder/sb/windows.py
@@ -66,6 +66,11 @@ def load():
'_ncpus': ('none', 'none', ncpus),
'_os': ('none', 'none', 'win32'),
'_build': ('triplet', 'required', build_triple),
+ '_build_vendor': ('none', 'none', 'microsoft'),
+ '_build_os': ('none', 'none', 'win32'),
+ '_build_cpu': ('none', 'none', hosttype),
+ '_build_alias': ('none', 'none', '%{nil}'),
+ '_build_arch': ('none', 'none', hosttype),
'_host': ('triplet', 'required', host_triple),
'_host_vendor': ('none', 'none', 'microsoft'),
'_host_os': ('none', 'none', 'win32'),
@@ -111,8 +116,7 @@ def load():
'__unzip': ('exe', 'required', 'unzip'),
'__xz': ('exe', 'required', 'xz'),
'_buildshell': ('exe', 'required', '%{__sh}'),
- '___setup_shell': ('exe', 'required', '%{__sh}'),
- 'optflags': ('none', 'none', '-O2 -pipe'),
+ '___setup_shell': ('exe', 'required', '%{__sh}')
}
return defines