* [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3
@ 2020-03-19 12:50 Ramon Fried
2020-03-22 17:34 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Ramon Fried @ 2020-03-19 12:50 UTC (permalink / raw)
To: buildroot
host-gdb was limited to link only with Python 2 although
it's possible to build Python 3 for host.
Add the ability to link with Python 3.
Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
---
package/gdb/Config.in.host | 9 +++++++--
package/gdb/gdb.mk | 3 +++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index 5315f10493..fe9aff4df7 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI
This option enables terminal user interface (TUI) for gdb
config BR2_PACKAGE_HOST_GDB_PYTHON
- bool "Python support"
+ bool "Python 2 support"
help
- This option enables the Python support in the cross gdb.
+ This option enables the Python 2 support in the cross gdb.
+
+config BR2_PACKAGE_HOST_GDB_PYTHON3
+ bool "Python 3 support"
+ help
+ This option enables the Python 3 support in the cross gdb.
config BR2_PACKAGE_HOST_GDB_SIM
bool "Simulator support"
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 01f7e14460..8c74a0e2f6 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -238,6 +238,9 @@ endif
ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y)
HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2
HOST_GDB_DEPENDENCIES += host-python
+else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y)
+HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3
+HOST_GDB_DEPENDENCIES += host-python3
else
HOST_GDB_CONF_OPTS += --without-python
endif
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3
2020-03-19 12:50 [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3 Ramon Fried
@ 2020-03-22 17:34 ` Romain Naour
2020-03-23 6:46 ` Ramon Fried
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2020-03-22 17:34 UTC (permalink / raw)
To: buildroot
Hi Ramon,
Le 19/03/2020 ? 13:50, Ramon Fried a ?crit?:
> host-gdb was limited to link only with Python 2 although
> it's possible to build Python 3 for host.
> Add the ability to link with Python 3.
>
> Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
> ---
> package/gdb/Config.in.host | 9 +++++++--
> package/gdb/gdb.mk | 3 +++
> 2 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
> index 5315f10493..fe9aff4df7 100644
> --- a/package/gdb/Config.in.host
> +++ b/package/gdb/Config.in.host
> @@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI
> This option enables terminal user interface (TUI) for gdb
>
> config BR2_PACKAGE_HOST_GDB_PYTHON
> - bool "Python support"
> + bool "Python 2 support"
> help
> - This option enables the Python support in the cross gdb.
> + This option enables the Python 2 support in the cross gdb.
> +
> +config BR2_PACKAGE_HOST_GDB_PYTHON3
> + bool "Python 3 support"
> + help
> + This option enables the Python 3 support in the cross gdb.
Theses option must be exclusive. If you're selecting both only
BR2_PACKAGE_HOST_GDB_PYTHON will be taken into account.
Best regards,
Romain
>
> config BR2_PACKAGE_HOST_GDB_SIM
> bool "Simulator support"
> diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
> index 01f7e14460..8c74a0e2f6 100644
> --- a/package/gdb/gdb.mk
> +++ b/package/gdb/gdb.mk
> @@ -238,6 +238,9 @@ endif
> ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y)
> HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2
> HOST_GDB_DEPENDENCIES += host-python
> +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y)
> +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3
> +HOST_GDB_DEPENDENCIES += host-python3
> else
> HOST_GDB_CONF_OPTS += --without-python
> endif
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3
2020-03-22 17:34 ` Romain Naour
@ 2020-03-23 6:46 ` Ramon Fried
0 siblings, 0 replies; 3+ messages in thread
From: Ramon Fried @ 2020-03-23 6:46 UTC (permalink / raw)
To: buildroot
On Sun, Mar 22, 2020 at 7:34 PM Romain Naour <romain.naour@gmail.com> wrote:
>
> Hi Ramon,
>
> Le 19/03/2020 ? 13:50, Ramon Fried a ?crit :
> > host-gdb was limited to link only with Python 2 although
> > it's possible to build Python 3 for host.
> > Add the ability to link with Python 3.
> >
> > Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
> > ---
> > package/gdb/Config.in.host | 9 +++++++--
> > package/gdb/gdb.mk | 3 +++
> > 2 files changed, 10 insertions(+), 2 deletions(-)
> >
> > diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
> > index 5315f10493..fe9aff4df7 100644
> > --- a/package/gdb/Config.in.host
> > +++ b/package/gdb/Config.in.host
> > @@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI
> > This option enables terminal user interface (TUI) for gdb
> >
> > config BR2_PACKAGE_HOST_GDB_PYTHON
> > - bool "Python support"
> > + bool "Python 2 support"
> > help
> > - This option enables the Python support in the cross gdb.
> > + This option enables the Python 2 support in the cross gdb.
> > +
> > +config BR2_PACKAGE_HOST_GDB_PYTHON3
> > + bool "Python 3 support"
> > + help
> > + This option enables the Python 3 support in the cross gdb.
>
> Theses option must be exclusive. If you're selecting both only
> BR2_PACKAGE_HOST_GDB_PYTHON will be taken into account.
>
> Best regards,
> Romain
Thanks, sent v2.
>
> >
> > config BR2_PACKAGE_HOST_GDB_SIM
> > bool "Simulator support"
> > diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
> > index 01f7e14460..8c74a0e2f6 100644
> > --- a/package/gdb/gdb.mk
> > +++ b/package/gdb/gdb.mk
> > @@ -238,6 +238,9 @@ endif
> > ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y)
> > HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2
> > HOST_GDB_DEPENDENCIES += host-python
> > +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y)
> > +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3
> > +HOST_GDB_DEPENDENCIES += host-python3
> > else
> > HOST_GDB_CONF_OPTS += --without-python
> > endif
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-23 6:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 12:50 [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3 Ramon Fried
2020-03-22 17:34 ` Romain Naour
2020-03-23 6:46 ` Ramon Fried
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.