me
/
guix
Archived
1
0
Fork 0

gnu: openocd: Update to 0.11.0.

* gnu/packages/embedded.scm (openocd): Update to 0.11.0.
master
Danny Milosavljevic 2021-12-16 20:11:40 +01:00
parent 18d5e7c96b
commit b47fcf1cbe
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 59 additions and 62 deletions

View File

@ -565,69 +565,66 @@ language.")
(license license:bsd-2))) (license license:bsd-2)))
(define-public openocd (define-public openocd
(let ((commit "9a877a83a1c8b1f105cdc0de46c5cbc4d9e8799e") (package
(revision "0")) (name "openocd")
(package (version "0.11.0")
(name "openocd") (source (origin
(version (string-append "0.10.0-" revision "." (method git-fetch)
(string-take commit 7))) (uri (git-reference
(source (origin (url "https://git.code.sf.net/p/openocd/code")
(method git-fetch) (commit (string-append "v" version))))
(uri (git-reference (file-name (string-append name "-" version "-checkout"))
(url "https://git.code.sf.net/p/openocd/code") (sha256
(commit commit))) (base32
(file-name (string-append name "-" version "-checkout")) "0qi4sixwvw1i7c64sy221fsjs82qf3asmdk86g74ds2jjm3f8pzp"))))
(sha256 (build-system gnu-build-system)
(base32 (native-inputs
"1q536cp80v2bcy6xwk08f1r2ljyw13jchx3a1z7d3ni3vqql7rc6")))) (list autoconf
(build-system gnu-build-system) automake
(native-inputs libtool
(list autoconf base:which
automake pkg-config
libtool texinfo))
base:which (inputs
pkg-config (list hidapi jimtcl libftdi libjaylink libusb-compat))
texinfo)) (arguments
(inputs '(#:configure-flags
(list hidapi jimtcl libftdi libjaylink libusb-compat)) (append (list "LIBS=-lutil"
(arguments "--disable-werror"
'(#:configure-flags "--enable-sysfsgpio"
(append (list "LIBS=-lutil" "--disable-internal-jimtcl"
"--disable-werror" "--disable-internal-libjaylink")
"--enable-sysfsgpio" (map (lambda (programmer)
"--disable-internal-jimtcl" (string-append "--enable-" programmer))
"--disable-internal-libjaylink") '("amtjtagaccel" "armjtagew" "buspirate" "ftdi"
(map (lambda (programmer) "gw16012" "jlink" "opendous" "osbdm"
(string-append "--enable-" programmer)) "parport" "aice" "cmsis-dap" "dummy" "jtag_vpi"
'("amtjtagaccel" "armjtagew" "buspirate" "ftdi" "remote-bitbang" "rlink" "stlink" "ti-icdi" "ulink"
"gw16012" "jlink" "opendous" "osbdm" "usbprog" "vsllink" "usb-blaster-2" "usb_blaster"
"parport" "aice" "cmsis-dap" "dummy" "jtag_vpi" "presto" "openjtag")))
"remote-bitbang" "rlink" "stlink" "ti-icdi" "ulink" #:phases
"usbprog" "vsllink" "usb-blaster-2" "usb_blaster" (modify-phases %standard-phases
"presto" "openjtag"))) (replace 'bootstrap
#:phases (lambda _
(modify-phases %standard-phases (patch-shebang "bootstrap")
(replace 'bootstrap (invoke "./bootstrap" "nosubmodule")))
(lambda _ (add-after 'autoreconf 'change-udev-group
(patch-shebang "bootstrap") (lambda _
(invoke "./bootstrap" "nosubmodule"))) (substitute* "contrib/60-openocd.rules"
(add-after 'autoreconf 'change-udev-group (("plugdev") "dialout"))
(lambda _ #t))
(substitute* "contrib/60-openocd.rules" (add-after 'install 'install-udev-rules
(("plugdev") "dialout")) (lambda* (#:key outputs #:allow-other-keys)
#t)) (install-file "contrib/60-openocd.rules"
(add-after 'install 'install-udev-rules (string-append
(lambda* (#:key outputs #:allow-other-keys) (assoc-ref outputs "out")
(install-file "contrib/60-openocd.rules" "/lib/udev/rules.d/"))
(string-append #t)))))
(assoc-ref outputs "out") (home-page "http://openocd.org")
"/lib/udev/rules.d/")) (synopsis "On-Chip Debugger")
#t))))) (description "OpenOCD provides on-chip programming and debugging support
(home-page "http://openocd.org")
(synopsis "On-Chip Debugger")
(description "OpenOCD provides on-chip programming and debugging support
with a layered architecture of JTAG interface and TAP support.") with a layered architecture of JTAG interface and TAP support.")
(license license:gpl2+)))) (license license:gpl2+)))
;; The commits for all propeller tools are the stable versions published at ;; The commits for all propeller tools are the stable versions published at
;; https://github.com/propellerinc/propgcc in the release_1_0. According to ;; https://github.com/propellerinc/propgcc in the release_1_0. According to