Changeset c88c92d in rtems-source-builder


Ignore:
Timestamp:
Jan 17, 2019, 10:32:45 AM (4 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Parents:
680205d
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/19 10:32:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/19 13:53:27)
Message:

sb: Change default prefix

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

Close #3679.

File:
1 edited

Legend:

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

    r680205d rc88c92d  
    300300        if self.defaults['_build'] == self.defaults['nil']:
    301301            raise error.general('--build not set')
     302        # Default prefix
     303        prefix = self.parse_args('--prefix')
     304        if prefix is None:
     305            value = path.join(self.defaults['_prefix'], 'rtems', str(version.version()))
     306            self.opts['prefix'] = value
     307            self.defaults['_prefix'] = value
    302308        # Manage the regression option
    303309        if self.opts['regression'] != '0':
Note: See TracChangeset for help on using the changeset viewer.