From patchwork Thu Mar 19 12:50:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 1258188 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LLrKaVJ6; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48jmwq1HV2z9sQt for ; Thu, 19 Mar 2020 23:50:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1E0D920354; Thu, 19 Mar 2020 12:50:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X4ckqubi-qjm; Thu, 19 Mar 2020 12:50:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A0D36204D5; Thu, 19 Mar 2020 12:50:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2D3D71BF2FE for ; Thu, 19 Mar 2020 12:50:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 28FBC87E15 for ; Thu, 19 Mar 2020 12:50:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zpBG3N6xcV6L for ; Thu, 19 Mar 2020 12:50:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 49B598789F for ; Thu, 19 Mar 2020 12:50:44 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id f130so983345wmf.4 for ; Thu, 19 Mar 2020 05:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LQiSK7kgJymJIXtVF2AjCkpva8ZYzL8gX1itB2cQ4s8=; b=LLrKaVJ6Lims6TBDufFGzX8B2mv1rEIw9TNelMVfpYEd39TxCtcI2N9X+VKj8fu96Z /uHIStDdUiGu929+neJuE6rFDae7ZDwuypqstm9m7CnTtxtnbGCM+Rjab87UNQBeekGR BJSGQw6uAEOWYa2ra7H7q6B2b9HiREXxfr1aMWD+YLWgY8sBJCtmV45cBjpwOZlp8bc9 g8ec2H+m0tDmyqX22MXqCkkkLl4W8I1IyLmwSnck9HS7Ynv40ifC1z4KGGb5zYGQg0Rs Ac2mkEITzZbcsc3VRYz/v8PyiEdTHxZ4yrAlYlt+9jQ9sZXByoIQuzumpEinC2KGpF6/ yysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LQiSK7kgJymJIXtVF2AjCkpva8ZYzL8gX1itB2cQ4s8=; b=MdnwZnRdhq/37Rnz3r5FINY7WBq74q8MsUJC/TWi9TMYrlj08MWQgVnr5ngfFXOwB/ PpslPgbDK99xB6CvCQAwIqeR7LNc26rMidxOi4rFlMskXaOZjmWW+gbtchkN6DPU/V4o Qkf3AXL3DLN1nKhVKQDyiSD6hR0OUHzk1XVStv+9H85x15uTa/b5ylP0DZjCtzzpRtDc TQeXPRID8XCRuqosj7qQKTGDrbb2NKPnlsHaNeh747gB1ZnJGV9TWjqnMlQv6eCe0qx7 UkTF9ylDBRfahP8kgBdhwKoLaUP+7nkl4v+Yfpc12aNluwVm/ZqJHt9uIYeoRkwFkWt1 7/Mw== X-Gm-Message-State: ANhLgQ1BlWFFNz/EShmJDyJi1h8hNJyAqhKxFK8OPSlgrSnpMUzyq/xG Tu7dw+OWyNBOWZ1Mpn+oHR2W8O1pSB4= X-Google-Smtp-Source: ADFU+vsmzO29EdYUXscg/ajZ2fn7PgNpRrIOxaq+NEQVsbBjAu3SinpVIYLuIDvUbGUP6ZxXEXA02Q== X-Received: by 2002:a1c:c257:: with SMTP id s84mr3566748wmf.0.1584622241377; Thu, 19 Mar 2020 05:50:41 -0700 (PDT) Received: from localhost.localdomain ([2a00:a040:198:f262:a2ab:b9d6:72c0:a2ed]) by smtp.gmail.com with ESMTPSA id y12sm2788553wmi.48.2020.03.19.05.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 05:50:40 -0700 (PDT) From: Ramon Fried To: buildroot@uclibc.org Date: Thu, 19 Mar 2020 14:50:37 +0200 Message-Id: <20200319125037.12274-1-rfried.dev@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/gdb: Add support for host-gdb with python3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ramon Fried Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" host-gdb was limited to link only with Python 2 although it's possible to build Python 3 for host. Add the ability to link with Python 3. Signed-off-by: Ramon Fried --- package/gdb/Config.in.host | 9 +++++++-- package/gdb/gdb.mk | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 5315f10493..fe9aff4df7 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -33,9 +33,14 @@ config BR2_PACKAGE_HOST_GDB_TUI This option enables terminal user interface (TUI) for gdb config BR2_PACKAGE_HOST_GDB_PYTHON - bool "Python support" + bool "Python 2 support" help - This option enables the Python support in the cross gdb. + This option enables the Python 2 support in the cross gdb. + +config BR2_PACKAGE_HOST_GDB_PYTHON3 + bool "Python 3 support" + help + This option enables the Python 3 support in the cross gdb. config BR2_PACKAGE_HOST_GDB_SIM bool "Simulator support" diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 01f7e14460..8c74a0e2f6 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -238,6 +238,9 @@ endif ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y) HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python2 HOST_GDB_DEPENDENCIES += host-python +else ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON3),y) +HOST_GDB_CONF_OPTS += --with-python=$(HOST_DIR)/bin/python3 +HOST_GDB_DEPENDENCIES += host-python3 else HOST_GDB_CONF_OPTS += --without-python endif