summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r--source-builder/sb/options.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py
index a0f196b..05ad208 100644
--- a/source-builder/sb/options.py
+++ b/source-builder/sb/options.py
@@ -46,7 +46,7 @@ basepath = 'sb'
#
# Save the host and POSIX state.
#
-host_windows = False
+host_windows = os.name == 'nt'
host_posix = True
class command_line:
@@ -103,6 +103,10 @@ class command_line:
self.defaults[self._long_opts[lo][0]] = ('none',
'none',
self._long_opts[lo][3])
+ # Set the _uid field, performance improvement on Unix
+ if not host_windows:
+ self.defaults['_uid'] = str(os.getuid())
+ self.defaults['_gid'] = str(os.getgid())
def __str__(self):
def _dict(dd):
@@ -235,7 +239,7 @@ class command_line:
print('--with-<label> : Add the --with-<label> to the build')
print('--without-<label> : Add the --without-<label> to the build')
print('--rtems-tools path : Path to an install RTEMS tool set')
- print('--rtems-bsp arc/bsp : Standard RTEMS architecure and BSP specifier')
+ print('--rtems-bsp arch/bsp : Standard RTEMS architecure and BSP specifier')
print('--rtems-version ver : The RTEMS major/minor version string')
if self.optargs:
for a in self.optargs:
@@ -634,6 +638,7 @@ class command_line:
if len(ab) != 2:
raise error.general('invalid --rtems-bsp option')
self.args.append('--target=%s-rtems%s' % (ab[0], rtems_version))
+ self.args.append('--with-rtems-arch=%s' % (ab[0]))
self.args.append('--with-rtems-bsp=%s' % (ab[1]))
def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc', logfile = True):