summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2025-02-20 20:31:57 +0100
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-02-20 21:07:24 +0100
commit26982c58af6dc7a2c244d32cfef5b365976bc92f (patch)
treebc913d9e50a70088fc728a731d246f35c0670d0e
parentfb28f67f63f23b934e70b4bca1bc99fa9054b196 (diff)
gnu: Add firmware-senoko.
* gnu/packages/firmware.scm (firmware-senoko): New variable. Change-Id: I11f3ee4b20f3ef23f346388a40b0015fd86ed8c3
-rw-r--r--gnu/packages/firmware.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 56a7193e15f..2e78936d839 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -1748,3 +1748,40 @@ or passthrough board.")
1748 (supported-systems '("armhf-linux")) ; actually cortex-m3 1748 (supported-systems '("armhf-linux")) ; actually cortex-m3
1749 (home-page "https://github.com/xobs/senoko-chibios-3/") 1749 (home-page "https://github.com/xobs/senoko-chibios-3/")
1750 (license license:gpl3+))) 1750 (license license:gpl3+)))
1751
1752(define-public firmware-senoko
1753 (package
1754 (name "firmware-senoko")
1755 (version "2.6")
1756 (source (origin
1757 (method git-fetch)
1758 (uri (git-reference
1759 (url "https://github.com/novena-next/firmware-senoko.git")
1760 (commit (string-append "v" version))))
1761 (file-name (git-file-name name version))
1762 (sha256
1763 (base32
1764 "10d6bgqajl0w17xydjv2x22n5m9d1xsjb09r430nakc1v6gn52d5"))))
1765 (build-system copy-build-system)
1766 (arguments
1767 (list #:phases
1768 #~(modify-phases %standard-phases
1769 (add-after 'unpack 'patch
1770 (lambda* (#:key inputs #:allow-other-keys)
1771 (substitute* "update-senoko"
1772 (("^fw=/lib/firmware/senoko.hex")
1773 (string-append "fw="
1774 (assoc-ref inputs "senoko-chibios")
1775 "/lib/firmware/senoko.hex")))
1776 (patch-shebang "update-senoko"))))
1777 #:install-plan
1778 ''(("update-senoko" "bin/")
1779 ("update-senoko.1" "share/man/man1/"))))
1780 (inputs
1781 (list senoko-chibios))
1782 (synopsis "Firmware flasher for Novena battery or passthrough board")
1783 (description "This package provides a way to update the Novena battery or
1784passthrough board firmware on a Novena.")
1785 (supported-systems '("armhf-linux"))
1786 (home-page "https://github.com/novena-next/firmware-senoko")
1787 (license license:bsd-3)))