[PATCH rtems-tools] rtemstoolkit: add override option for rtems_version
Gedare Bloom
gedare at rtems.org
Sat Apr 4 22:15:17 UTC 2020
Use in tester to allow defining custom rtems_version
to use in tools.
Closes #3671.
---
rtemstoolkit/options.py | 1 +
tester/rtems/version.cfg | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/rtemstoolkit/options.py b/rtemstoolkit/options.py
index 32a7016..e991bc8 100644
--- a/rtemstoolkit/options.py
+++ b/rtemstoolkit/options.py
@@ -80,6 +80,7 @@ class command_line(object):
self.long_opts = {
# key macro handler param defs init
'--jobs' : ('_jobs', self._lo_jobs, True, 'default', True),
+ '--rtems-version' : ('rtems_version', self._lo_string, True, None, False),
'--log' : ('_logfile', self._lo_string, True, None, False),
'--macros' : ('_macros', self._lo_string, True, None, False),
'--force' : ('_force', self._lo_bool, False, '0', True),
diff --git a/tester/rtems/version.cfg b/tester/rtems/version.cfg
index 2cd9073..0ca057e 100644
--- a/tester/rtems/version.cfg
+++ b/tester/rtems/version.cfg
@@ -32,4 +32,6 @@
# RTEMS Version
#
-%define rtems_version 5
+%if ! %{defined rtems_version}
+ %define rtems_version 5
+%endif
--
2.17.1
More information about the devel
mailing list