Changeset 03df294 in rtems-source-builder


Ignore:
Timestamp:
Jan 17, 2019, 10:32:45 AM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.9
Parents:
c439538
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/19 10:32:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/19 14:01:43)
Message:

sb: Change default prefix

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

Close #3681.

File:
1 edited

Legend:

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

    rc439538 r03df294  
    279279        if self.defaults['_build'] == self.defaults['nil']:
    280280            raise error.general('--build not set')
     281        # Default prefix
     282        prefix = self.parse_args('--prefix')
     283        if prefix is None:
     284            value = path.join(self.defaults['_prefix'], 'rtems', str(version.version()))
     285            self.opts['prefix'] = value
     286            self.defaults['_prefix'] = value
    281287        # Manage the regression option
    282288        if self.opts['regression'] != '0':
Note: See TracChangeset for help on using the changeset viewer.