2016-09-17 13:00:54 -04:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2019-09-19 08:31:41 -04:00
|
|
|
|
;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2017-09-26 14:46:42 -04:00
|
|
|
|
;;; Copyright © 2016, 2017 Theodoros Foradis <theodoros@foradis.org>
|
2016-10-29 21:21:41 -04:00
|
|
|
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
2020-01-24 03:07:58 -05:00
|
|
|
|
;;; Copyright © 2017, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2020-11-09 17:27:22 -05:00
|
|
|
|
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2021-02-25 06:15:12 -05:00
|
|
|
|
;;; Copyright © 2018, 2019, 2021 Clément Lassieur <clement@lassieur.org>
|
2020-05-13 14:39:01 -04:00
|
|
|
|
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
2020-05-14 02:12:07 -04:00
|
|
|
|
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
2021-02-08 14:14:00 -05:00
|
|
|
|
;;; Copyright © 2021 Julien Lepiller <julien@lepiller.eu>
|
2022-03-10 07:31:18 -05:00
|
|
|
|
;;; Copyright © 2020, 2021, 2022 Simon South <simon@simonsouth.net>
|
2021-04-08 09:02:20 -04:00
|
|
|
|
;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
|
2022-01-04 07:03:05 -05:00
|
|
|
|
;;; Copyright © 2022 Mathieu Othacehe <othacehe@gnu.org>
|
2022-04-19 11:10:41 -04:00
|
|
|
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2016-09-17 13:00:54 -04:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages embedded)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix svn-download)
|
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2018-10-02 10:32:03 -04:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2016-09-17 13:00:54 -04:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2019-12-05 10:50:21 -05:00
|
|
|
|
#:use-module (guix build-system python)
|
2016-10-16 05:27:21 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2020-12-14 13:00:19 -05:00
|
|
|
|
#:use-module ((guix build utils) #:select (alist-replace delete-file-recursively))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
#:use-module (gnu packages)
|
2020-11-09 17:27:22 -05:00
|
|
|
|
#:use-module (gnu packages admin)
|
2016-10-29 21:21:41 -04:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2017-02-19 11:36:20 -05:00
|
|
|
|
#:use-module ((gnu packages base) #:prefix base:)
|
2016-12-25 15:53:50 -05:00
|
|
|
|
#:use-module (gnu packages bison)
|
2020-12-14 13:06:44 -05:00
|
|
|
|
#:use-module (gnu packages boost)
|
2022-01-04 07:03:05 -05:00
|
|
|
|
#:use-module (gnu packages check)
|
2020-12-14 13:12:54 -05:00
|
|
|
|
#:use-module (gnu packages compression)
|
2016-09-17 13:00:54 -04:00
|
|
|
|
#:use-module (gnu packages cross-base)
|
2016-12-25 15:53:50 -05:00
|
|
|
|
#:use-module (gnu packages dejagnu)
|
2016-09-17 13:00:54 -04:00
|
|
|
|
#:use-module (gnu packages flex)
|
2016-09-19 16:23:38 -04:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2016-10-28 13:36:04 -04:00
|
|
|
|
#:use-module (gnu packages gdb)
|
2017-02-19 11:36:20 -05:00
|
|
|
|
#:use-module (gnu packages guile)
|
2016-10-28 13:36:06 -04:00
|
|
|
|
#:use-module (gnu packages libftdi)
|
2016-10-29 21:21:41 -04:00
|
|
|
|
#:use-module (gnu packages libusb)
|
2020-09-11 20:05:57 -04:00
|
|
|
|
#:use-module (gnu packages messaging)
|
2022-03-08 10:52:09 -05:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2016-09-17 13:00:54 -04:00
|
|
|
|
#:use-module (gnu packages perl)
|
2016-10-29 21:21:41 -04:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-10-21 15:03:03 -04:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-02-08 14:14:00 -05:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
2022-01-04 07:03:05 -05:00
|
|
|
|
#:use-module (gnu packages python-web)
|
2019-12-05 10:50:21 -05:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2022-03-10 07:31:17 -05:00
|
|
|
|
#:use-module (gnu packages readline)
|
2017-10-21 15:03:03 -04:00
|
|
|
|
#:use-module (gnu packages swig)
|
2016-11-08 17:57:29 -05:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2022-01-04 07:03:05 -05:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2018-01-03 14:26:55 -05:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-11-08 17:57:29 -05:00
|
|
|
|
#:use-module (srfi srfi-1))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
|
|
|
|
|
;; We must not use the released GCC sources here, because the cross-compiler
|
|
|
|
|
;; does not produce working binaries. Instead we take the very same SVN
|
|
|
|
|
;; revision from the branch that is used for a release of the "GCC ARM
|
|
|
|
|
;; embedded" project on launchpad.
|
|
|
|
|
;; See https://launchpadlibrarian.net/218827644/release.txt
|
|
|
|
|
(define-public gcc-arm-none-eabi-4.9
|
|
|
|
|
(let ((xgcc (cross-gcc "arm-none-eabi"
|
2017-05-22 10:13:15 -04:00
|
|
|
|
#:xgcc gcc-4.9
|
|
|
|
|
#:xbinutils (cross-binutils "arm-none-eabi")))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
(revision "1")
|
|
|
|
|
(svn-revision 227977))
|
|
|
|
|
(package (inherit xgcc)
|
|
|
|
|
(version (string-append (package-version xgcc) "-"
|
|
|
|
|
revision "." (number->string svn-revision)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method svn-fetch)
|
|
|
|
|
(uri (svn-reference
|
|
|
|
|
(url "svn://gcc.gnu.org/svn/gcc/branches/ARM/embedded-4_9-branch/")
|
|
|
|
|
(revision svn-revision)))
|
|
|
|
|
(file-name (string-append "gcc-arm-embedded-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"113r98kygy8rrjfv2pd3z6zlfzbj543pq7xyq8bgh72c608mmsbr"))
|
2016-11-08 17:57:29 -05:00
|
|
|
|
|
|
|
|
|
;; Remove the one patch that doesn't apply to this 4.9 snapshot (the
|
|
|
|
|
;; patch is for 4.9.4 and later but this svn snapshot is older).
|
|
|
|
|
(patches (remove (lambda (patch)
|
|
|
|
|
(string=? (basename patch)
|
|
|
|
|
"gcc-arm-bug-71399.patch"))
|
|
|
|
|
(origin-patches (package-source xgcc))))))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("flex" ,flex)
|
2020-05-13 14:39:01 -04:00
|
|
|
|
("gcc@5" ,gcc-5)
|
2016-09-17 13:00:54 -04:00
|
|
|
|
,@(package-native-inputs xgcc)))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments xgcc)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
2020-05-13 14:39:01 -04:00
|
|
|
|
(add-after 'set-paths 'augment-CPLUS_INCLUDE_PATH
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((gcc (assoc-ref inputs "gcc")))
|
|
|
|
|
;; Remove the default compiler from CPLUS_INCLUDE_PATH to
|
|
|
|
|
;; prevent header conflict with the GCC from native-inputs.
|
|
|
|
|
(setenv "CPLUS_INCLUDE_PATH"
|
|
|
|
|
(string-join
|
|
|
|
|
(delete (string-append gcc "/include/c++")
|
|
|
|
|
(string-split (getenv "CPLUS_INCLUDE_PATH")
|
|
|
|
|
#\:))
|
|
|
|
|
":"))
|
|
|
|
|
(format #t
|
|
|
|
|
"environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%"
|
|
|
|
|
(getenv "CPLUS_INCLUDE_PATH"))
|
|
|
|
|
#t)))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
(add-after 'unpack 'fix-genmultilib
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "gcc/genmultilib"
|
|
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))
|
|
|
|
|
#t))))
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
;; The configure flags are largely identical to the flags used by the
|
|
|
|
|
;; "GCC ARM embedded" project.
|
|
|
|
|
`(append (list "--enable-multilib"
|
|
|
|
|
"--with-newlib"
|
|
|
|
|
"--with-multilib-list=armv6-m,armv7-m,armv7e-m"
|
|
|
|
|
"--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm"
|
|
|
|
|
"--enable-plugins"
|
|
|
|
|
"--disable-decimal-float"
|
|
|
|
|
"--disable-libffi"
|
|
|
|
|
"--disable-libgomp"
|
|
|
|
|
"--disable-libmudflap"
|
|
|
|
|
"--disable-libquadmath"
|
|
|
|
|
"--disable-libssp"
|
|
|
|
|
"--disable-libstdcxx-pch"
|
|
|
|
|
"--disable-nls"
|
|
|
|
|
"--disable-shared"
|
|
|
|
|
"--disable-threads"
|
|
|
|
|
"--disable-tls")
|
|
|
|
|
(delete "--disable-multilib" ,flags)))))
|
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "CROSS_C_INCLUDE_PATH")
|
|
|
|
|
(files '("arm-none-eabi/include")))
|
|
|
|
|
(search-path-specification
|
|
|
|
|
(variable "CROSS_CPLUS_INCLUDE_PATH")
|
2021-04-07 15:09:46 -04:00
|
|
|
|
(files '("arm-none-eabi/include"
|
|
|
|
|
"arm-none-eabi/include/c++"
|
|
|
|
|
"arm-none-eabi/include/c++/arm-none-eabi")))
|
2016-09-17 13:00:54 -04:00
|
|
|
|
(search-path-specification
|
|
|
|
|
(variable "CROSS_LIBRARY_PATH")
|
|
|
|
|
(files '("arm-none-eabi/lib"))))))))
|
2016-09-17 13:12:24 -04:00
|
|
|
|
|
2016-09-19 16:23:38 -04:00
|
|
|
|
(define-public gcc-arm-none-eabi-6
|
|
|
|
|
(package
|
|
|
|
|
(inherit gcc-arm-none-eabi-4.9)
|
|
|
|
|
(version (package-version gcc-6))
|
|
|
|
|
(source (origin (inherit (package-source gcc-6))
|
|
|
|
|
(patches
|
|
|
|
|
(append
|
|
|
|
|
(origin-patches (package-source gcc-6))
|
|
|
|
|
(search-patches "gcc-6-cross-environment-variables.patch"
|
|
|
|
|
"gcc-6-arm-none-eabi-multilib.patch")))))))
|
|
|
|
|
|
2016-09-17 13:12:24 -04:00
|
|
|
|
(define-public newlib-arm-none-eabi
|
|
|
|
|
(package
|
|
|
|
|
(name "newlib")
|
|
|
|
|
(version "2.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://sourceware.org/pub/newlib/newlib-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01i7qllwicf05vsvh39qj7qp5fdifpvvky0x95hjq39mbqiksnsl"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:out-of-source? #t
|
|
|
|
|
;; The configure flags are identical to the flags used by the "GCC ARM
|
|
|
|
|
;; embedded" project.
|
|
|
|
|
#:configure-flags '("--target=arm-none-eabi"
|
|
|
|
|
"--enable-newlib-io-long-long"
|
|
|
|
|
"--enable-newlib-register-fini"
|
|
|
|
|
"--disable-newlib-supplied-syscalls"
|
|
|
|
|
"--disable-nls")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'fix-references-to-/bin/sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("libgloss/arm/cpu-init/Makefile.in"
|
|
|
|
|
"libgloss/arm/Makefile.in"
|
|
|
|
|
"libgloss/libnosys/Makefile.in"
|
|
|
|
|
"libgloss/Makefile.in")
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("xbinutils" ,(cross-binutils "arm-none-eabi"))
|
|
|
|
|
("xgcc" ,gcc-arm-none-eabi-4.9)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2020-01-18 14:02:46 -05:00
|
|
|
|
(home-page "https://www.sourceware.org/newlib/")
|
2016-09-17 13:12:24 -04:00
|
|
|
|
(synopsis "C library for use on embedded systems")
|
|
|
|
|
(description "Newlib is a C library intended for use on embedded
|
|
|
|
|
systems. It is a conglomeration of several library parts that are easily
|
|
|
|
|
usable on embedded products.")
|
|
|
|
|
(license (license:non-copyleft
|
|
|
|
|
"https://www.sourceware.org/newlib/COPYING.NEWLIB"))))
|
2016-09-17 13:13:45 -04:00
|
|
|
|
|
|
|
|
|
(define-public newlib-nano-arm-none-eabi
|
|
|
|
|
(package (inherit newlib-arm-none-eabi)
|
|
|
|
|
(name "newlib-nano")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments newlib-arm-none-eabi)
|
|
|
|
|
;; The configure flags are identical to the flags used by the "GCC ARM
|
|
|
|
|
;; embedded" project. They optimize newlib for use on small embedded
|
|
|
|
|
;; systems with limited memory.
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
''("--target=arm-none-eabi"
|
|
|
|
|
"--enable-multilib"
|
|
|
|
|
"--disable-newlib-supplied-syscalls"
|
|
|
|
|
"--enable-newlib-reent-small"
|
|
|
|
|
"--disable-newlib-fvwrite-in-streamio"
|
|
|
|
|
"--disable-newlib-fseek-optimization"
|
|
|
|
|
"--disable-newlib-wide-orient"
|
|
|
|
|
"--enable-newlib-nano-malloc"
|
|
|
|
|
"--disable-newlib-unbuf-stream-opt"
|
|
|
|
|
"--enable-lite-exit"
|
|
|
|
|
"--enable-newlib-global-atexit"
|
|
|
|
|
"--enable-newlib-nano-formatted-io"
|
2021-04-08 09:02:20 -04:00
|
|
|
|
"--disable-nls"))
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
;; XXX: Most arm toolchains offer both *.a and *_nano.a as newlib
|
|
|
|
|
;; and newlib-nano respectively. The headers are usually
|
|
|
|
|
;; arm-none-eabi/include/newlib.h for newlib and
|
|
|
|
|
;; arm-none-eabi/include/newlib-nano/newlib.h for newlib-nano. We
|
|
|
|
|
;; have two different toolchain packages for each which works but
|
|
|
|
|
;; is a little strange.
|
|
|
|
|
(add-after 'install 'hardlink-newlib
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; The nano.specs file says that newlib-nano files should end
|
|
|
|
|
;; in "_nano.a" instead of just ".a". Note that this applies
|
|
|
|
|
;; to all the multilib folders too.
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(link file
|
|
|
|
|
(string-append
|
|
|
|
|
;; Strip ".a" off the end
|
|
|
|
|
(substring file 0 (- (string-length file) 2))
|
|
|
|
|
;; Add "_nano.a" onto the end
|
|
|
|
|
"_nano.a")))
|
|
|
|
|
(find-files
|
|
|
|
|
out
|
|
|
|
|
"^(libc.a|libg.a|librdimon.a|libstdc\\+\\+.a|libsupc\\+\\+.a)$"))
|
|
|
|
|
|
|
|
|
|
;; newlib.h is usually in this location instead so both
|
|
|
|
|
;; newlib and newlib-nano can be in the toolchain at the same
|
|
|
|
|
;; time
|
|
|
|
|
(mkdir (string-append out "/arm-none-eabi/include/newlib-nano"))
|
|
|
|
|
(symlink
|
|
|
|
|
"../newlib.h"
|
|
|
|
|
(string-append out "/arm-none-eabi/include/newlib-nano/newlib.h"))
|
|
|
|
|
#t)))))))
|
2016-09-17 13:13:45 -04:00
|
|
|
|
(synopsis "Newlib variant for small systems with limited memory")))
|
2016-10-16 05:27:21 -04:00
|
|
|
|
|
2019-12-24 17:34:03 -05:00
|
|
|
|
|
|
|
|
|
;;; The following definitions are for the "7-2018-q2-update" variant of the
|
|
|
|
|
;;; ARM cross toolchain as offered on https://developer.arm.com
|
|
|
|
|
(define-public gcc-arm-none-eabi-7-2018-q2-update
|
|
|
|
|
(let ((xgcc (cross-gcc "arm-none-eabi"
|
|
|
|
|
#:xgcc gcc-7
|
|
|
|
|
#:xbinutils (cross-binutils "arm-none-eabi")))
|
|
|
|
|
(revision "1")
|
|
|
|
|
(svn-revision 261907))
|
|
|
|
|
(package (inherit xgcc)
|
|
|
|
|
(version (string-append "7-2018-q2-update-"
|
|
|
|
|
revision "." (number->string svn-revision)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method svn-fetch)
|
|
|
|
|
(uri (svn-reference
|
|
|
|
|
(url "svn://gcc.gnu.org/svn/gcc/branches/ARM/embedded-7-branch/")
|
|
|
|
|
(revision svn-revision)))
|
|
|
|
|
(file-name (string-append "gcc-arm-embedded-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"192ggs63bixf3irpijgfkjks73yx1r3a4i6grk1y0i0iny76pmx5"))
|
|
|
|
|
(patches
|
|
|
|
|
(append
|
|
|
|
|
(origin-patches (package-source gcc-7))
|
|
|
|
|
(search-patches "gcc-7-cross-environment-variables.patch")))))
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(modify-inputs (package-native-inputs xgcc)
|
|
|
|
|
(delete "isl")
|
|
|
|
|
(prepend flex isl-0.18)))
|
2019-12-24 17:34:03 -05:00
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments xgcc)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(add-after 'unpack 'expand-version-string
|
|
|
|
|
(lambda _
|
|
|
|
|
(make-file-writable "gcc/DEV-PHASE")
|
|
|
|
|
(with-output-to-file "gcc/DEV-PHASE"
|
|
|
|
|
(lambda ()
|
|
|
|
|
(display "7-2018-q2-update")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'fix-genmultilib
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "gcc/genmultilib"
|
|
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))
|
2020-05-14 02:12:07 -04:00
|
|
|
|
#t))
|
|
|
|
|
(add-after 'set-paths 'augment-CPLUS_INCLUDE_PATH
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((gcc (assoc-ref inputs "gcc")))
|
|
|
|
|
;; Remove the default compiler from CPLUS_INCLUDE_PATH to
|
|
|
|
|
;; prevent header conflict with the GCC from native-inputs.
|
|
|
|
|
(setenv "CPLUS_INCLUDE_PATH"
|
|
|
|
|
(string-join
|
|
|
|
|
(delete (string-append gcc "/include/c++")
|
|
|
|
|
(string-split (getenv "CPLUS_INCLUDE_PATH")
|
|
|
|
|
#\:))
|
|
|
|
|
":"))
|
|
|
|
|
(format #t
|
|
|
|
|
"environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%"
|
|
|
|
|
(getenv "CPLUS_INCLUDE_PATH"))
|
|
|
|
|
#t)))))
|
2019-12-24 17:34:03 -05:00
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
;; The configure flags are largely identical to the flags used by the
|
|
|
|
|
;; "GCC ARM embedded" project.
|
|
|
|
|
`(append (list "--enable-multilib"
|
|
|
|
|
"--with-newlib"
|
|
|
|
|
"--with-multilib-list=rmprofile"
|
|
|
|
|
"--with-host-libstdcxx=-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm"
|
|
|
|
|
"--enable-plugins"
|
|
|
|
|
"--disable-decimal-float"
|
|
|
|
|
"--disable-libffi"
|
|
|
|
|
"--disable-libgomp"
|
|
|
|
|
"--disable-libmudflap"
|
|
|
|
|
"--disable-libquadmath"
|
|
|
|
|
"--disable-libssp"
|
|
|
|
|
"--disable-libstdcxx-pch"
|
|
|
|
|
"--disable-nls"
|
|
|
|
|
"--disable-shared"
|
|
|
|
|
"--disable-threads"
|
|
|
|
|
"--disable-tls")
|
|
|
|
|
(delete "--disable-multilib" ,flags)))))
|
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "CROSS_C_INCLUDE_PATH")
|
|
|
|
|
(files '("arm-none-eabi/include")))
|
|
|
|
|
(search-path-specification
|
|
|
|
|
(variable "CROSS_CPLUS_INCLUDE_PATH")
|
2021-04-07 15:09:46 -04:00
|
|
|
|
(files '("arm-none-eabi/include"
|
|
|
|
|
"arm-none-eabi/include/c++"
|
|
|
|
|
"arm-none-eabi/include/c++/arm-none-eabi")))
|
2019-12-24 17:34:03 -05:00
|
|
|
|
(search-path-specification
|
|
|
|
|
(variable "CROSS_LIBRARY_PATH")
|
|
|
|
|
(files '("arm-none-eabi/lib"))))))))
|
|
|
|
|
|
2019-12-24 17:35:18 -05:00
|
|
|
|
(define-public newlib-arm-none-eabi-7-2018-q2-update
|
|
|
|
|
;; This is the same commit as used for the 7-2018-q2-update release
|
|
|
|
|
;; according to the release.txt.
|
|
|
|
|
(let ((commit "3ccfb407af410ba7e54ea0da11ae1e40b554a6f4")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(inherit newlib-arm-none-eabi)
|
|
|
|
|
(version (git-version "3.0.0" revision commit))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "http://sourceware.org/git/newlib-cygwin.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name "newlib" commit))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1dq23fqrk75g1a4v7569fvnnw5q440zawbxi3w0g05n8jlqsmvcy"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments newlib-arm-none-eabi)
|
|
|
|
|
;; The configure flags are identical to the flags used by the "GCC ARM
|
|
|
|
|
;; embedded" project.
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
`(cons* "--enable-newlib-io-c99-formats"
|
|
|
|
|
"--enable-newlib-retargetable-locking"
|
|
|
|
|
"--with-headers=yes"
|
|
|
|
|
,flags))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("xbinutils" ,(cross-binutils "arm-none-eabi"))
|
|
|
|
|
("xgcc" ,gcc-arm-none-eabi-7-2018-q2-update)
|
|
|
|
|
("texinfo" ,texinfo))))))
|
|
|
|
|
|
2019-12-24 17:35:28 -05:00
|
|
|
|
(define-public newlib-nano-arm-none-eabi-7-2018-q2-update
|
|
|
|
|
(package (inherit newlib-arm-none-eabi-7-2018-q2-update)
|
|
|
|
|
(name "newlib-nano")
|
|
|
|
|
(arguments
|
|
|
|
|
(package-arguments newlib-nano-arm-none-eabi))
|
|
|
|
|
(synopsis "Newlib variant for small systems with limited memory")))
|
|
|
|
|
|
|
|
|
|
|
2017-05-22 10:13:17 -04:00
|
|
|
|
(define (make-libstdc++-arm-none-eabi xgcc newlib)
|
|
|
|
|
(let ((libstdc++ (make-libstdc++ xgcc)))
|
|
|
|
|
(package (inherit libstdc++)
|
|
|
|
|
(name "libstdc++-arm-none-eabi")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments libstdc++)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
``("--target=arm-none-eabi"
|
|
|
|
|
"--host=arm-none-eabi"
|
|
|
|
|
"--disable-libstdcxx-pch"
|
|
|
|
|
"--enable-multilib"
|
|
|
|
|
"--with-multilib-list=armv6-m,armv7-m,armv7e-m"
|
|
|
|
|
"--disable-shared"
|
|
|
|
|
"--disable-tls"
|
|
|
|
|
"--disable-plugin"
|
|
|
|
|
"--with-newlib"
|
|
|
|
|
,(string-append "--with-gxx-include-dir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
2021-04-07 15:09:46 -04:00
|
|
|
|
"/arm-none-eabi/include/c++")))))
|
2017-05-22 10:13:17 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("newlib" ,newlib)
|
|
|
|
|
("xgcc" ,xgcc)
|
|
|
|
|
,@(package-native-inputs libstdc++))))))
|
|
|
|
|
|
2016-10-16 05:27:21 -04:00
|
|
|
|
(define (arm-none-eabi-toolchain xgcc newlib)
|
|
|
|
|
"Produce a cross-compiler toolchain package with the compiler XGCC and the C
|
|
|
|
|
library variant NEWLIB."
|
|
|
|
|
(let ((newlib-with-xgcc (package (inherit newlib)
|
|
|
|
|
(native-inputs
|
|
|
|
|
(alist-replace "xgcc" (list xgcc)
|
|
|
|
|
(package-native-inputs newlib))))))
|
|
|
|
|
(package
|
|
|
|
|
(name (string-append "arm-none-eabi"
|
|
|
|
|
(if (string=? (package-name newlib-with-xgcc)
|
|
|
|
|
"newlib-nano")
|
|
|
|
|
"-nano" "")
|
|
|
|
|
"-toolchain"))
|
|
|
|
|
(version (package-version xgcc))
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
2017-05-22 10:13:18 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:modules ((guix build union))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (ice-9 match)
|
|
|
|
|
(guix build union))
|
|
|
|
|
(match %build-inputs
|
|
|
|
|
(((names . directories) ...)
|
|
|
|
|
(union-build (assoc-ref %outputs "out")
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-27 20:14:05 -04:00
|
|
|
|
directories)
|
|
|
|
|
#t)))))
|
2016-10-16 05:27:21 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("binutils" ,(cross-binutils "arm-none-eabi"))
|
2017-05-22 10:13:19 -04:00
|
|
|
|
("libstdc++" ,(make-libstdc++-arm-none-eabi xgcc newlib-with-xgcc))
|
2016-10-16 05:27:21 -04:00
|
|
|
|
("gcc" ,xgcc)
|
|
|
|
|
("newlib" ,newlib-with-xgcc)))
|
|
|
|
|
(synopsis "Complete GCC tool chain for ARM bare metal development")
|
|
|
|
|
(description "This package provides a complete GCC tool chain for ARM
|
|
|
|
|
bare metal development. This includes the GCC arm-none-eabi cross compiler
|
|
|
|
|
and newlib (or newlib-nano) as the C library. The supported programming
|
|
|
|
|
languages are C and C++.")
|
|
|
|
|
(home-page (package-home-page xgcc))
|
|
|
|
|
(license (package-license xgcc)))))
|
|
|
|
|
|
|
|
|
|
(define-public arm-none-eabi-toolchain-4.9
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-4.9
|
|
|
|
|
newlib-arm-none-eabi))
|
|
|
|
|
|
|
|
|
|
(define-public arm-none-eabi-nano-toolchain-4.9
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-4.9
|
|
|
|
|
newlib-nano-arm-none-eabi))
|
|
|
|
|
|
|
|
|
|
(define-public arm-none-eabi-toolchain-6
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-6
|
|
|
|
|
newlib-arm-none-eabi))
|
|
|
|
|
|
|
|
|
|
(define-public arm-none-eabi-nano-toolchain-6
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-6
|
|
|
|
|
newlib-nano-arm-none-eabi))
|
2016-10-28 13:36:04 -04:00
|
|
|
|
|
2019-12-24 17:36:02 -05:00
|
|
|
|
(define-public arm-none-eabi-toolchain-7-2018-q2-update
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-7-2018-q2-update
|
|
|
|
|
newlib-arm-none-eabi-7-2018-q2-update))
|
|
|
|
|
|
2019-12-24 17:36:13 -05:00
|
|
|
|
(define-public arm-none-eabi-nano-toolchain-7-2018-q2-update
|
|
|
|
|
(arm-none-eabi-toolchain gcc-arm-none-eabi-7-2018-q2-update
|
|
|
|
|
newlib-nano-arm-none-eabi-7-2018-q2-update))
|
|
|
|
|
|
2016-10-28 13:36:04 -04:00
|
|
|
|
(define-public gdb-arm-none-eabi
|
|
|
|
|
(package
|
|
|
|
|
(inherit gdb)
|
|
|
|
|
(name "gdb-arm-none-eabi")
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("--target=arm-none-eabi"
|
|
|
|
|
"--enable-multilib"
|
|
|
|
|
"--enable-interwork"
|
|
|
|
|
"--enable-languages=c,c++"
|
|
|
|
|
"--disable-nls")
|
|
|
|
|
,@(package-arguments gdb)))))
|
2016-10-29 21:21:41 -04:00
|
|
|
|
|
|
|
|
|
(define-public libjaylink
|
2020-10-10 09:24:46 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "libjaylink")
|
|
|
|
|
(version "0.2.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://repo.or.cz/libjaylink.git")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ndyfh51hiqyv2yscpj6qd091w7myxxjid3a6rx8f6k233vy826q"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list autoconf automake libtool pkg-config))
|
2020-10-10 09:24:46 -04:00
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list libusb))
|
2020-10-10 09:24:46 -04:00
|
|
|
|
(home-page "https://repo.or.cz/w/libjaylink.git")
|
|
|
|
|
(synopsis "Library to interface Segger J-Link devices")
|
|
|
|
|
(description "libjaylink is a shared library written in C to access
|
2016-10-29 21:21:41 -04:00
|
|
|
|
SEGGER J-Link and compatible devices.")
|
2020-10-10 09:24:46 -04:00
|
|
|
|
(license license:gpl2+)))
|
2016-10-29 21:22:30 -04:00
|
|
|
|
|
|
|
|
|
(define-public jimtcl
|
|
|
|
|
(package
|
|
|
|
|
(name "jimtcl")
|
2020-11-09 17:27:22 -05:00
|
|
|
|
(version "0.80")
|
2016-10-29 21:22:30 -04:00
|
|
|
|
(source (origin
|
2020-01-24 03:26:53 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/msteveb/jimtcl")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-10-29 21:22:30 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-11-09 17:27:22 -05:00
|
|
|
|
"06rn60cx9sapc175vxvan87b8j5rkhh5gvvz7343xznzwlr0wcgk"))))
|
2016-10-29 21:22:30 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
2020-11-09 17:27:22 -05:00
|
|
|
|
;; This package doesn't use autoconf.
|
2016-10-29 21:22:30 -04:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2019-01-25 08:24:55 -05:00
|
|
|
|
(invoke "./configure"
|
2020-11-09 17:27:22 -05:00
|
|
|
|
(string-append "--prefix=" out)))))
|
|
|
|
|
(add-before 'check 'delete-failing-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; XXX All but 1 TTY tests fail (Inappropriate ioctl for device).
|
|
|
|
|
(delete-file "tests/tty.test")
|
|
|
|
|
#t))
|
|
|
|
|
)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
;; For tests.
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list inetutils)) ; for hostname
|
2020-01-24 03:31:18 -05:00
|
|
|
|
(home-page "http://jim.tcl.tk/index.html")
|
2016-10-29 21:22:30 -04:00
|
|
|
|
(synopsis "Small footprint Tcl implementation")
|
|
|
|
|
(description "Jim is a small footprint implementation of the Tcl programming
|
|
|
|
|
language.")
|
|
|
|
|
(license license:bsd-2)))
|
2016-10-28 13:36:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public openocd
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "openocd")
|
|
|
|
|
(version "0.11.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.code.sf.net/p/openocd/code")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qi4sixwvw1i7c64sy221fsjs82qf3asmdk86g74ds2jjm3f8pzp"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list autoconf
|
|
|
|
|
automake
|
|
|
|
|
libtool
|
|
|
|
|
base:which
|
|
|
|
|
pkg-config
|
|
|
|
|
texinfo))
|
|
|
|
|
(inputs
|
|
|
|
|
(list hidapi jimtcl libftdi libjaylink libusb-compat))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags
|
|
|
|
|
(append (list "LIBS=-lutil"
|
|
|
|
|
"--disable-werror"
|
|
|
|
|
"--enable-sysfsgpio"
|
|
|
|
|
"--disable-internal-jimtcl"
|
|
|
|
|
"--disable-internal-libjaylink")
|
|
|
|
|
(map (lambda (programmer)
|
|
|
|
|
(string-append "--enable-" programmer))
|
|
|
|
|
'("amtjtagaccel" "armjtagew" "buspirate" "ftdi"
|
|
|
|
|
"gw16012" "jlink" "opendous" "osbdm"
|
|
|
|
|
"parport" "aice" "cmsis-dap" "dummy" "jtag_vpi"
|
|
|
|
|
"remote-bitbang" "rlink" "stlink" "ti-icdi" "ulink"
|
|
|
|
|
"usbprog" "vsllink" "usb-blaster-2" "usb_blaster"
|
gnu: openocd: Explicitly enable all the programmers.
* gnu/packages/embedded.scm (openocd)[arguments]<#:configure-flags>: Add
"enable" flags for rshim, ft232r, xds110, cmsis-dap-v2, nulink, kitprog,
jtag_dpi, bcm2835gpio, imx_gpio, ep93xx, at91rm9200, sysfsgpio,
xlnx-pcie-xvc.
2021-12-16 14:22:07 -05:00
|
|
|
|
"presto" "openjtag" "rshim" "ft232r" "xds110"
|
|
|
|
|
"cmsis-dap-v2" "nulink" "kitprog" "jtag_dpi"
|
|
|
|
|
"bcm2835gpio" "imx_gpio" "ep93xx" "at91rm9200"
|
|
|
|
|
"sysfsgpio" "xlnx-pcie-xvc")))
|
2021-12-16 14:11:40 -05:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'bootstrap
|
|
|
|
|
(lambda _
|
2021-12-16 14:15:52 -05:00
|
|
|
|
;; Make build reproducible.
|
|
|
|
|
(substitute* "src/Makefile.am"
|
|
|
|
|
(("-DPKGBLDDATE=") "-DDISABLED_PKGBLDDATE="))
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(patch-shebang "bootstrap")
|
|
|
|
|
(invoke "./bootstrap" "nosubmodule")))
|
2022-01-13 15:53:14 -05:00
|
|
|
|
(add-after 'unpack 'change-udev-group
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "contrib/60-openocd.rules"
|
2022-01-13 15:53:14 -05:00
|
|
|
|
(("plugdev") "dialout"))))
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(add-after 'install 'install-udev-rules
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(install-file "contrib/60-openocd.rules"
|
|
|
|
|
(string-append
|
|
|
|
|
(assoc-ref outputs "out")
|
2022-01-13 15:53:14 -05:00
|
|
|
|
"/lib/udev/rules.d/")))))))
|
|
|
|
|
(home-page "https://openocd.org/")
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(synopsis "On-Chip Debugger")
|
|
|
|
|
(description "OpenOCD provides on-chip programming and debugging support
|
2016-10-28 13:36:06 -04:00
|
|
|
|
with a layered architecture of JTAG interface and TAP support.")
|
2021-12-16 14:11:40 -05:00
|
|
|
|
(license license:gpl2+)))
|
2016-12-25 15:53:50 -05:00
|
|
|
|
|
2017-10-15 10:20:30 -04:00
|
|
|
|
;; The commits for all propeller tools are the stable versions published at
|
|
|
|
|
;; https://github.com/propellerinc/propgcc in the release_1_0. According to
|
|
|
|
|
;; personal correspondence with the developers in July 2017, more recent
|
|
|
|
|
;; versions are currently incompatible with the "Simple Libraries".
|
2016-12-25 15:53:50 -05:00
|
|
|
|
|
|
|
|
|
(define propeller-binutils
|
|
|
|
|
(let ((xbinutils (cross-binutils "propeller-elf"))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(commit "4c46ecbe79ffbecd2ce918497ace5b956736b5a3")
|
|
|
|
|
(revision "2"))
|
2016-12-25 15:53:50 -05:00
|
|
|
|
(package
|
|
|
|
|
(inherit xbinutils)
|
|
|
|
|
(name "propeller-binutils")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 9)))
|
|
|
|
|
(source (origin (inherit (package-source xbinutils))
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/parallaxinc/propgcc")
|
2016-12-25 15:53:50 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-10-15 10:20:30 -04:00
|
|
|
|
"0w0dff3s7wv2d9m78a4jhckiik58q38wx6wpbba5hzbs4yxz35ck"))
|
2022-07-03 05:08:01 -04:00
|
|
|
|
(patches '())))
|
2016-12-25 15:53:50 -05:00
|
|
|
|
(arguments
|
2017-10-15 10:20:30 -04:00
|
|
|
|
`(;; FIXME: For some reason there are many test failures. It's not
|
2016-12-25 15:53:50 -05:00
|
|
|
|
;; obvious how to fix the failures.
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(add-after 'unpack 'chdir
|
|
|
|
|
(lambda _ (chdir "binutils") #t)))
|
|
|
|
|
,@(substitute-keyword-arguments (package-arguments xbinutils)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
`(cons "--disable-werror" ,flags)))))
|
2016-12-25 15:53:50 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("bison" ,bison)
|
2017-05-15 16:51:01 -04:00
|
|
|
|
("flex" ,flex)
|
2016-12-25 15:53:50 -05:00
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("dejagnu" ,dejagnu)
|
|
|
|
|
,@(package-native-inputs xbinutils))))))
|
|
|
|
|
|
2017-06-21 16:45:40 -04:00
|
|
|
|
(define-public propeller-gcc-6
|
2016-12-25 15:54:46 -05:00
|
|
|
|
(let ((xgcc (cross-gcc "propeller-elf"
|
2017-05-22 10:13:15 -04:00
|
|
|
|
#:xbinutils propeller-binutils))
|
2016-12-25 15:54:46 -05:00
|
|
|
|
(commit "b4f45a4725e0b6d0af59e594c4e3e35ca4105867")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package (inherit xgcc)
|
|
|
|
|
(name "propeller-gcc")
|
|
|
|
|
(version (string-append "6.0.0-" revision "." (string-take commit 9)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/totalspectrum/gcc-propeller")
|
2016-12-25 15:54:46 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0d9kdxm2fzanjqa7q5850kzbsfl0fqyaahxn74h6nkxxacwa11zb"))
|
|
|
|
|
(patches
|
|
|
|
|
(append
|
|
|
|
|
(origin-patches (package-source gcc-6))
|
|
|
|
|
(search-patches "gcc-cross-environment-variables.patch")))))
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(modify-inputs (package-native-inputs xgcc)
|
|
|
|
|
(prepend flex)))
|
2016-12-25 15:54:46 -05:00
|
|
|
|
;; All headers and cross libraries of the propeller toolchain are
|
|
|
|
|
;; installed under the "propeller-elf" prefix.
|
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "CROSS_C_INCLUDE_PATH")
|
|
|
|
|
(files '("propeller-elf/include")))
|
|
|
|
|
(search-path-specification
|
|
|
|
|
(variable "CROSS_LIBRARY_PATH")
|
|
|
|
|
(files '("propeller-elf/lib")))))
|
|
|
|
|
(home-page "https://github.com/totalspectrum/gcc-propeller")
|
|
|
|
|
(synopsis "GCC for the Parallax Propeller"))))
|
|
|
|
|
|
2017-06-15 11:06:47 -04:00
|
|
|
|
(define-public propeller-gcc-4
|
2017-06-21 16:45:40 -04:00
|
|
|
|
(let ((xgcc propeller-gcc-6)
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(commit "4c46ecbe79ffbecd2ce918497ace5b956736b5a3")
|
|
|
|
|
(revision "2"))
|
2017-06-15 11:06:47 -04:00
|
|
|
|
(package (inherit xgcc)
|
|
|
|
|
(name "propeller-gcc")
|
|
|
|
|
(version (string-append "4.6.1-" revision "." (string-take commit 9)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/parallaxinc/propgcc")
|
2017-06-15 11:06:47 -04:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-10-15 10:20:30 -04:00
|
|
|
|
"0w0dff3s7wv2d9m78a4jhckiik58q38wx6wpbba5hzbs4yxz35ck"))
|
|
|
|
|
(patch-flags (list "-p1" "--directory=gcc"))
|
2017-06-15 11:06:47 -04:00
|
|
|
|
(patches
|
|
|
|
|
(append
|
|
|
|
|
(origin-patches (package-source gcc-4.7))
|
2017-06-18 10:48:27 -04:00
|
|
|
|
(search-patches "gcc-4.6-gnu-inline.patch"
|
|
|
|
|
"gcc-cross-environment-variables.patch")))))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments propeller-gcc-6)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(add-after 'unpack 'chdir
|
|
|
|
|
(lambda _ (chdir "gcc") #t))))))
|
2018-02-11 05:41:15 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("gcc-4" ,gcc-4.9)
|
|
|
|
|
,@(package-native-inputs propeller-gcc-6)))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(home-page "https://github.com/parallaxinc/propgcc")
|
2017-08-07 10:02:04 -04:00
|
|
|
|
(supported-systems (delete "aarch64-linux" %supported-systems)))))
|
2017-06-15 11:06:47 -04:00
|
|
|
|
|
2017-06-21 16:45:40 -04:00
|
|
|
|
;; Version 6 is experimental and may not work correctly. This is why we
|
|
|
|
|
;; default to version 4, which is also used in the binary toolchain bundle
|
|
|
|
|
;; provided by Parallax Inc.
|
|
|
|
|
(define-public propeller-gcc propeller-gcc-4)
|
|
|
|
|
|
2017-10-15 10:20:30 -04:00
|
|
|
|
|
|
|
|
|
;; FIXME: We do not build the tiny library because that would require C++
|
|
|
|
|
;; headers, which are not available. This may require adding a propeller-elf
|
|
|
|
|
;; variant of the libstdc++ package.
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(define-public proplib
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(let ((commit "4c46ecbe79ffbecd2ce918497ace5b956736b5a3")
|
|
|
|
|
(revision "2"))
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "proplib")
|
|
|
|
|
(version (string-append "0.0.0-" revision "." (string-take commit 9)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/parallaxinc/propgcc")
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-10-15 10:20:30 -04:00
|
|
|
|
"0w0dff3s7wv2d9m78a4jhckiik58q38wx6wpbba5hzbs4yxz35ck"))))
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no tests
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
|
(string-append "BUILD=" (getcwd) "/build"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(add-after 'unpack 'chdir
|
|
|
|
|
(lambda _ (chdir "lib") #t))
|
|
|
|
|
(add-after 'chdir 'fix-Makefile
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
;; Control the installation time of the headers.
|
|
|
|
|
((" install-includes") ""))
|
|
|
|
|
#t))
|
|
|
|
|
;; The Makefile does not separate building from installation, so we
|
|
|
|
|
;; have to create the target directories at build time.
|
|
|
|
|
(add-before 'build 'create-target-directories
|
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
2019-01-25 08:25:48 -05:00
|
|
|
|
(apply invoke "make" "install-dirs" make-flags)))
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(add-before 'build 'set-cross-environment-variables
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(setenv "CROSS_LIBRARY_PATH"
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/propeller-elf/lib:"
|
|
|
|
|
(or (getenv "CROSS_LIBRARY_PATH") "")))
|
|
|
|
|
(setenv "CROSS_C_INCLUDE_PATH"
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/propeller-elf/include:"
|
|
|
|
|
(or (getenv "CROSS_C_INCLUDE_PATH") "")))
|
|
|
|
|
#t))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(add-before 'install 'install-includes
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
2019-01-25 08:25:48 -05:00
|
|
|
|
(apply invoke "make" "install-includes" make-flags))))))
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list propeller-gcc propeller-binutils perl))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(home-page "https://github.com/parallaxinc/propgcc")
|
2016-12-25 15:55:10 -05:00
|
|
|
|
(synopsis "C library for the Parallax Propeller")
|
|
|
|
|
(description "This is a C library for the Parallax Propeller
|
|
|
|
|
micro-controller.")
|
|
|
|
|
;; Most of the code is released under the Expat license. Some of the
|
|
|
|
|
;; included code is public domain and some changes are BSD licensed.
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
2016-12-25 15:55:28 -05:00
|
|
|
|
(define-public propeller-toolchain
|
|
|
|
|
(package
|
|
|
|
|
(name "propeller-toolchain")
|
|
|
|
|
(version (package-version propeller-gcc))
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-27 20:14:05 -04:00
|
|
|
|
(arguments '(#:builder (begin (mkdir %output) #t)))
|
2016-12-25 15:55:28 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("binutils" ,propeller-binutils)
|
|
|
|
|
("libc" ,proplib)
|
|
|
|
|
("gcc" ,propeller-gcc)))
|
|
|
|
|
(synopsis "Complete GCC tool chain for Propeller micro-controllers")
|
|
|
|
|
(description "This package provides a complete GCC tool chain for
|
|
|
|
|
Propeller micro-controller development.")
|
|
|
|
|
(home-page (package-home-page propeller-gcc))
|
|
|
|
|
(license (package-license propeller-gcc))))
|
|
|
|
|
|
2016-12-25 15:55:48 -05:00
|
|
|
|
(define-public openspin
|
|
|
|
|
(package
|
|
|
|
|
(name "openspin")
|
|
|
|
|
(version "1.00.78")
|
|
|
|
|
(source (origin
|
2020-01-24 03:07:58 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/parallaxinc/OpenSpin")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-12-25 15:55:48 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-01-24 03:07:58 -05:00
|
|
|
|
"0ghk8hj4717ydhqzx2pfs6737s1cxng6sgg2xgbkwvcfclxdbrd0"))))
|
2016-12-25 15:55:48 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no tests
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-after 'unpack 'remove-timestamp
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "SpinSource/openspin.cpp"
|
|
|
|
|
((" Compiled on.*$") "\\n\");"))
|
|
|
|
|
#t))
|
|
|
|
|
;; Makefile does not include "install" target
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/bin")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(install-file "build/openspin" bin)
|
|
|
|
|
#t))))))
|
|
|
|
|
(home-page "https://github.com/parallaxinc/OpenSpin")
|
|
|
|
|
(synopsis "Spin/PASM compiler for the Parallax Propeller")
|
|
|
|
|
(description "OpenSpin is a compiler for the Spin/PASM language of the
|
|
|
|
|
Parallax Propeller. It was ported from Chip Gracey's original x86 assembler
|
|
|
|
|
code.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(define-public propeller-load
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(let ((commit "4c46ecbe79ffbecd2ce918497ace5b956736b5a3")
|
|
|
|
|
(revision "2"))
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(package
|
|
|
|
|
(name "propeller-load")
|
|
|
|
|
(version "3.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/parallaxinc/propgcc")
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-10-15 10:20:30 -04:00
|
|
|
|
"0w0dff3s7wv2d9m78a4jhckiik58q38wx6wpbba5hzbs4yxz35ck"))))
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no tests
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list "OS=linux"
|
|
|
|
|
(string-append "TARGET=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(add-after 'unpack 'chdir
|
|
|
|
|
(lambda _ (chdir "loader") #t))
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list openspin propeller-toolchain))
|
2017-10-15 10:20:30 -04:00
|
|
|
|
(home-page "https://github.com/parallaxinc/propgcc")
|
2016-12-25 15:56:04 -05:00
|
|
|
|
(synopsis "Loader for Parallax Propeller micro-controllers")
|
|
|
|
|
(description "This package provides the tool @code{propeller-load} to
|
|
|
|
|
upload binaries to a Parallax Propeller micro-controller.")
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
2016-12-25 15:56:22 -05:00
|
|
|
|
(define-public spin2cpp
|
|
|
|
|
(package
|
|
|
|
|
(name "spin2cpp")
|
2018-02-26 22:46:57 -05:00
|
|
|
|
(version "3.6.4")
|
2016-12-25 15:56:22 -05:00
|
|
|
|
(source (origin
|
2020-01-24 03:16:07 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/totalspectrum/spin2cpp")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-12-25 15:56:22 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-01-24 03:16:07 -05:00
|
|
|
|
"0wznqvsckzzz4hdy2rpvj6jqpxw4yn7i0c7zxfm6i46k8gg9327b"))))
|
2016-12-25 15:56:22 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;; The tests assume that a micro-controller is connected.
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'set-cross-environment-variables
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "CROSS_LIBRARY_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "propeller-toolchain")
|
|
|
|
|
"/propeller-elf/lib"))
|
|
|
|
|
(setenv "CROSS_C_INCLUDE_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "propeller-toolchain")
|
|
|
|
|
"/propeller-elf/include"))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/bin")))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(install-file (string-append "build/" file)
|
|
|
|
|
bin))
|
|
|
|
|
'("testlex" "spin2cpp" "fastspin")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list bison propeller-load propeller-toolchain))
|
2016-12-25 15:56:22 -05:00
|
|
|
|
(home-page "https://github.com/totalspectrum/spin2cpp")
|
|
|
|
|
(synopsis "Convert Spin code to C, C++, or PASM code")
|
|
|
|
|
(description "This is a set of tools for converting the Spin language for
|
|
|
|
|
the Parallax Propeller micro-controller into C or C++ code, into PASM, or even
|
|
|
|
|
directly into an executable binary. The binaries produced use LMM PASM, so
|
|
|
|
|
they are much faster than regular Spin bytecodes (but also quite a bit
|
|
|
|
|
larger).")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2016-12-25 15:56:42 -05:00
|
|
|
|
(define-public spinsim
|
|
|
|
|
(let ((commit "66915a7ad1a3a2cf990a725bb341fab8d11eb620")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package
|
|
|
|
|
(name "spinsim")
|
|
|
|
|
(version (string-append "0.75-" revision "." (string-take commit 9)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/parallaxinc/spinsim")
|
2016-12-25 15:56:42 -05:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" commit "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1n9kdhlxsdx7bz6c80w8dhi96zp633gd6qs0x9i4ii8qv4i7sj5k"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no tests
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/bin")))
|
|
|
|
|
(install-file "build/spinsim" bin))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://github.com/parallaxinc/spinsim")
|
|
|
|
|
(synopsis "Spin simulator")
|
|
|
|
|
(description "This package provides the tool @code{spinsim}, a simulator
|
|
|
|
|
and simple debugger for Spin programs written for a Parallax Propeller
|
|
|
|
|
micro-controller. Spinsim supports execution from cog memory and hub
|
|
|
|
|
execution, but it does not support multi-tasking. It supports about
|
|
|
|
|
two-thirds of the opcodes in the P2 instruction set.")
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
2016-12-25 15:56:57 -05:00
|
|
|
|
(define-public propeller-development-suite
|
|
|
|
|
(package
|
|
|
|
|
(name "propeller-development-suite")
|
|
|
|
|
(version (package-version propeller-gcc))
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-27 20:14:05 -04:00
|
|
|
|
(arguments '(#:builder (begin (mkdir %output) #t)))
|
2016-12-25 15:56:57 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("toolchain" ,propeller-toolchain)
|
|
|
|
|
("openspin" ,openspin)
|
|
|
|
|
("propeller-load" ,propeller-load)
|
|
|
|
|
("spin2cpp" ,spin2cpp)
|
|
|
|
|
("spinsim" ,spinsim)))
|
|
|
|
|
(synopsis "Complete development suite for Propeller micro-controllers")
|
|
|
|
|
(description "This meta-package provides a complete environment for the
|
|
|
|
|
development with Parallax Propeller micro-controllers. It includes the GCC
|
|
|
|
|
toolchain, the loader, the Openspin compiler, the Spin2cpp tool, and the Spin
|
|
|
|
|
simulator.")
|
|
|
|
|
(home-page (package-home-page propeller-gcc))
|
|
|
|
|
(license (package-license propeller-gcc))))
|
2017-02-19 11:36:20 -05:00
|
|
|
|
|
|
|
|
|
(define-public binutils-vc4
|
|
|
|
|
(let ((commit "708acc851880dbeda1dd18aca4fd0a95b2573b36"))
|
|
|
|
|
(package
|
|
|
|
|
(name "binutils-vc4")
|
|
|
|
|
(version (string-append "2.23.51-0." (string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/puppeh/binutils-vc4")
|
2017-02-19 11:36:20 -05:00
|
|
|
|
(commit commit)))
|
2017-03-22 10:08:36 -04:00
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
2017-02-19 11:36:20 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1kdrz6fki55lm15rwwamn74fnqpy0zlafsida2zymk76n3656c63"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("--target=vc4-elf"
|
|
|
|
|
"--disable-werror"
|
|
|
|
|
"--enable-cgen-maint")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'unpack-cgen
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(copy-recursively (string-append (assoc-ref inputs "cgen")
|
|
|
|
|
"/cgen") "cgen")
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack-cgen 'fix-cgen-guile
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "opcodes/Makefile.in"
|
|
|
|
|
(("guile\\{,-\\}1.8") "guile"))
|
2018-03-23 23:54:50 -04:00
|
|
|
|
(invoke "which" "guile"))))))
|
2017-02-19 11:36:20 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("cgen"
|
|
|
|
|
,(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/puppeh/cgen")
|
2017-02-19 11:36:20 -05:00
|
|
|
|
(commit "d8e2a9eb70425f180fdd5bfd032884b0855f2032")))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14b3h2ji740s8zq5vwm4qdcxs4aa4wxi6wb9di3bv1h39x14nyr9"))))
|
|
|
|
|
("texinfo" ,texinfo)
|
2017-05-15 16:51:01 -04:00
|
|
|
|
("flex" ,flex)
|
2017-02-19 11:36:20 -05:00
|
|
|
|
("bison" ,bison)
|
|
|
|
|
("guile-1.8" ,guile-1.8)
|
|
|
|
|
("which" ,base:which)))
|
|
|
|
|
(synopsis "Binutils for VC4")
|
|
|
|
|
(description "This package provides @code{binutils} for VideoCore IV,
|
|
|
|
|
the Raspberry Pi chip.")
|
|
|
|
|
(license license:gpl3+)
|
|
|
|
|
(home-page "https://github.com/puppeh/vc4-toolchain/"))))
|
2017-04-18 13:42:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public gcc-vc4
|
2020-11-16 08:54:04 -05:00
|
|
|
|
(let ((commit "0fe4b83897341742f9df65797474cb0feab4b377")
|
|
|
|
|
(xgcc (cross-gcc "vc4-elf" #:xgcc gcc-6 #:xbinutils binutils-vc4)))
|
2017-04-18 13:42:19 -04:00
|
|
|
|
(package (inherit xgcc)
|
|
|
|
|
(name "gcc-vc4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/puppeh/gcc-vc4")
|
2017-04-18 13:42:19 -04:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name
|
|
|
|
|
"-"
|
|
|
|
|
(package-version xgcc)
|
|
|
|
|
"-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-11-16 08:54:04 -05:00
|
|
|
|
"0kvaq4s0assvinmmicwqp07d0wwldcw0fv6f4k13whp3q5909jnr"))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches "gcc-6-fix-buffer-size.patch"
|
|
|
|
|
"gcc-6-fix-isl-includes.patch"))))
|
2017-04-18 13:42:19 -04:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(modify-inputs (package-native-inputs xgcc)
|
|
|
|
|
(prepend flex)))
|
2017-04-18 13:42:19 -04:00
|
|
|
|
(synopsis "GCC for VC4")
|
|
|
|
|
(description "This package provides @code{gcc} for VideoCore IV,
|
|
|
|
|
the Raspberry Pi chip."))))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(define-public python-libmpsse
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(package
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(name "python-libmpsse")
|
2020-05-18 13:07:23 -04:00
|
|
|
|
(version "1.4.1")
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/daym/libmpsse")
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name "libmpsse-checkout")
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-05-18 13:07:23 -04:00
|
|
|
|
"1rypfb96k2szqgygp3jnwg2zq9kwmfz0460dsahn3r2vkzml8wn7"))))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list libftdi python))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list pkg-config swig base:which))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests exist.
|
2019-09-26 09:58:48 -04:00
|
|
|
|
#:parallel-build? #f ; Would be buggy.
|
2017-10-21 15:03:03 -04:00
|
|
|
|
#:make-flags
|
|
|
|
|
(list (string-append "CFLAGS=-Wall -fPIC -fno-strict-aliasing -g -O2 "
|
|
|
|
|
"$(shell pkg-config --cflags libftdi1)"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'set-environment-up
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(let ((python (assoc-ref inputs "python")))
|
|
|
|
|
(chdir "src")
|
|
|
|
|
(setenv "PYDEV" (string-append python
|
|
|
|
|
"/include/python"
|
2020-05-15 16:54:33 -04:00
|
|
|
|
,(version-major+minor (package-version python))))
|
2019-09-26 09:58:48 -04:00
|
|
|
|
#t)))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(replace 'install
|
2019-09-26 09:58:48 -04:00
|
|
|
|
(lambda* (#:key inputs outputs make-flags #:allow-other-keys #:rest args)
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(out-python (string-append out
|
2019-09-26 09:58:48 -04:00
|
|
|
|
"/lib/python"
|
|
|
|
|
,(version-major+minor (package-version python))
|
|
|
|
|
"/site-packages"))
|
2017-10-21 15:03:03 -04:00
|
|
|
|
(install (assoc-ref %standard-phases 'install)))
|
|
|
|
|
(install #:make-flags (cons (string-append "PYLIB=" out-python)
|
|
|
|
|
make-flags))))))))
|
|
|
|
|
(home-page "https://code.google.com/archive/p/libmpsse/")
|
|
|
|
|
(synopsis "Python library for MPSSE SPI I2C JTAG adapter by FTDI")
|
|
|
|
|
(description "This package provides a library in order to support the
|
|
|
|
|
MPSSE (Multi-Protocol Synchronous Serial Engine) adapter by FTDI that can do
|
|
|
|
|
SPI, I2C, JTAG.")
|
|
|
|
|
(license license:gpl2+)))
|
2017-12-10 03:50:21 -05:00
|
|
|
|
|
|
|
|
|
(define-public picprog
|
|
|
|
|
(package
|
|
|
|
|
(name "picprog")
|
|
|
|
|
(version "1.9.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://www.iki.fi/hyvatti/pic/picprog-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-10 05:38:26 -05:00
|
|
|
|
"1r04hg1n3v2jf915qr05la3q9cxy7a5jnh9cc98j04lh6c9p4x85"))
|
|
|
|
|
(patches (search-patches "picprog-non-intel-support.patch"))))
|
2017-12-10 03:50:21 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests exist.
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-paths
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("/usr/local") (assoc-ref outputs "out"))
|
2017-12-10 05:38:26 -05:00
|
|
|
|
((" -o 0 -g 0 ") " ")
|
|
|
|
|
(("testport") ""))
|
2017-12-10 03:50:21 -05:00
|
|
|
|
#t))
|
|
|
|
|
(add-before 'install 'mkdir
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(mkdir-p (string-append out "/bin"))
|
|
|
|
|
(mkdir-p (string-append out "/man/man1"))
|
|
|
|
|
#t)))
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(synopsis "Programs Microchip's PIC microcontrollers")
|
|
|
|
|
(description "This program programs Microchip's PIC microcontrollers.")
|
2020-01-18 19:28:54 -05:00
|
|
|
|
(home-page "https://hyvatti.iki.fi/~jaakko/pic/picprog.html")
|
2017-12-10 03:50:21 -05:00
|
|
|
|
(license license:gpl3+)))
|
2018-01-03 14:26:55 -05:00
|
|
|
|
|
|
|
|
|
(define-public fc-host-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "fc-host-tools")
|
2021-05-18 09:49:41 -04:00
|
|
|
|
(version "15")
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp.freecalypso.org/pub/GSM/"
|
|
|
|
|
"FreeCalypso/fc-host-tools-r" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-05-18 09:49:41 -04:00
|
|
|
|
"17v3xc44mmlvp0irwm1p55zdgzd31ic3nsjxnv8y28a1i85103cv"))))
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests exist.
|
|
|
|
|
#:make-flags
|
2019-03-08 13:33:04 -05:00
|
|
|
|
(list (string-append "INSTALL_PREFIX=" %output)
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(string-append "INCLUDE_INSTALL_DIR=" %output "include/rvinterf"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2019-09-28 09:25:50 -04:00
|
|
|
|
(add-after 'unpack 'patch-installation-paths
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2021-05-18 09:55:12 -04:00
|
|
|
|
(substitute* (cons* "miscutil/c139explore"
|
|
|
|
|
"miscutil/pirexplore"
|
|
|
|
|
(find-files "." "^(.*\\.[ch]|Makefile)$"))
|
2021-05-18 09:49:41 -04:00
|
|
|
|
(("/opt/freecalypso/bin/fc-simtool")
|
|
|
|
|
"fc-simtool")
|
|
|
|
|
(("/opt/freecalypso/bin/fc-uicc-tool")
|
|
|
|
|
"fc-uicc-tool")
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(("/opt/freecalypso/loadtools")
|
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib/freecalypso/loadtools"))
|
2019-03-16 19:42:07 -04:00
|
|
|
|
(("\\$\\{INSTALL_PREFIX\\}/loadtools")
|
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib/freecalypso/loadtools"))
|
2019-09-28 09:25:50 -04:00
|
|
|
|
(("\\$\\{INSTALL_PREFIX\\}/target-bin")
|
|
|
|
|
(string-append (assoc-ref outputs "out") "/lib/freecalypso/target-bin"))
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(("/opt/freecalypso")
|
|
|
|
|
(assoc-ref outputs "out")))
|
2019-09-28 09:25:50 -04:00
|
|
|
|
#t))
|
|
|
|
|
(delete 'configure))))
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list libx11))
|
2018-01-03 14:26:55 -05:00
|
|
|
|
(synopsis "Freecalypso host tools")
|
2019-09-28 09:39:24 -04:00
|
|
|
|
(description "This package provides some tools for debugging FreeCalypso phones and the FreeCalypso FCDEV3B dev board.
|
2018-01-03 14:26:55 -05:00
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
@item fc-e1decode: Decodes a binary Melody E1 file into an ASCII source file.
|
|
|
|
|
@item fc-e1gen: Encodes an ASCII Melody E1 file into a binary Melody E1 file.
|
|
|
|
|
@item fc-fr2tch: Converts a GSM 06.10 speech recording from libgsm to hex
|
|
|
|
|
strings of TCH bits to be fed to the GSM 05.03 channel encoder of a TI
|
|
|
|
|
Calypso GSM device.
|
|
|
|
|
@item fc-tch2fr: Converts hex strings of TCH bits to libgsm.
|
|
|
|
|
@item fc-gsm2vm: utility converts a GSM 06.10 speech sample from the libgsm
|
|
|
|
|
source format into a voice memo file that can be uploaded into the FFS of a
|
|
|
|
|
FreeCalypso device and played with the audio_vm_play_start() API or the
|
|
|
|
|
AT@@VMP command that invokes the latter.
|
|
|
|
|
@item fc-rgbconv: Convers RGB 5:6:5 to RGB 8:8:8 and vice versa.
|
|
|
|
|
@item rvinterf: Communicates with a TI Calypso GSM device via RVTMUX.
|
|
|
|
|
@item rvtdump: produces a human-readable dump of all output emitted by a
|
|
|
|
|
TI-based GSM fw on the RVTMUX binary packet interface.
|
|
|
|
|
@item fc-shell: FreeCalypso firmwares have a feature of our own invention
|
|
|
|
|
(not present in any pre-existing ones) to accept AT commands over the RVTMUX
|
|
|
|
|
interface. It is useful when no second UART is available for a dedicated
|
|
|
|
|
standard AT command interface. fc-shell is the tool that allows you to send
|
|
|
|
|
AT commands to the firmware in this manner.
|
|
|
|
|
@item fc-memdump: Captures a memory dump from a GSM device.
|
|
|
|
|
@item fc-serterm: Trivial serial terminal. Escapes binary chars.
|
|
|
|
|
@item fc-fsio: Going through rvinterf, this tool connects to GSM devices and
|
|
|
|
|
allows you to manipulate the device's flash file system.
|
|
|
|
|
@item tiaud-compile: Compiles an audio mode configuration table for TI's
|
|
|
|
|
Audio Service from our own ASCII source format into the binary format for
|
|
|
|
|
uploading into FreeCalypso GSM device FFS with fc-fsio.
|
|
|
|
|
@item tiaud-decomp: Decodes TI's audio mode configuration files read out of
|
|
|
|
|
FFS into our own ASCII format.
|
|
|
|
|
@item tiaud-mkvol: Generates the *.vol binary files which need to accompany
|
|
|
|
|
the main *.cfg ones.
|
|
|
|
|
@item fc-compalram: Allows running programs on the device without writing
|
|
|
|
|
them to flash storage.
|
|
|
|
|
@item fc-xram: Allows running programs on the device without writing them
|
|
|
|
|
to flash storage.
|
|
|
|
|
@item fc-iram: Allows running programs on the device without writing them
|
|
|
|
|
to flash storage.
|
|
|
|
|
@item fc-loadtool: Writes programs to the device's flash storage.
|
2021-05-18 09:49:41 -04:00
|
|
|
|
@item fc-simint: Loads and runs simagent on the phone, then calls fc-simtool
|
|
|
|
|
(see @url{https://www.freecalypso.org/hg/fc-sim-tools,fc-sim-tools
|
|
|
|
|
repository}) on the host to connect to it.
|
2018-01-03 14:26:55 -05:00
|
|
|
|
@item pirffs: Allows listing and extracting FFS content captured as a raw
|
|
|
|
|
flash image from Pirelli phones.
|
|
|
|
|
@item mokoffs: Allows listing and extracting FFS content captured as a raw
|
|
|
|
|
flash image from OpenMoko phones.
|
|
|
|
|
@item tiffs: Allows listing and extracting FFS content captured as a raw
|
|
|
|
|
flash image from TI phones.
|
|
|
|
|
@item c139explore: Run-from-RAM program for C139 phones that
|
|
|
|
|
exercises their peripheral hardware: LCD, keypad backlight, buzzer, vibrator.
|
|
|
|
|
@item pirexplore: Run-from-RAM program for Pirelli DP-L10 phones that
|
|
|
|
|
exercises their peripheral hardware, primarily their LCD.
|
|
|
|
|
@item tfc139: Breaks into Mot C1xx phones via shellcode injection, allowing
|
|
|
|
|
you to reflash locked phones with new firmware with fc-loadtool.
|
|
|
|
|
@item ctracedec: GSM firmwares built in TI's Windows environment have a
|
|
|
|
|
compressed trace misfeature whereby many of the ASCII strings
|
|
|
|
|
in debug trace messages get replaced with numeric indices at
|
|
|
|
|
build time, and these numeric indices are all that gets emitted
|
|
|
|
|
on the RVTMUX serial channel. This tools decodes these numeric indices
|
|
|
|
|
back to strings in trace output.
|
|
|
|
|
@item fc-cal2text: This utility takes a dump of TI's /gsm/rf flash file system
|
|
|
|
|
directory subtree as input (either extracted in vitro with tiffs
|
|
|
|
|
or read out in vivo with fc-fsio) and converts all RF tables
|
|
|
|
|
found therein into a readable ASCII format.
|
|
|
|
|
@item imei-luhn: Computes or verifies the Luhn check digit of an IMEI number.
|
|
|
|
|
@item fc-dspapidump: Reads and dumps the contents of the DSP API RAM in a
|
|
|
|
|
target Calypso GSM device.
|
|
|
|
|
@item fc-vm2hex: Converts the old-fashioned (non-AMR) voice memo files read
|
|
|
|
|
out of FFS into hex strings.
|
|
|
|
|
@item fc-buzplay: Plays piezoelectic buzzer melodies on an actual
|
|
|
|
|
Calypso device equipped with such a buzzer (Mot C1xx, TI's D-Sample board,
|
|
|
|
|
our planned future HSMBP) by loading a buzplayer agent onto the target and
|
|
|
|
|
feeding melodies to be played to it.
|
|
|
|
|
@item fc-tmsh: TI-based GSM firmwares provide a rich set of Test Mode commands
|
|
|
|
|
that can be issued through the RVTMUX (debug trace) serial channel.
|
|
|
|
|
This program is our test mode shell for sending Test Mode commands to targets
|
|
|
|
|
and displaying decoded target responses.
|
2019-09-28 09:39:24 -04:00
|
|
|
|
@item fcup-smsend: Send a short message via SMS
|
|
|
|
|
@item fcup-smsendmult: Send multiple short messages via SMS in one go
|
|
|
|
|
@item fcup-smsendpdu: Send multiple short messages given in PDU format via SMS
|
|
|
|
|
@item sms-pdu-decode: Decode PDU format messages
|
2020-08-22 14:26:17 -04:00
|
|
|
|
@item fc-dspromdump: Dump DSP ROM.
|
|
|
|
|
@item pcm-sms-decode: Decode /pcm/SMS binary files read out of FFS maintained
|
|
|
|
|
by Pirelli DP-L10. Display the SMS in human-readable form.
|
|
|
|
|
@item srec-regions: Parse S-record (TI's *.m0), identify the set of
|
|
|
|
|
discontiguous regions into which this SREC image deposits bits, and list
|
|
|
|
|
these identified regions.
|
2018-01-03 14:26:55 -05:00
|
|
|
|
@end enumerate")
|
|
|
|
|
(home-page "https://www.freecalypso.org/")
|
|
|
|
|
(license license:public-domain)))
|
2018-10-02 10:32:03 -04:00
|
|
|
|
|
2021-10-18 13:16:54 -04:00
|
|
|
|
(define-public stcgal
|
|
|
|
|
(package
|
|
|
|
|
(name "stcgal")
|
|
|
|
|
(version "1.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
;; Neither the unit tests nor the "doc" subdirectory referred to
|
|
|
|
|
;; by stcgal's setup.py is present in the source distribution on
|
|
|
|
|
;; PyPI, so we fetch directly from the project's git repository
|
|
|
|
|
;; instead.
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/grigorig/stcgal")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1d10qxyghz66zp7iqpm8q8rfv9jz9n609gxmfcav1lssmf1dlyk3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list python-pyserial python-pyusb python-tqdm))
|
2021-10-18 13:16:54 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
;; For tests.
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list python-pyyaml))
|
2021-10-18 13:16:54 -04:00
|
|
|
|
(home-page "https://github.com/grigorig/stcgal")
|
|
|
|
|
(synopsis "Programmer for STC 8051-compatible microcontrollers")
|
|
|
|
|
(description "stcgal is a command-line flash-programming tool for STC
|
|
|
|
|
MCU's line of Intel 8051-compatible microcontrollers, including those in the
|
|
|
|
|
STC89, STC90, STC10, STC11, STC12, STC15 and STC8 series.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2018-10-02 10:32:03 -04:00
|
|
|
|
(define-public stlink
|
|
|
|
|
(package
|
|
|
|
|
(name "stlink")
|
2022-01-04 06:07:43 -05:00
|
|
|
|
(version "1.7.0")
|
2018-10-02 10:32:03 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-01-24 03:24:12 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2022-01-04 06:08:58 -05:00
|
|
|
|
(url "https://github.com/stlink-org/stlink")
|
2020-01-24 03:24:12 -05:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-02 10:32:03 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-01-04 06:07:43 -05:00
|
|
|
|
"03xypffpbp4imrczbxmq69vgkr7mbp0ps9dk815br5wwlz6vgygl"))))
|
2018-10-02 10:32:03 -04:00
|
|
|
|
(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
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list libusb))
|
2018-10-02 10:32:03 -04:00
|
|
|
|
(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.")
|
2022-01-04 06:07:43 -05:00
|
|
|
|
(home-page "https://github.com/stlink-org/stlink")
|
2018-10-02 10:32:03 -04:00
|
|
|
|
;; The flashloaders/stm32l0x.s and flashloaders/stm32lx.s source files are
|
|
|
|
|
;; licensed under the GPLv2+.
|
|
|
|
|
(license (list license:bsd-3 license:gpl2+))))
|
2019-12-05 10:50:21 -05:00
|
|
|
|
|
|
|
|
|
(define-public west
|
|
|
|
|
(package
|
|
|
|
|
(name "west")
|
2022-05-18 10:38:59 -04:00
|
|
|
|
(version "0.13.1")
|
2019-12-05 10:50:21 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "west" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-05-18 10:38:59 -04:00
|
|
|
|
"1hw9qas8ry8prn24iqka8kw2nv7ndxr95mvwr5lww53w2sr7p807"))))
|
2019-12-05 10:50:21 -05:00
|
|
|
|
(propagated-inputs
|
2022-05-18 10:38:59 -04:00
|
|
|
|
(list python-colorama
|
|
|
|
|
python-packaging
|
|
|
|
|
python-pykwalify
|
2021-12-13 11:18:24 -05:00
|
|
|
|
python-pyyaml))
|
2019-12-05 10:50:21 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/zephyrproject-rtos/west")
|
|
|
|
|
(synopsis "Zephyr RTOS Project meta-tool")
|
|
|
|
|
(description "West is the swiss-army knife command line tool of the Zephyr
|
|
|
|
|
project. Its built-in commands provide a multiple repository management
|
|
|
|
|
system with features inspired by Google’s Repo tool and Git submodules. West
|
|
|
|
|
simplifies configuration and is also pluggable: you can write your own west
|
|
|
|
|
\"extension commands\" which add additional features to west. Zephyr uses
|
|
|
|
|
this feature to provide conveniences for building applications, flashing and
|
|
|
|
|
debugging them, and more.")
|
|
|
|
|
(license license:expat)))
|
2020-06-15 11:42:43 -04:00
|
|
|
|
|
|
|
|
|
(define-public ebusd
|
|
|
|
|
(package
|
|
|
|
|
(name "ebusd")
|
|
|
|
|
(version "3.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Don't append '.git' to GitHub uris.
* gnu/packages/admin.scm (nmrpflash)[source]: Remove '.git' from URI.
* gnu/packages/aidc.scm (zxing-cpp),
* gnu/packages/assembly.scm (mbuild),
* gnu/packages/audio.scm (opensles, wildmidi, tinyalsa),
* gnu/packages/browser-extensions.scm (ublock-origin-chromium),
* gnu/packages/check.scm (mutest),
* gnu/packages/compression.scm (unshield),
* gnu/packages/coq.scm (subset),
* gnu/packages/dictionaries.scm (translate-shell),
* gnu/packages/disk.scm (memkind),
* gnu/packages/documentation.scm (latex2html),
* gnu/packages/emacs-xyz.scm (emacs-chronometrist,
emacs-flycheck-ledger, emacs-counsel-notmuch, emacs-spaceline,
emacs-org-generate),
* gnu/packages/embedded.scm (ebusd, ebusd-configuration),
* gnu/packages/enchant.scm (nuspell),
* gnu/packages/fontutils.scm (woff2),
* gnu/packages/geo.scm (memphis),
* gnu/packages/gimp.scm (mrg),
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-appindicator),
* gnu/packages/gnome.scm (parlatype),
* gnu/packages/golang.scm (go-github-com-tv42-httpunix,
go-github-com-ayufan-golang-kardianos-service),
* gnu/packages/graphics.scm (eglexternalplatform, egl-wayland, mmm,
directfb, flux),
* gnu/packages/gstreamer.scm (openni2, ccextractor, libvisual,
graphene),
* gnu/packages/guile-xyz.scm (guile-srfi-180, guile-torrent),
* gnu/packages/image.scm (openjpeg-data),
* gnu/packages/java.scm (javacc),
* gnu/packages/language.scm (liblouis, liblouisutdml),
* gnu/packages/linux.scm (pamela, ttyebus),
* gnu/packages/lxqt.scm (lxqt-connman-applet),
* gnu/packages/mail.scm (libetpan),
* gnu/packages/man.scm (ronn),
* gnu/packages/music.scm (tascam-gtk, artyfx),
* gnu/packages/networking.scm (srt, lksctp-tools, nng, nanomsg),
* gnu/packages/python-crypto.scm (pure-python-otr),
* gnu/packages/qt.scm (qtspell),
* gnu/packages/raspberry-pi.scm (raspi-gpio, raspi-open-firmware),
* gnu/packages/rdp.scm (freerdp),
* gnu/packages/ruby.scm (ruby-prawn-templates, ruby-treetop, ruby-gimme,
ruby-standard, ruby-rubocop-ast, ruby-rexml, ruby-range-compressor,
ruby-regexp-property-values, ruby-regexp-parser, ruby-rubocop,
ruby-pdf-reader, ruby-pdf-inspector, ruby-prawn),
* gnu/packages/syncthing.scm (syncthing-gtk),
* gnu/packages/video.scm (svt-hevc, mediasdk, libvideogfx, libde265,
tslib),
* gnu/packages/xml.scm (libxmlb, libxmlplusplus)[source]: Same.
2020-11-19 13:18:54 -05:00
|
|
|
|
(url "https://github.com/john30/ebusd")
|
2020-06-15 11:42:43 -04:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0iva70bam7wdx60bpd3an9kxr28zxlvp3vprivgqshwwdhqa0hzp"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'install-config
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((config-destination
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/share/ebusd")))
|
|
|
|
|
(copy-recursively (string-append (assoc-ref inputs "config")
|
|
|
|
|
"/ebusd-2.1.x")
|
|
|
|
|
config-destination)
|
|
|
|
|
#t))))))
|
2020-09-11 20:05:57 -04:00
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list mosquitto))
|
2020-06-15 11:42:43 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("automake" ,automake)
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("config"
|
|
|
|
|
,(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Don't append '.git' to GitHub uris.
* gnu/packages/admin.scm (nmrpflash)[source]: Remove '.git' from URI.
* gnu/packages/aidc.scm (zxing-cpp),
* gnu/packages/assembly.scm (mbuild),
* gnu/packages/audio.scm (opensles, wildmidi, tinyalsa),
* gnu/packages/browser-extensions.scm (ublock-origin-chromium),
* gnu/packages/check.scm (mutest),
* gnu/packages/compression.scm (unshield),
* gnu/packages/coq.scm (subset),
* gnu/packages/dictionaries.scm (translate-shell),
* gnu/packages/disk.scm (memkind),
* gnu/packages/documentation.scm (latex2html),
* gnu/packages/emacs-xyz.scm (emacs-chronometrist,
emacs-flycheck-ledger, emacs-counsel-notmuch, emacs-spaceline,
emacs-org-generate),
* gnu/packages/embedded.scm (ebusd, ebusd-configuration),
* gnu/packages/enchant.scm (nuspell),
* gnu/packages/fontutils.scm (woff2),
* gnu/packages/geo.scm (memphis),
* gnu/packages/gimp.scm (mrg),
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-appindicator),
* gnu/packages/gnome.scm (parlatype),
* gnu/packages/golang.scm (go-github-com-tv42-httpunix,
go-github-com-ayufan-golang-kardianos-service),
* gnu/packages/graphics.scm (eglexternalplatform, egl-wayland, mmm,
directfb, flux),
* gnu/packages/gstreamer.scm (openni2, ccextractor, libvisual,
graphene),
* gnu/packages/guile-xyz.scm (guile-srfi-180, guile-torrent),
* gnu/packages/image.scm (openjpeg-data),
* gnu/packages/java.scm (javacc),
* gnu/packages/language.scm (liblouis, liblouisutdml),
* gnu/packages/linux.scm (pamela, ttyebus),
* gnu/packages/lxqt.scm (lxqt-connman-applet),
* gnu/packages/mail.scm (libetpan),
* gnu/packages/man.scm (ronn),
* gnu/packages/music.scm (tascam-gtk, artyfx),
* gnu/packages/networking.scm (srt, lksctp-tools, nng, nanomsg),
* gnu/packages/python-crypto.scm (pure-python-otr),
* gnu/packages/qt.scm (qtspell),
* gnu/packages/raspberry-pi.scm (raspi-gpio, raspi-open-firmware),
* gnu/packages/rdp.scm (freerdp),
* gnu/packages/ruby.scm (ruby-prawn-templates, ruby-treetop, ruby-gimme,
ruby-standard, ruby-rubocop-ast, ruby-rexml, ruby-range-compressor,
ruby-regexp-property-values, ruby-regexp-parser, ruby-rubocop,
ruby-pdf-reader, ruby-pdf-inspector, ruby-prawn),
* gnu/packages/syncthing.scm (syncthing-gtk),
* gnu/packages/video.scm (svt-hevc, mediasdk, libvideogfx, libde265,
tslib),
* gnu/packages/xml.scm (libxmlb, libxmlplusplus)[source]: Same.
2020-11-19 13:18:54 -05:00
|
|
|
|
(url "https://github.com/john30/ebusd-configuration")
|
2020-06-15 11:42:43 -04:00
|
|
|
|
(commit "666c0f6b9c4d7545eff7f43ab28a1c7baeab7913")))
|
|
|
|
|
(file-name "config-checkout")
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yxnx8p4lbk614l16854r9s9d8s9c7ixgczfs8mph94xz0wkda7x"))))))
|
|
|
|
|
(synopsis "Daemon for communicating with eBUS devices")
|
|
|
|
|
(description "This package provides @command{ebusd}, a daemon for
|
|
|
|
|
handling communication with eBUS devices connected to a 2-wire bus system
|
|
|
|
|
(\"energy bus\" used by numerous heating systems).")
|
|
|
|
|
(home-page "https://ebusd.eu/")
|
|
|
|
|
(license license:gpl3+)))
|
2020-12-14 13:00:19 -05:00
|
|
|
|
|
|
|
|
|
(define-public ucsim
|
|
|
|
|
(package
|
|
|
|
|
(name "ucsim")
|
2022-03-08 10:52:09 -05:00
|
|
|
|
(version "0.7.1")
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://mazsola.iit.uni-miskolc.hu/ucsim/download/unix/"
|
2022-03-08 10:52:09 -05:00
|
|
|
|
"source/v" (version-major+minor version) ".x/"
|
|
|
|
|
"ucsim-" version ".tar.gz"))
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-03-08 10:52:09 -05:00
|
|
|
|
"080471wvkjdzxz5j3zdaq1apjcj84ql50kn26b7p4ansixnimml4"))))
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2022-03-08 10:52:09 -05:00
|
|
|
|
`(#:phases
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-makefiles
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* (find-files "." "(\\.mk$|\\.in$)")
|
2022-03-08 10:52:09 -05:00
|
|
|
|
(("/bin/sh") (which "sh"))))))))
|
|
|
|
|
(inputs
|
|
|
|
|
(list ncurses))
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(native-inputs
|
2022-03-08 10:52:09 -05:00
|
|
|
|
(append (list bison flex)
|
|
|
|
|
;; Certain tests use assemblers provided by SDCC.
|
|
|
|
|
(if (not (%current-target-system))
|
|
|
|
|
(list sdcc)
|
|
|
|
|
'())))
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(home-page "http://mazsola.iit.uni-miskolc.hu/ucsim/")
|
|
|
|
|
(synopsis "Simulators for various microcontroller families")
|
|
|
|
|
(description "μCsim is a collection of software simulators for
|
2022-03-08 10:52:09 -05:00
|
|
|
|
microcontrollers in the Atmel AVR; Intel MCS-51 (8051); MOS Technology 6502;
|
|
|
|
|
Motorola 6800, 68HC08 and 6809; P1516; Padauk PDK13, PDK14 and PDK15;
|
|
|
|
|
STMicroelectronics ST7 and STM8; Xilinx PicoBlaze; and Zilog Z80 families,
|
|
|
|
|
plus many of their variants.")
|
2020-12-14 13:00:19 -05:00
|
|
|
|
(license license:gpl2+)))
|
2020-12-14 13:06:44 -05:00
|
|
|
|
|
|
|
|
|
(define-public sdcc
|
|
|
|
|
(package
|
|
|
|
|
(name "sdcc")
|
2022-03-10 07:31:18 -05:00
|
|
|
|
(version "4.2.0")
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://sourceforge/sdcc/sdcc"
|
|
|
|
|
"/" version "/sdcc-src-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-03-10 07:31:18 -05:00
|
|
|
|
"0ly0m3q9vzjb9kcfjh79s77wpl4w7xhybzy4h9x0bmmw4cfsx6xl"))
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove non-free source files
|
|
|
|
|
(delete-file-recursively "device/non-free")
|
|
|
|
|
;; Remove bundled μCsim source
|
|
|
|
|
(delete-file-recursively "sim")
|
|
|
|
|
#t))
|
|
|
|
|
(patches (search-patches "sdcc-disable-non-free-code.patch"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2022-03-10 07:31:17 -05:00
|
|
|
|
(inputs
|
|
|
|
|
(list readline))
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(native-inputs
|
2022-03-10 07:31:16 -05:00
|
|
|
|
(list bison boost flex python-2 texinfo zlib))
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(arguments
|
2020-12-14 13:06:48 -05:00
|
|
|
|
`(;; GPUTILS is required for the PIC ports, but the licensing status of
|
|
|
|
|
;; some of the files contained in its distribution is unclear (see
|
|
|
|
|
;; https://issues.guix.gnu.org/44557). For this reason it is not yet
|
|
|
|
|
;; available as a package in Guix.
|
2020-12-14 13:06:44 -05:00
|
|
|
|
#:configure-flags
|
|
|
|
|
'("--disable-pic14-port" "--disable-pic16-port" "--disable-ucsim")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2020-12-14 13:06:47 -05:00
|
|
|
|
(add-after 'unpack 'patch-makefiles
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* (find-files "." "(\\.mk$|\\.in$)")
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
2021-05-14 16:54:47 -04:00
|
|
|
|
;; --disable-ucsim disables sdcc-misc, patch it back in.
|
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
|
(("debugger/mcs51" line)
|
|
|
|
|
(string-append line "\n"
|
|
|
|
|
"TARGETS += sdcc-misc\n"
|
|
|
|
|
"PKGS += $(SDCC_MISC)")))
|
2020-12-14 13:06:44 -05:00
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "http://sdcc.sourceforge.net")
|
2020-12-14 13:06:46 -05:00
|
|
|
|
(synopsis "C compiler suite for 8-bit microcontrollers")
|
2020-12-14 13:06:44 -05:00
|
|
|
|
(description "SDCC is a retargetable, optimizing Standard C compiler suite
|
2022-03-10 07:31:18 -05:00
|
|
|
|
that targets 8-bit microcontrollers in the Intel MCS-51 (8051); MOS Technology
|
|
|
|
|
6502; Motorola 68HC08; Padauk PDK13, PDK14 and PDK15; STMicroelectronics STM8;
|
|
|
|
|
and Zilog Z80 families, plus many of their variants.")
|
2020-12-14 13:06:45 -05:00
|
|
|
|
(license (list license:gpl2+
|
|
|
|
|
license:gpl3+
|
|
|
|
|
license:lgpl2.0+
|
|
|
|
|
license:lgpl2.1+
|
|
|
|
|
license:lgpl3+
|
|
|
|
|
license:public-domain
|
|
|
|
|
license:zlib))))
|
2021-02-08 14:14:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-psptool
|
|
|
|
|
(package
|
|
|
|
|
(name "python-psptool")
|
|
|
|
|
(version "2.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "psptool" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1kx0xpfx67m4zclk4gs97wiwjms8i7z4f6b6m68y8sfgpshy4rf3"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; IPython is not used by the package at all
|
|
|
|
|
(substitute* '("psptool/directory.py" "psptool/entry.py")
|
|
|
|
|
(("from IPython.*") ""))))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
|
(list python-cryptography python-prettytable))
|
2021-02-08 14:14:00 -05:00
|
|
|
|
(home-page "https://github.com/PSPReverse/psptool")
|
|
|
|
|
(synopsis "Tool for dealing with AMD binary blobs")
|
|
|
|
|
(description "PSPTool is a tool for dealing with AMD binary blobs")
|
|
|
|
|
(license license:gpl3+)))
|
2021-02-25 06:15:12 -05:00
|
|
|
|
|
|
|
|
|
(define-public agent-proxy
|
|
|
|
|
(let ((commit "8927798a71d246871ea8fc22b4512296a3fa1765")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(name "agent-proxy")
|
|
|
|
|
(version (git-version "1.98" revision commit))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url home-page) (commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1bxkzwsqfld4pknmiq8j3k55pv90n8s6kzh0xh42bhy2jv1wxz2z"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-after 'build 'build-kdmx
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "-C" "kdmx")
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
|
|
|
|
(install-file "agent-proxy" bin)
|
|
|
|
|
(install-file "kdmx/kdmx" bin)
|
|
|
|
|
#t))))))
|
|
|
|
|
(synopsis "Proxies to run kgdb/gdbserver and console on a serial port")
|
|
|
|
|
(description "These programs are proxies allowing to run kgdb/gdbserver
|
|
|
|
|
and console on a single serial port. agent-proxy creates network sockets,
|
|
|
|
|
whereas kdmx creates pseudo-ttys.")
|
|
|
|
|
(license license:gpl2))))
|
2022-01-04 07:03:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public mbed-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "mbed-tools")
|
2022-04-19 11:10:41 -04:00
|
|
|
|
(version "7.53.0")
|
2022-01-04 07:03:05 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "mbed-tools" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-04-19 11:10:41 -04:00
|
|
|
|
"0gdmyxy97bqr9bmkg90v3axmrr2db734nwzq2l05z84x9qiarc9i"))))
|
2022-01-04 07:03:05 -05:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2022-04-19 11:10:41 -04:00
|
|
|
|
(add-after 'unpack 'relax-requirements
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("\"Click>=7.1,<8\"")
|
|
|
|
|
"\"Click>=7.1\""))))
|
2022-01-04 07:03:05 -05:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
;; Remove this failing test.
|
|
|
|
|
(delete-file "tests/ci_scripts/test_sync_board_db.py")
|
|
|
|
|
(invoke "pytest" "-vv")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list python-pytest
|
|
|
|
|
python-pytest-cov
|
|
|
|
|
python-factory-boy
|
|
|
|
|
python-requests-mock
|
|
|
|
|
python-semver))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list python-dotenv
|
|
|
|
|
python-click
|
|
|
|
|
python-pdoc3
|
|
|
|
|
python-gitpython
|
|
|
|
|
python-tqdm
|
|
|
|
|
python-tabulate
|
|
|
|
|
python-requests
|
|
|
|
|
python-psutil
|
|
|
|
|
python-pyudev
|
|
|
|
|
python-typing-extensions
|
|
|
|
|
python-jinja2
|
|
|
|
|
python-pyserial))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/ARMmbed/mbed-tools")
|
|
|
|
|
(synopsis "ARM Mbed command line tools")
|
|
|
|
|
(description "This package is the successor of @code{mbed-cli}. It
|
|
|
|
|
provides command line tools for Mbed OS to detect Mbed enabled devices
|
|
|
|
|
connected by USB, checkout Mbed projects and perform builds amongst other
|
|
|
|
|
operations.")
|
|
|
|
|
(license license:asl2.0)))
|