From patchwork Fri Aug 15 22:21:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 380434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7906914003E for ; Sat, 16 Aug 2014 08:22:30 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=nqzP0ZDfkBJfv9aEPAPzH2fA/WXEPgd oce+MDwxTiaGbonKlUDFb3eA+gyPtkNnT4zIpNicG9a6k+tty2yfqym6qgKvanW+ g99zj7WeYW75j7z3ZWCJvFSlfHEZ45h+gGAE1Fu8JtXssuUqp95Y32tUy7ffNHtm IpyqvwAJLR0s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=fIDe6kMd7O3s6KdaHx725ElGd64=; b=RT2NB p4cBjdwxZobUHvNGVuNrdPJexINzV1AUyrYwsZb+di5RRsX63MkLkWFswA1Qx78L GframW50kdlsBwadeZ8DttmLObTcgZMNXyXKlmhJbcW6ZdGRKuPeiIkaRVM7rD6x X/230RM2Aidtt85I84UrhNjUd7TtyEasN61noI= Received: (qmail 6574 invoked by alias); 15 Aug 2014 22:21:42 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 6380 invoked by uid 89); 15 Aug 2014 22:21:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f180.google.com Received: from mail-pd0-f180.google.com (HELO mail-pd0-f180.google.com) (209.85.192.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 15 Aug 2014 22:21:40 +0000 Received: by mail-pd0-f180.google.com with SMTP id v10so4038510pde.39 for ; Fri, 15 Aug 2014 15:21:38 -0700 (PDT) X-Received: by 10.66.141.39 with SMTP id rl7mr1286467pab.8.1408141298611; Fri, 15 Aug 2014 15:21:38 -0700 (PDT) Received: from localhost.localdomain ([50.245.130.35]) by mx.google.com with ESMTPSA id xc5sm8920918pbc.66.2014.08.15.15.21.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Aug 2014 15:21:38 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 3/3] [config/gdb] Add GDB_HAS_PYTHON Date: Fri, 15 Aug 2014 15:21:30 -0700 Message-Id: <1408141290-19515-4-git-send-email-bryanhundven@gmail.com> In-Reply-To: <1408141290-19515-1-git-send-email-bryanhundven@gmail.com> References: <1408141290-19515-1-git-send-email-bryanhundven@gmail.com> X-IsSubscribed: yes Add a Kconfig boolean to enable python, only if GDB_7_0_or_later. Signed-off-by: Bryan Hundven --- config/debug/gdb.in | 4 ++++ config/debug/gdb.in.cross | 1 + 2 files changed, 5 insertions(+) diff --git a/config/debug/gdb.in b/config/debug/gdb.in index 26884ab..6f39196 100644 --- a/config/debug/gdb.in +++ b/config/debug/gdb.in @@ -176,6 +176,7 @@ config GDB_7_1_or_later config GDB_7_0_or_later bool select GDB_HAS_PKGVERSION_BUGURL + select GDB_HAS_PYTHON select GDB_INSTALL_GDBINIT select GDB_6_8_or_later @@ -185,6 +186,9 @@ config GDB_6_8_or_later config GDB_HAS_PKGVERSION_BUGURL bool +config GDB_HAS_PYTHON + bool + config GDB_INSTALL_GDBINIT bool diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross index 7e66ce5..549cba2 100644 --- a/config/debug/gdb.in.cross +++ b/config/debug/gdb.in.cross @@ -35,6 +35,7 @@ config GDB_CROSS_SIM config GDB_CROSS_PYTHON bool prompt "Enable python scripting" + depends on GDB_HAS_PYTHON depends on ! GDB_CROSS_STATIC default y help