diff options
author | Chris Johns <chrisj@rtems.org> | 2023-11-29 14:46:18 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-11-30 09:14:37 +1100 |
commit | a970057f468d361fa122968fb690019a212ecdaa (patch) | |
tree | 97c9a0733398247f8316de86243035b5254f500c /source-builder | |
parent | sb: No hash on a package is an error (diff) | |
download | rtems-source-builder-a970057f468d361fa122968fb690019a212ecdaa.tar.bz2 |
gdb: Add options to control the python version
The options are:
--with-python2
--with-python3
--with-python-version
Closes #4973
Diffstat (limited to 'source-builder')
-rw-r--r-- | source-builder/config/gdb-common-1.cfg | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source-builder/config/gdb-common-1.cfg b/source-builder/config/gdb-common-1.cfg index 0fea334..49bf673 100644 --- a/source-builder/config/gdb-common-1.cfg +++ b/source-builder/config/gdb-common-1.cfg @@ -44,6 +44,25 @@ # # 3. Search for 'python3' and if not found search for 'python2'. # +# User options to help find a suitable python: +# +# --with-python2 : name of a python2 command +# +# --with-python3 : name of a python2 command +# +# --with-python-version : name of a python command with a specific version +# +# For example `--with-python-version=python3.6 +# +%if %{defined with_python2} + %define gdb-python2 %{with_python2} +%endif +%if %{defined with_python3} + %define gdb-python3 %{with_python3} +%endif +%if %{defined with_python_version} + %define gdb-python-version %{with_python_version} +%endif %if %{defined gdb-python2} %define gdb-enable-python %{gdb_python2} %else |