From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-f178.google.com ([209.85.212.178]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SYzIN-00089x-5w for ptxdist@pengutronix.de; Mon, 28 May 2012 14:44:00 +0200 Received: by wibhn6 with SMTP id hn6so1222295wib.7 for ; Mon, 28 May 2012 05:43:27 -0700 (PDT) From: "Bart vdr. Meulen" Date: Mon, 28 May 2012 14:42:43 +0200 Message-Id: <1338208981-8681-17-git-send-email-bartvdrmeulen@gmail.com> Subject: [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de From: "Bart vdr. Meulen" 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 --- 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