From patchwork Fri Aug 29 12:30:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kim_B=C3=B8ndergaard?= X-Patchwork-Id: 384221 X-Patchwork-Delegate: kiho@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 6A502140131 for ; Fri, 29 Aug 2014 22:31:08 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id B6E363FD95 for ; Fri, 29 Aug 2014 14:31:06 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id E7CA83FDB8 for ; Fri, 29 Aug 2014 14:31:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=2772; q=dns/txt; s=ironport2; t=1409315461; x=1440851461; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=rPhn27dRsgxgK+ibLbG8SMGFNmouOSvrs7H2oN7hEoo=; b=dmsaK1EFaO0UVD1uNqiz7vahfyh5ZuTkHUACf/rNXy6z6eSTSGs2CcXF tULmMdZs10hRLyg/oeDaGhs2xAaAHCntOg0LAocx+0ruzRPLdCUVdOUEa pcWv5FjJ7pc2CoFR9hj0o1XltX7U2cvzMVzwZ8bawDEQIuapmuAJBo7X5 8=; X-IronPort-AV: E=Sophos;i="5.04,424,1406584800"; d="scan'208";a="1010604" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 29 Aug 2014 14:31:00 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Fri, 29 Aug 2014 14:31:00 +0200 Received: by localhost (Postfix, from userid 30019) id 77FBA68230D; Fri, 29 Aug 2014 12:30:59 +0000 (UTC) From: =?UTF-8?q?Kim=20B=C3=B8ndergaard?= To: Subject: [PATCH 5/6] gdb: Fixup dependencies and add USE_gdb_tui flag Date: Fri, 29 Aug 2014 12:30:54 +0000 Message-ID: <4bafc84f5af7e62b8f647cb5fd822d0b251cec23.1409312414.git.kibo@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 Cc: Esben Haabendal X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Esben Haabendal Add USE_gdb_tui flag to enable gdb TUI support (curses based user interface). Default value is enabled on all platforms except mingw, where it is disabled for now. When pdcurses is added, it should also be enabled by default for mingw. Signed-off-by: Esben Haabendal --- recipes/gdb/gdb.inc | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/recipes/gdb/gdb.inc b/recipes/gdb/gdb.inc index ae5096b..d40dc56 100644 --- a/recipes/gdb/gdb.inc +++ b/recipes/gdb/gdb.inc @@ -4,8 +4,9 @@ LICENSE = "GPLv2 & GPLv3 & LGPLv2 & LGPLv3" RECIPE_TYPES = "machine canadian-cross" -GDB_DEPENDS = "host:libexpat host:libtermcap \ - host:libncurses host:libreadline host:libdl host:libm host:libc" +GDB_DEPENDS = "host:libc host:libm ${DEPENDS_HOST_OS} host:libexpat host:libreadline" +DEPENDS_HOST_OS = "host:libdl" +DEPENDS_HOST_OS:HOST_LIBC_mingw = "" DEPENDS = "${GDB_DEPENDS}" RDEPENDS_${PN} = "${GDB_DEPENDS}" @@ -14,17 +15,32 @@ inherit autotools auto-package-utils require conf/fetch/gnu.conf SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz" -EXTRA_OECONF = "--enable-tui --disable-gdbtk --disable-x --disable-werror \ +EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ --disable-multilib --disable-sim \ - --with-system-readline --with-curses --with-expat \ + --with-system-readline --with-expat \ --without-lzma --without-python" +RECIPE_FLAGS += "gdb_tui" +DEFAULT_USE_gdb_tui = "1" +DEFAULT_USE_gdb_tui:HOST_LIBC_mingw = "0" +GDB_DEPENDS += "${DEPENDS_TUI}" +DEPENDS_TERMCAP = "host:libtermcap" +DEPENDS_TERMCAP:HOST_LIBC_mingw = "" +DEPENDS_CURSES = "host:libncurses" +DEPENDS_TERMCAP:HOST_LIBC_mingw = "" +DEPENDS_TUI = "${DEPENDS_TERMCAP}" +DEPENDS_TUI:USE_gdb_tui = "${DEPENDS_CURSES}" + +EXTRA_OECONF_TUI:USE_gdb_tui = "--enable-tui --with-curses" +EXTRA_OECONF_TUI = "--disable-tui --without-curses" +EXTRA_OECONF += "${EXTRA_OECONF_TUI}" + AUTO_PACKAGE_UTILS = "gdb gdbserver gcore" AUTO_PACKAGE_UTILS:canadian-cross = "gdb" -AUTO_PACKAGE_UTILS_DEPENDS += "host:libc host:libdl" -AUTO_PACKAGE_UTILS_RDEPENDS += "host:libc host:libdl" -RDEPENDS_${PN}-gdb += "host:libreadline host:libncurses host:libm host:libexpat" - +AUTO_PACKAGE_UTILS_DEPENDS += "host:libc ${DEPENDS_HOST_OS}" +AUTO_PACKAGE_UTILS_RDEPENDS += "host:libc ${DEPENDS_HOST_OS}" +RDEPENDS_${PN}-gdb += "host:libreadline host:libm host:libexpat" +RDEPENDS_${PN}-gdb:>USE_gdb_tui = " host:libncurses" PACKAGES =+ "${PN}-python ${PN}-syscalls ${PN}-system-gdbinit" FILES_${PN}-python = "${datadir}/gdb/python/" FILES_${PN}-syscalls = "${datadir}/gdb/syscalls/"