summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-17 11:32:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-22 14:56:25 +0100
commitad29cd659d886c448e0b8ed240f833f4cf437478 (patch)
treeabbd8418a794dc52583afee7550c428d270c7475
parentce33364efcc504c797d038b031a9564852795b20 (diff)
downloadrtems-source-builder-4.10.tar.bz2
sb: Change default prefix4.10
Use OS prefix + "rtems" + $rtems_version as the default prefix to automatically separate different RTEMS versions. Close #3680.
-rw-r--r--source-builder/sb/options.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py
index 4800005..7d1856b 100644
--- a/source-builder/sb/options.py
+++ b/source-builder/sb/options.py
@@ -299,6 +299,12 @@ class command_line:
# Must have a host
if self.defaults['_build'] == self.defaults['nil']:
raise error.general('--build not set')
+ # Default prefix
+ prefix = self.parse_args('--prefix')
+ if prefix is None:
+ value = path.join(self.defaults['_prefix'], 'rtems', str(version.version()))
+ self.opts['prefix'] = value
+ self.defaults['_prefix'] = value
# Manage the regression option
if self.opts['regression'] != '0':
self.opts['no-install'] = '1'