* [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support
@ 2012-05-28 12:42 Bart vdr. Meulen
2012-05-30 16:58 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Bart vdr. Meulen @ 2012-05-28 12:42 UTC (permalink / raw)
To: ptxdist
From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
Add options so gdb is be build with expat and python support explicit.
If not enabled explicit gdb tries to detect whether expat and/or python
libraries are available which may vary on the order the packages are build
by ptxdist. Enforcing the build order prevents this.
Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
rules/gdb.in | 19 +++++++++++++++++++
rules/gdb.make | 13 +++++++++++++
2 files changed, 32 insertions(+)
diff --git a/rules/gdb.in b/rules/gdb.in
index 65c6fff..127ff39 100644
--- a/rules/gdb.in
+++ b/rules/gdb.in
@@ -7,6 +7,8 @@ menuconfig GDB
select LIBC_DL
select GCCLIBS_GCC_S
select NCURSES
+ select EXPAT if GDB_ENABLE_EXPAT
+ select PYTHON if GDB_ENABLE_PYTHON
help
The GNU Debugger
@@ -18,6 +20,23 @@ menuconfig GDB
if GDB
+config GDB_ENABLE_EXPAT
+ prompt "enable expat support"
+ bool
+ help
+ Expat is used for:
+ Remote protocol memory maps
+ Target descriptions
+ Remote shared library lists
+ MS-Windows shared libraries
+ Traceframe info
+
+config GDB_ENABLE_PYTHON
+ prompt "enable python support"
+ bool
+ help
+ You can script gdb using the Python programming language
+
config GDB_SHARED
bool "build shared"
default y
diff --git a/rules/gdb.make b/rules/gdb.make
index ecbe020..0741929 100644
--- a/rules/gdb.make
+++ b/rules/gdb.make
@@ -57,6 +57,19 @@ GDB_AUTOCONF := \
--disable-werror \
--without-expat
+ifdef PTXCONF_GDB_ENABLE_EXPAT
+GDB_AUTOCONF += --with-expat=yes
+GDB_AUTOCONF += --with-libexpat_prefix=$(SYSROOT)/usr
+else
+GDB_AUTOCONF += --with-expat=no
+endif
+
+ifdef PTXCONF_GDB_ENABLE_PYTHON
+GDB_AUTOCONF += --with-python
+else
+GDB_AUTOCONF += --with-python=no
+endif
+
GDB_BUILD_OOT := YES
# ----------------------------------------------------------------------------
--
1.7.9.5
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support
2012-05-28 12:42 [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support Bart vdr. Meulen
@ 2012-05-30 16:58 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2012-05-30 16:58 UTC (permalink / raw)
To: ptxdist
On Mon, May 28, 2012 at 02:42:43PM +0200, Bart vdr. Meulen wrote:
> From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
>
> Add options so gdb is be build with expat and python support explicit.
> If not enabled explicit gdb tries to detect whether expat and/or python
> libraries are available which may vary on the order the packages are build
> by ptxdist. Enforcing the build order prevents this.
>
> Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
> ---
> rules/gdb.in | 19 +++++++++++++++++++
> rules/gdb.make | 13 +++++++++++++
> 2 files changed, 32 insertions(+)
>
> diff --git a/rules/gdb.in b/rules/gdb.in
> index 65c6fff..127ff39 100644
> --- a/rules/gdb.in
> +++ b/rules/gdb.in
> @@ -7,6 +7,8 @@ menuconfig GDB
> select LIBC_DL
> select GCCLIBS_GCC_S
> select NCURSES
> + select EXPAT if GDB_ENABLE_EXPAT
> + select PYTHON if GDB_ENABLE_PYTHON
align the 'if' with <tab>
> help
> The GNU Debugger
>
> @@ -18,6 +20,23 @@ menuconfig GDB
>
> if GDB
>
> +config GDB_ENABLE_EXPAT
> + prompt "enable expat support"
> + bool
> + help
> + Expat is used for:
> + Remote protocol memory maps
> + Target descriptions
> + Remote shared library lists
> + MS-Windows shared libraries
> + Traceframe info
> +
> +config GDB_ENABLE_PYTHON
> + prompt "enable python support"
> + bool
> + help
> + You can script gdb using the Python programming language
> +
> config GDB_SHARED
> bool "build shared"
> default y
> diff --git a/rules/gdb.make b/rules/gdb.make
> index ecbe020..0741929 100644
> --- a/rules/gdb.make
> +++ b/rules/gdb.make
> @@ -57,6 +57,19 @@ GDB_AUTOCONF := \
> --disable-werror \
> --without-expat
>
> +ifdef PTXCONF_GDB_ENABLE_EXPAT
> +GDB_AUTOCONF += --with-expat=yes
use ptx/wwo
> +GDB_AUTOCONF += --with-libexpat_prefix=$(SYSROOT)/usr
--with-libexpat-prefix= I think, and is this really needed? $(SYSROOT)/usr
should be in al relevant paths.
Michael
> +else
> +GDB_AUTOCONF += --with-expat=no
> +endif
> +
> +ifdef PTXCONF_GDB_ENABLE_PYTHON
> +GDB_AUTOCONF += --with-python
> +else
> +GDB_AUTOCONF += --with-python=no
> +endif
> +
> GDB_BUILD_OOT := YES
>
> # ----------------------------------------------------------------------------
> --
> 1.7.9.5
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-30 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 12:42 [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support Bart vdr. Meulen
2012-05-30 16:58 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox