unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH v2 5/6] gnu: fpga: Add icestorm.
Date: Tue, 16 Aug 2016 20:06:52 +0200	[thread overview]
Message-ID: <20160816180653.22524-6-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816180653.22524-1-dannym@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]


* gnu/packages/fpga.scm (icestorm): New variable.
---
 gnu/packages/fpga.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0005-gnu-fpga-Add-icestorm.patch --]
[-- Type: text/x-patch; name="0005-gnu-fpga-Add-icestorm.patch", Size: 1931 bytes --]

diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index 0e51626..25c4570 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -189,3 +189,40 @@ For synthesis, the compiler generates netlists in the desired format.")
     (synopsis "FPGA Verilog RTL Synthesizer")
     (description "Yosys synthesizes Verilog-2005.")
     (license license:isc)))
+
+(define-public icestorm
+  (let ((commit "12b2295c9087d94b75e374bb205ae4d76cf17e2f"))
+   (package
+    (name "icestorm")
+    (version (string-append "0.0-" (string-take commit 7)))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/cliffordwolf/icestorm.git")
+                     (commit commit)))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+                (base32
+                   "1mmzlqvap6w8n4qzv3idvy51arkgn03692ssplwncy3akjrbsd2b"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ; no unit tests that don't need an FPGA exist.
+       #:make-flags (list "CC=gcc" "CXX=g++"
+                          (string-append "PREFIX=" (assoc-ref %outputs "out")))
+       #:phases
+        (modify-phases %standard-phases
+          (add-after 'unpack 'remove-usr-local
+            (lambda _
+              (substitute* "iceprog/Makefile"
+                (("-L/usr/local/lib") ""))))
+          (delete 'configure))))
+    (inputs
+      `(("libftdi" ,libftdi)))
+    (native-inputs
+      `(("python-3" ,python)
+        ("pkg-config" ,pkg-config)))
+    (home-page "http://www.clifford.at/icestorm/")
+    (synopsis "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools")
+    (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools. 
+Includes the actual FTDI connector.")
+    (license license:isc)))) ; FIXME more licenses?

  parent reply	other threads:[~2016-08-16 18:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16 18:06 [PATCH v2 0/6] Add FPGA Tools Danny Milosavljevic
2016-08-16 18:06 ` [PATCH v2 1/6] gnu: Add fpga module Danny Milosavljevic
2016-08-16 18:33   ` Thompson, David
2016-08-16 18:06 ` [PATCH v2 2/6] gnu: fpga: Add abc Danny Milosavljevic
2016-08-16 18:40   ` Thompson, David
2016-08-16 19:57     ` Leo Famulari
2016-08-18 10:24   ` Ricardo Wurmus
2016-08-18 13:51     ` Danny Milosavljevic
2016-08-18 15:10       ` Danny Milosavljevic
2016-08-19  7:14         ` Ricardo Wurmus
2016-08-19  7:44         ` Pjotr Prins
2016-08-16 18:06 ` [PATCH v2 3/6] gnu: fpga: Add iverilog Danny Milosavljevic
2016-08-16 18:30   ` Thompson, David
2016-08-18 10:09     ` Danny Milosavljevic
2016-08-16 18:06 ` [PATCH v2 4/6] gnu: fpga: Add yosys Danny Milosavljevic
2016-08-16 18:06 ` Danny Milosavljevic [this message]
2016-08-16 18:06 ` [PATCH v2 6/6] gnu: fpga: Add arachne-pnr Danny Milosavljevic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160816180653.22524-6-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).