diff options
author | Chris Johns <chrisj@rtems.org> | 2013-05-14 11:08:02 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-05-14 11:08:02 +1000 |
commit | 1a56a07605ba9720ec91c9bbf17566ffc7887bfe (patch) | |
tree | 8f55eba7e5a549c0eb39301688c98c544bca425d /source-builder/sb/options.py | |
parent | Newlib CVS: 13-May-2013. Pick up the atexit changes. (diff) | |
download | rtems-source-builder-1a56a07605ba9720ec91c9bbf17566ffc7887bfe.tar.bz2 |
Add bare/config and move the source-builder/config to it.
Rework the RTEMS build set files to point to the new location.
Move the files into devel, this follows the ports naming in
FreeBSD.
Update the macros, defaults, and options to support this.
Diffstat (limited to 'source-builder/sb/options.py')
-rw-r--r-- | source-builder/sb/options.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py index 72709f5..019f4ee 100644 --- a/source-builder/sb/options.py +++ b/source-builder/sb/options.py @@ -258,7 +258,10 @@ class command_line: log.quiet = True # Must have a host if self.defaults['_host'] == self.defaults['nil']: - raise error.general('host not set') + raise error.general('--host not set') + # Must have a host + if self.defaults['_build'] == self.defaults['nil']: + raise error.general('--build not set') # Manage the regression option if self.opts['regression'] != '0': self.opts['no-install'] = '1' @@ -508,7 +511,7 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'): import linux overrides = linux.load() except: - raise error.general('failed to load %s host support' % (uname)) + raise error.general('failed to load %s host support' % (uname[0])) else: raise error.general('unsupported host type; please add') if overrides is None: @@ -524,7 +527,7 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc'): def run(args): try: - _opts = load(args = args) + _opts = load(args = args, defaults = 'defaults.mc') print 'Options:' print _opts print 'Defaults:' |