From: Ramon Fried <rfried.dev@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3
Date: Thu, 19 Mar 2020 14:50:37 +0200 [thread overview]
Message-ID: <20200319125037.12274-1-rfried.dev@gmail.com> (raw)
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
next reply other threads:[~2020-03-19 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 12:50 Ramon Fried [this message]
2020-03-22 17:34 ` [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3 Romain Naour
2020-03-23 6:46 ` Ramon Fried
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200319125037.12274-1-rfried.dev@gmail.com \
--to=rfried.dev@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox