Changeset d523d4c in rtems-source-builder


Ignore:
Timestamp:
Jan 17, 2019, 10:32:45 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f07504d
Parents:
34a9932
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/19 10:32:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/19 08:57:30)
Message:

sb: Change default prefix

Use OS prefix + "rtems" + $rtems_version as the default prefix to
automatically separate different RTEMS versions.

Close #3675.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/options.py

    r34a9932 rd523d4c  
    311311        if self.defaults['_build'] == self.defaults['nil']:
    312312            raise error.general('--build not set')
     313        # Default prefix
     314        prefix = self.parse_args('--prefix')
     315        if prefix is None:
     316            value = path.join(self.defaults['_prefix'], 'rtems', str(self.defaults['rtems_version']))
     317            self.opts['prefix'] = value
     318            self.defaults['_prefix'] = value
    313319        # Manage the regression option
    314320        if self.opts['regression'] != '0':
Note: See TracChangeset for help on using the changeset viewer.