From patchwork Mon Nov 26 14:24:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 1003263 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.b="Ndtmz4iK"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 433Tjf0FTwz9s0t for ; Tue, 27 Nov 2018 01:25:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5B83787EAB; Mon, 26 Nov 2018 14:25:55 +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 6jV6R9X8k95M; Mon, 26 Nov 2018 14:25:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D35D587EA1; Mon, 26 Nov 2018 14:25:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 744331C2780 for ; Mon, 26 Nov 2018 14:25:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 71A918666A for ; Mon, 26 Nov 2018 14:25:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dc2xKnkM_pRz for ; Mon, 26 Nov 2018 14:25:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BF26A86662 for ; Mon, 26 Nov 2018 14:25:53 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id t27so11158422wra.6 for ; Mon, 26 Nov 2018 06:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=48H8a15lnsetUkGv/dlSjf2SWV/9g7R2vBetdrWqiCc=; b=Ndtmz4iKT9xyw6Uei3+2UGv+cMLVyedEJxTkyREszz66/gFcoekyWX+8aLp7RoyEil fWt4NUX71hUmcZoDMTnLcSc8im2EMaqeLN0DbiEwODoSM8BSDmhXxnjNysPJFlQDa4yQ vEJyzaWV416nf/szpHlNYetxt0wBu9dHkEnIRBi2UGqZ93f1EdiG31SOoEF9yWUe9bSQ Pj6wQDP7oS4GwEYdxtTlKQ4uAVgFTRNnbv4iv2Ytt2F6FGin1BDcl1tIByDgn+Z4G52q x+Vf7EFKg9tFenWg891IVP5rcOWw7J832P1m6/CwNUh2RfVuNweQSP7E2hnphtVntJLw BvkA== 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=48H8a15lnsetUkGv/dlSjf2SWV/9g7R2vBetdrWqiCc=; b=BbFwHybI5TZjDPnEXjlsdQDMZFmZYrz9L2CLMxO9hNvFouPSUIPBO14Hcb3NfUtwjA gO0CojV0Iwt1iuj4dqldQU7fbFGXqpEXkyG0jq/Ltiog/RabGDAmm11m7MYvTmBQCnsh 07h5HORR1DY7vyaaS0kvu7eQWY2v5u7kEjsz5tSUZikITgUvrnvNgvTln8g4OjKjBfL3 zxihxlT3HTApiCtWmc/PKyjeAsrXBMHS9CF4HaKSfFJCAA4E+N7FiIneLidbxCBa6aRc box9H6V08j5U02ue5cE9SpmzEjtMHh2cTwekWz80ZJqECtxTxHGG0OGBHpqnQWAGg2GO /R9g== X-Gm-Message-State: AA+aEWZ40+O4VicImX9Xl3iSYaUvFKN1rGIMgKPtROlcZRKCArYS0yv0 /TKYkQJcceA6fHHkM36gx60uvmuYgN0= X-Google-Smtp-Source: AFSGD/VZPBWdhjrFyhy7VVSU9b1scBiChPb7sjKQi84XSEVE76nYk8cmk0lAsBQKtaY81aU428fBqA== X-Received: by 2002:a5d:6450:: with SMTP id d16mr23763735wrw.64.1543242351934; Mon, 26 Nov 2018 06:25:51 -0800 (PST) Received: from godzilla.lym.embecosm.com ([2a02:390:741d:1:d940:2a3b:f5be:ffd]) by smtp.gmail.com with ESMTPSA id j14sm197185wrv.96.2018.11.26.06.25.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 06:25:50 -0800 (PST) From: Mark Corbin To: buildroot@buildroot.org Date: Mon, 26 Nov 2018 14:24:38 +0000 Message-Id: <20181126142438.20337-1-mark.corbin@embecosm.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/gdb: prevent gdbserver being selected for RISC-V builds 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: Mark Corbin Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" There is currently no version of gdbserver for RISC-V. Until this is implemented we will prevent both the direct and indirect selection of gdbserver for RISC-V builds. In practice this means that 'cross gdb for the host' cannot be selected and that 'full debugger' must be automatically selected for the gdb target package. Signed-off-by: Mark Corbin Reviewed-by: Matt Weber --- package/gdb/Config.in | 5 ++++- package/gdb/Config.in.host | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/gdb/Config.in b/package/gdb/Config.in index 55c1b194ce..b3668aeb24 100644 --- a/package/gdb/Config.in +++ b/package/gdb/Config.in @@ -24,7 +24,9 @@ config BR2_PACKAGE_GDB # target, we don't allow building a separate gdbserver. The # one from the external toolchain should be used. select BR2_PACKAGE_GDB_SERVER if \ - (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY) + (!BR2_PACKAGE_GDB_DEBUGGER && !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY && \ + !BR2_riscv) + select BR2_PACKAGE_GDB_DEBUGGER if BR2_riscv help GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or @@ -46,6 +48,7 @@ if BR2_PACKAGE_GDB config BR2_PACKAGE_GDB_SERVER bool "gdbserver" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY + depends on !BR2_riscv 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 df8817d91d..ade2371d5c 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -7,6 +7,7 @@ config BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS depends on !BR2_microblaze depends on !BR2_nios2 depends on !BR2_or1k + depends on !BR2_riscv comment "Host GDB Options" depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY