[PATCH 2/2] sb: Change default prefix
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jan 22 13:54:29 UTC 2019
Use OS prefix + "rtems" + $rtems_version as the default prefix to
automatically separate different RTEMS versions.
Close #3679.
---
source-builder/sb/options.py | 6 ++++++
1 file changed, 6 insertions(+)
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'
--
2.16.4
More information about the devel
mailing list