gnu: Add yosys-clang.

* gnu/packages/fpga.scm (yosys-clang): New variable.

Change-Id: Iedbd418adc152c325d106830d9d33b73f01e65da
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Cayetano Santos 2024-10-29 09:55:46 +01:00 committed by Ludovic Courtès
parent 3b31ef750a
commit 952a179f44
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -239,6 +239,26 @@ For synthesis, the compiler generates netlists in the desired format.")
(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"))