From patchwork Sun Jun 6 15:03:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1488310 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=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=HWcZg1TA; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fyfsf36k2z9sPf for ; Mon, 7 Jun 2021 01:04:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E0CC0830E6; Sun, 6 Jun 2021 15:04:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TfjkTHTSo9fc; Sun, 6 Jun 2021 15:04:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 3B016830CD; Sun, 6 Jun 2021 15:04:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 575381BF3F0 for ; Sun, 6 Jun 2021 15:03:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3EB8941D66 for ; Sun, 6 Jun 2021 15:03:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XyHPIEW7QWWW for ; Sun, 6 Jun 2021 15:03:58 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by smtp2.osuosl.org (Postfix) with ESMTPS id 04AC141D64 for ; Sun, 6 Jun 2021 15:03:57 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id f16-20020a05600c1550b02901b00c1be4abso521516wmg.2 for ; Sun, 06 Jun 2021 08:03:57 -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=Zwe0hniSpK+lWwKBdG5BqpnqatXNevwAw/fwe/Nrwd0=; b=HWcZg1TA8/X527lHAZfDa11AwOgA2oDqXKTuKX1ypZIWmc6rwRLVLmbG8Ov4igUIYG i1dtDrnPJcHQ5CGeL8lK9WvmS6/3NnEk1kLKUE7uGSejTHyQ97O4sMpeW9Wz//JyPNwv FuIr98uL/g8bZcSqgRPwjM/ZDhx4DWex6LyQusxaT7lVSPRJIJqCzxh5lwP3lVUY/ig0 UOGeugRCIdDLcdFmBWScerczzgZQNup2Ysv5rwMubQdqut+2BNmv3BaZ/n1+Kot+xl97 wMh2xinu2rfpiWsXcbt9SaQumJ81ZEYTbJ//FMgwVFxvLHlp4liQk7MFa8RK46Kk9iex JyyA== 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=Zwe0hniSpK+lWwKBdG5BqpnqatXNevwAw/fwe/Nrwd0=; b=slKiz2lZNJQJ8kR6mtcJt8aSYrEPQF1R+utOlZ2Z+km9LKiEe0mRUDIeK0632nMaxO 1nfMJUIhN5Gf5JjTBbMttcjlopEhX0AAUCgD5iuIMUvSW1cvEKLOVmxnyheZK3Uj83sY smBlsqmD0ptkhbgn3P4MTJnL+0TVvURRNRQ63lB+XVpehnGJJE0UldCP+T787mwltmBM y64mbsVc50Djp/TS3uN3uCRkPiRzck1Q4BKJI+1IvQ5QN10/ewc4z21+jH6lF2sUCrk1 vHzB+WS8f1lnRflZpFbLp2n0nkHChnFFcq+/STS8ogMv9Zb+OA9e2aeSLf+1xp0IcQJ5 Iq9w== X-Gm-Message-State: AOAM531kAuAUDzHJNUBaJfeWZn7ZmwqZXlaIt+rD6OsfL8AsoMwRq8SD JrBuPhquFD+ju+UNzAeXQ82SvKnNsJg= X-Google-Smtp-Source: ABdhPJxBV5c/PWRzSZk6t4K9iLxskPMP13/UQXah9if9RgFCdodZVr1jUvw2ftAwlfXV901fzPdPEA== X-Received: by 2002:a7b:c3d8:: with SMTP id t24mr13029755wmj.77.1622991836098; Sun, 06 Jun 2021 08:03:56 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a180022164e4eb697b4ce.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce]) by smtp.gmail.com with ESMTPSA id t14sm12407070wra.60.2021.06.06.08.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 08:03:55 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 6 Jun 2021 17:03:50 +0200 Message-Id: <20210606150351.423542-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 1/2] package/gdb: enable gdbserver support for riscv 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: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" It turn out that gdbserver support for riscv is available since 10.1 release, since commit [1] When BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS is not enabled, gdb will use the stable version (9.x) where gdbserver for riscv is not available. When BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS enabled, only allow gdb 10.1 in version choice and allow enabling gdbserver for the target. [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=bf84f7066626c78884436e1c39fb60f04c665f21 Signed-off-by: Romain Naour Reviewed-by: Alistair Francis --- git tag --contains bf84f7066626c78884436e1c39fb60f04c665f21 returns gdb-10.1-release tag as the oldest containing this commit. --- package/gdb/Config.in | 6 +++--- package/gdb/Config.in.host | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package/gdb/Config.in b/package/gdb/Config.in index 262740fc4c..68a24e0b36 100644 --- a/package/gdb/Config.in +++ b/package/gdb/Config.in @@ -19,8 +19,8 @@ config BR2_PACKAGE_GDB depends on BR2_PACKAGE_GDB_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 depends on BR2_INSTALL_LIBSTDCPP - # no gdbserver on riscv - select BR2_PACKAGE_GDB_DEBUGGER if BR2_riscv + # no gdbserver on riscv until 10.1 release + select BR2_PACKAGE_GDB_DEBUGGER if BR2_riscv && !BR2_GDB_VERSION_10 # 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. @@ -47,7 +47,7 @@ if BR2_PACKAGE_GDB config BR2_PACKAGE_GDB_SERVER bool "gdbserver" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY - depends on !BR2_riscv + depends on !BR2_riscv || BR2_riscv && BR2_GDB_VERSION_10 help Build the gdbserver stub to run on the target. A full gdb is needed to debug the progam. diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 07e75b2c0e..5aead236d0 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -4,7 +4,6 @@ config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT) depends on !BR2_microblaze depends on !BR2_or1k - depends on !BR2_riscv depends on !BR2_nds32 comment "Host GDB Options" @@ -70,9 +69,11 @@ choice config BR2_GDB_VERSION_8_3 bool "gdb 8.3.x" + depends on !BR2_riscv config BR2_GDB_VERSION_9_2 bool "gdb 9.2.x" + depends on !BR2_riscv config BR2_GDB_VERSION_10 bool "gdb 10.x" From patchwork Sun Jun 6 15:03:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1488311 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=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=HJJM0jAg; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fyfss1yw7z9sPf for ; Mon, 7 Jun 2021 01:04:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 5FC0F6069D; Sun, 6 Jun 2021 15:04:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m2vh1joPw4fT; Sun, 6 Jun 2021 15:04:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id B3C6E6078E; Sun, 6 Jun 2021 15:04:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 979141BF3F0 for ; Sun, 6 Jun 2021 15:04:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 7E54741D64 for ; Sun, 6 Jun 2021 15:03:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PCFbf9LIMfZQ for ; Sun, 6 Jun 2021 15:03:58 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by smtp2.osuosl.org (Postfix) with ESMTPS id 8AC6041D65 for ; Sun, 6 Jun 2021 15:03:58 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id b145-20020a1c80970000b029019c8c824054so10893136wmd.5 for ; Sun, 06 Jun 2021 08:03:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=+sGjwPkjgdGzg7Yv+8YVFJa9Q56MhPIuWsd8ey5i0U0=; b=HJJM0jAgkL7Yis++4Ugj56JYNvZ21PlfqeJKTDwzpG9PZGa+BVHuD2oU03HsY2YYxc 9zoonTSgYMB6Q+HbJMF6KnVPDzZYpw8PRHUp+g6l6WGGk/v6Ay1aJ6vAE5KJlKAdHxCO v8OroDs2B1LVRh86Wj+nWFfl1kADQYyBH8KQY4L4yVnsBKdyc2gOIjop064iuUnJrq86 rQPMlgNuWOnihmK1j2TdBX1/A5i6mvsGEb25Y1Q+pt7T+Ny2q6KSfNVpJMcaiBTugpgB fjWqW3U3C+VtCB1nHsKxc9/0XEeC+Uh9RJn/nJdJMA+RnbE98tdBJx5Pl2W/hVS8vA+t j7VA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=+sGjwPkjgdGzg7Yv+8YVFJa9Q56MhPIuWsd8ey5i0U0=; b=KHfPRLJS+Ab3UUcrolbqMtuv4hKBbVNuKuoc9lrDP9i0+AhgUyGKNPKIOekFT3sSN6 rqwo6gVwwXz3FFqmJLsuu/3aK6nN4yTRQfPdKlZKxIJ+bOXScMJNcNAjG7dmwJNkv+6W eqs5ATATN/h2lsRY00DkotPk8mIv1JI10CYwT38t5ML2f7hdNwP4L9eK5C+BO97oOzQ9 n/SI6h9Qhy5zM9f/8Nd1uldci4bDvv8Nro4kNEKXw+bka8+hQUuovKIbkUOu6bVp7fzN ciPI8R6Ss6sWA9gwstCzqL+7S8Jjm5oA/MqLliKt5u6d3M/B+zu0Ut7Y7d6km4W2M560 MZlA== X-Gm-Message-State: AOAM531PwBIIr6zoxPVClbAIJNEmbF7UlOu/yDADp2zWIiXZJKWdcd1e z5Bjbc71L0X+qdebh1KgEIi+P1JYQnA= X-Google-Smtp-Source: ABdhPJy5iuC0DBIWCPynUlW93Uqj2aegGLZfUqWpDR4jqQUj2Nf9iGO8IdUV5fVm8sHp8oh0B405BA== X-Received: by 2002:a1c:4b0d:: with SMTP id y13mr12665382wma.179.1622991836843; Sun, 06 Jun 2021 08:03:56 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a180022164e4eb697b4ce.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce]) by smtp.gmail.com with ESMTPSA id t14sm12407070wra.60.2021.06.06.08.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 08:03:56 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 6 Jun 2021 17:03:51 +0200 Message-Id: <20210606150351.423542-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210606150351.423542-1-romain.naour@gmail.com> References: <20210606150351.423542-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 2/2] package/gdb: improve gdb version choice comment 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: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The comment has been introduced by commit [1] where the latest gdb version has been used when cross-gdb is not enabled. But since then the gdb package doesn't use the latest gdb version when cross-gdb is not enabled. It's the "stable" version. [1] https://git.buildroot.net/buildroot/commit/?id=fda818390b5e6a585608f4523356eafa0c587f53 Signed-off-by: Romain Naour Cc: Arnout Vandecappelle (Essensium/Mind) --- package/gdb/Config.in.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 5aead236d0..6e807b33ed 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -82,7 +82,7 @@ endchoice endif -# If cross-gdb is not enabled, the latest working version is chosen. +# If cross-gdb is not enabled, the latest stable version is chosen. config BR2_GDB_VERSION string default "arc-2020.09-release-gdb" if BR2_arc