From patchwork Sat Jun 3 21:05:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 770835 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wgDBb2bmMz9s82 for ; Sun, 4 Jun 2017 07:05:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5EA7587C87; Sat, 3 Jun 2017 21:05:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ODmfDcC7eV95; Sat, 3 Jun 2017 21:05:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 938508767F; Sat, 3 Jun 2017 21:05:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9FB011C3EC7 for ; Sat, 3 Jun 2017 21:05:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 99608873E2 for ; Sat, 3 Jun 2017 21:05:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ue7bGqcPPg8y for ; Sat, 3 Jun 2017 21:05:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by hemlock.osuosl.org (Postfix) with ESMTP id C4E1786D8E for ; Sat, 3 Jun 2017 21:05:28 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 95F0C212E7; Sat, 3 Jun 2017 23:05:25 +0200 (CEST) Received: from localhost (132.230.147.77.rev.sfr.net [77.147.230.132]) by mail.free-electrons.com (Postfix) with ESMTPSA id 4255020E1A; Sat, 3 Jun 2017 23:05:15 +0200 (CEST) From: Thomas Petazzoni To: buildroot@buildroot.org Date: Sat, 3 Jun 2017 23:05:11 +0200 Message-Id: <1496523913-19323-1-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.7.4 Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH 1/3] gdb: introduce BR2_PACKAGE_GDB_ARCH_SUPPORTS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Before adding more architecture dependencies to gdb, let's introduce a BR2_PACKAGE_GDB_ARCH_SUPPORTS, to avoid duplicating this list of dependencies between the Config.in comment and the main Config.in option. Signed-off-by: Thomas Petazzoni --- package/gdb/Config.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package/gdb/Config.in b/package/gdb/Config.in index 026cdea..3acc6ef 100644 --- a/package/gdb/Config.in +++ b/package/gdb/Config.in @@ -1,11 +1,17 @@ +config BR2_PACKAGE_GDB_ARCH_SUPPORTS + bool + default y + depends on !BR2_bfin + depends on !BR2_nios2 + comment "gdb/gdbserver needs a toolchain w/ threads, threads debug" - depends on !BR2_nios2 && !BR2_bfin + depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_THREADS_DEBUG config BR2_PACKAGE_GDB bool "gdb" depends on BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_HAS_THREADS_DEBUG - depends on !BR2_nios2 && !BR2_bfin + depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS # When the external toolchain gdbserver is copied to the # target, we don't allow building a separate gdbserver. The # one from the external toolchain should be used.