GNU bug report logs - #32907
[PATCH] gnu: Add stlink.

Previous Next

Package: guix-patches;

Reported by: Clément Lassieur <clement <at> lassieur.org>

Date: Tue, 2 Oct 2018 15:29:02 UTC

Severity: normal

Tags: patch

Done: Clément Lassieur <clement <at> lassieur.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32907 in the body.
You can then email your comments to 32907 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#32907; Package guix-patches. (Tue, 02 Oct 2018 15:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Clément Lassieur <clement <at> lassieur.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 02 Oct 2018 15:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add stlink.
Date: Tue,  2 Oct 2018 17:28:08 +0200
* gnu/packages/embedded.scm (stlink): New variable.
---
 gnu/packages/embedded.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 017422461..6e8bec771 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016 David Craven <david <at> craven.ch>
 ;;; Copyright © 2017 Efraim Flashner <efraim <at> flashner.co.il>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright © 2018 Clément Lassieur <clement <at> lassieur.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@
   #:use-module (guix svn-download)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
   #:use-module (guix build utils)
@@ -1104,3 +1106,40 @@ and displaying decoded target responses.
 @end enumerate")
     (home-page "https://www.freecalypso.org/")
     (license license:public-domain)))
+
+(define-public stlink
+  (package
+    (name "stlink")
+    (version "1.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/texane/stlink/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "01z1cz1a5xbbhd163qrqcgp4bi1k145pb80jmwdz50g7sfzmy570"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f                      ;no tests
+                #:configure-flags
+                (let* ((out (assoc-ref %outputs "out"))
+                       (etc (in-vicinity out "etc"))
+                       (modprobe (in-vicinity etc "modprobe.d"))
+                       (udev-rules (in-vicinity etc "udev/rules.d")))
+                  (list (string-append "-DSTLINK_UDEV_RULES_DIR=" udev-rules)
+                        (string-append "-DSTLINK_MODPROBED_DIR=" modprobe)))))
+    (inputs
+     `(("libusb" ,libusb)))
+    (synopsis "Programmer for STM32 Discovery boards")
+    (description "This package provides a firmware programmer for the STM32
+Discovery boards.  It supports two versions of the chip: ST-LINK/V1 (on
+STM32VL discovery kits) and ST-LINK/V2 (on STM32L discovery and later kits).
+Two different transport layers are used: ST-LINK/V1 uses SCSI passthru
+commands over USB, and ST-LINK/V2 and ST-LINK/V2-1 (seen on Nucleo boards) use
+raw USB commands.")
+    (home-page "https://github.com/texane/stlink")
+    ;; The flashloaders/stm32l0x.s and flashloaders/stm32lx.s source files are
+    ;; licensed under the GPLv2+.
+    (license (list license:bsd-3 license:gpl2+))))
-- 
2.19.0





Information forwarded to guix-patches <at> gnu.org:
bug#32907; Package guix-patches. (Tue, 02 Oct 2018 15:36:01 GMT) Full text and rfc822 format available.

Message #8 received at 32907 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: 32907 <at> debbugs.gnu.org
Subject: Re: [bug#32907] [PATCH] gnu: Add stlink.
Date: Tue, 02 Oct 2018 17:34:52 +0200
Clément Lassieur <clement <at> lassieur.org> writes:

> * gnu/packages/embedded.scm (stlink): New variable.
> ---
>  gnu/packages/embedded.scm | 39 +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>
> diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
> index 017422461..6e8bec771 100644
> --- a/gnu/packages/embedded.scm
> +++ b/gnu/packages/embedded.scm
> @@ -4,6 +4,7 @@
>  ;;; Copyright © 2016 David Craven <david <at> craven.ch>
>  ;;; Copyright © 2017 Efraim Flashner <efraim <at> flashner.co.il>
>  ;;; Copyright © 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
> +;;; Copyright © 2018 Clément Lassieur <clement <at> lassieur.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -27,6 +28,7 @@
>    #:use-module (guix svn-download)
>    #:use-module (guix git-download)
>    #:use-module ((guix licenses) #:prefix license:)
> +  #:use-module (guix build-system cmake)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system trivial)
>    #:use-module (guix build utils)
> @@ -1104,3 +1106,40 @@ and displaying decoded target responses.
>  @end enumerate")
>      (home-page "https://www.freecalypso.org/")
>      (license license:public-domain)))
> +
> +(define-public stlink
> +  (package
> +    (name "stlink")
> +    (version "1.5.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/texane/stlink/archive/v"
> +                           version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32
> +         "01z1cz1a5xbbhd163qrqcgp4bi1k145pb80jmwdz50g7sfzmy570"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     `(#:tests? #f                      ;no tests
> +                #:configure-flags
            ^
I'll fix that indentation issue.

> +                (let* ((out (assoc-ref %outputs "out"))
> +                       (etc (in-vicinity out "etc"))
> +                       (modprobe (in-vicinity etc "modprobe.d"))
> +                       (udev-rules (in-vicinity etc "udev/rules.d")))
> +                  (list (string-append "-DSTLINK_UDEV_RULES_DIR=" udev-rules)
> +                        (string-append "-DSTLINK_MODPROBED_DIR=" modprobe)))))
> +    (inputs
> +     `(("libusb" ,libusb)))
> +    (synopsis "Programmer for STM32 Discovery boards")
> +    (description "This package provides a firmware programmer for the STM32
> +Discovery boards.  It supports two versions of the chip: ST-LINK/V1 (on
> +STM32VL discovery kits) and ST-LINK/V2 (on STM32L discovery and later kits).
> +Two different transport layers are used: ST-LINK/V1 uses SCSI passthru
> +commands over USB, and ST-LINK/V2 and ST-LINK/V2-1 (seen on Nucleo boards) use
> +raw USB commands.")
> +    (home-page "https://github.com/texane/stlink")
> +    ;; The flashloaders/stm32l0x.s and flashloaders/stm32lx.s source files are
> +    ;; licensed under the GPLv2+.
> +    (license (list license:bsd-3 license:gpl2+))))





Reply sent to Clément Lassieur <clement <at> lassieur.org>:
You have taken responsibility. (Wed, 03 Oct 2018 22:21:02 GMT) Full text and rfc822 format available.

Notification sent to Clément Lassieur <clement <at> lassieur.org>:
bug acknowledged by developer. (Wed, 03 Oct 2018 22:21:02 GMT) Full text and rfc822 format available.

Message #13 received at 32907-done <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: 32907-done <at> debbugs.gnu.org
Subject: Re: [bug#32907] [PATCH] gnu: Add stlink.
Date: Thu, 04 Oct 2018 00:20:38 +0200
Clément Lassieur <clement <at> lassieur.org> writes:

> * gnu/packages/embedded.scm (stlink): New variable.

Pushed.




Information forwarded to guix-patches <at> gnu.org:
bug#32907; Package guix-patches. (Fri, 05 Oct 2018 20:09:02 GMT) Full text and rfc822 format available.

Message #16 received at 32907 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Clément Lassieur <clement <at> lassieur.org>
Cc: 32907 <at> debbugs.gnu.org
Subject: Re: [bug#32907] [PATCH] gnu: Add stlink.
Date: Fri, 05 Oct 2018 22:08:31 +0200
Clément Lassieur <clement <at> lassieur.org> skribis:

> * gnu/packages/embedded.scm (stlink): New variable.

LGTM, thanks!

Ludo'.




Information forwarded to guix-patches <at> gnu.org:
bug#32907; Package guix-patches. (Fri, 05 Oct 2018 23:09:01 GMT) Full text and rfc822 format available.

Message #19 received at 32907 <at> debbugs.gnu.org (full text, mbox):

From: Clément Lassieur <clement <at> lassieur.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 32907 <at> debbugs.gnu.org
Subject: Re: [bug#32907] [PATCH] gnu: Add stlink.
Date: Sat, 06 Oct 2018 01:08:44 +0200
Ludovic Courtès <ludo <at> gnu.org> writes:

> Clément Lassieur <clement <at> lassieur.org> skribis:
>
>> * gnu/packages/embedded.scm (stlink): New variable.
>
> LGTM, thanks!

Thank you!





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 03 Nov 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.