From patchwork Tue Oct 29 08:55:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 69616 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 93EAA27BBEA; Tue, 29 Oct 2024 08:57:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0283B27BBE2 for ; Tue, 29 Oct 2024 08:57:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5i2E-0006GM-L6; Tue, 29 Oct 2024 04:57:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5i2B-0006G8-Ps for guix-patches@gnu.org; Tue, 29 Oct 2024 04:57:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5i2B-0000yh-F9 for guix-patches@gnu.org; Tue, 29 Oct 2024 04:57:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=N2wYBbsXEkbzFcz8PvMwI8rHcvoGR9j9V7njyAvgbvg=; b=vgoMA3LDu8SqjSR/kbFysZGaxbFoNoltdd1zFowdGkjd/jbC1yZDCHNnkC4ZDf7oCYkb/zWTAcjqSrAmNnjhi3JhmL5brbLzzk48t0WSqFYOGAqJY0KPc7N1UUoBrSZVvEW/hYymqhkcTbI+EAM56gkGe0WRoCium8pw64IfBD4l+I1wNTwAZm4km2Jt2wWOE1ZzwJ49Bm3FVj3No66f5MRq7OqeOwBtTFGolWdVAe8ue1FpwXW0+jnlD0c/ev4+NjuXpW19Mzb1L8ABSdqhKKeE0d9H8GHn2pQXWhLWRj/nV0J2Qs0BbTFkI+pqRzRkcDmCbUlNE9NFAaNjIvNI/Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5i2A-0003qF-Bo for guix-patches@gnu.org; Tue, 29 Oct 2024 04:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73717] [PATCH v1] gnu: Add yosys-clang. References: <8b52ca0f1d61c5ff14501fb72658b0bee716af13.1728459902.git.csantosb@inventati.org> In-Reply-To: <8b52ca0f1d61c5ff14501fb72658b0bee716af13.1728459902.git.csantosb@inventati.org> Resent-From: Cayetano Santos Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Tue, 29 Oct 2024 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73717 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73717@debbugs.gnu.org Cc: Cayetano Santos , ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by 73717-submit@debbugs.gnu.org id=B73717.173019217714703 (code B ref 73717); Tue, 29 Oct 2024 08:57:02 +0000 Received: (at 73717) by debbugs.gnu.org; 29 Oct 2024 08:56:17 +0000 Received: from localhost ([127.0.0.1]:55898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5i1R-0003p4-G1 for submit@debbugs.gnu.org; Tue, 29 Oct 2024 04:56:17 -0400 Received: from latitanza.investici.org ([82.94.249.234]:35553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5i1O-0003ov-PU for 73717@debbugs.gnu.org; Tue, 29 Oct 2024 04:56:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1730192173; bh=N2wYBbsXEkbzFcz8PvMwI8rHcvoGR9j9V7njyAvgbvg=; h=From:To:Cc:Subject:Date:From; b=rnW5qCG5X1KVKWnQpLu4bIAyW0bxlH9aH0TOXeM8YNnLPXJOR40YAGu3md14VZm2l DZ4Vb/7Z4y2i+DAeqtZ6HqI+HluzYa1POo7hl6BOBGp1El4KZNZmIzE3iRXEZMXJFn qX1HSiuZZrJbmq2Qryzmr4YPh7S8Eh5g5V5oRQtw= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Xd3yP3NWQzGp3t; Tue, 29 Oct 2024 08:56:13 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4Xd3yP2Bf0zGp3p; Tue, 29 Oct 2024 08:56:13 +0000 (UTC) Date: Tue, 29 Oct 2024 09:55:46 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Cayetano Santos X-ACL-Warn: , Cayetano Santos via Guix-patches X-Patchwork-Original-From: Cayetano Santos via Guix-patches via From: Cayetano Santos Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fpga.scm (yosys-clang): New variable. Change-Id: Iedbd418adc152c325d106830d9d33b73f01e65da --- gnu/packages/fpga.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) base-commit: d44beb9b4ad836781928a0c5667e94c0d6df13f0 diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 68f36d501f..5ede463dde 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -224,6 +224,26 @@ (define-public yosys (description "Yosys synthesizes Verilog-2005.") (license license:isc))) +(define-public yosys-clang + (package + (inherit yosys) + (name "yosys-clang") + (arguments + (substitute-keyword-arguments (package-arguments yosys) + ((#:make-flags _ #f) + #~(list "CC=clang" + "CXX=clang++" + (string-append "PREFIX=" #$output))) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'configure + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "config-clang" make-flags))))))) + (inputs + (modify-inputs (package-inputs yosys) + (append clang))) + (synopsis "FPGA Verilog RTL synthesizer (Clang variant)"))) + (define-public icestorm (let ((commit "2bc541743ada3542c6da36a50e66303b9cbd2059") (revision "4"))