[PATCH 2/2] Change default prefix
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jan 18 09:09:38 UTC 2019
On 17/01/2019 11:34, Sebastian Huber wrote:
> Use OS prefix + "rtems" + $rtems_version as the default prefix to
> automatically separate different RTEMS versions.
>
> Close #3675.
> ---
> 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 c5fcabe..e08b088 100644
> --- a/source-builder/sb/options.py
> +++ b/source-builder/sb/options.py
> @@ -307,6 +307,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'
I would like to back port this change to all open RSB branches. What
didn't work is this:
../source-builder/sb-set-builder --rtems-version=6 6/rtems-sparc
error: unknown option: --rtems-version
Build FAILED
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list