summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2026-02-20 16:36:38 +0000
committerArun Isaac <arunisaac@systemreboot.net>2026-03-20 00:39:35 +0000
commit5d6854db2ec134803aa16a8f5344333b0b7a2da3 (patch)
tree6d659e09d0721ffcc3f237a43bcb33e491d18306 /gnu
parentdb97989cb7a315a86ec894333241982f826a1eec (diff)
gnu: Add lufa-hid-bootloader-cli.
* gnu/packages/avr-xyz.scm (lufa-hid-bootloader-cli): New variable. Change-Id: I3c87cd58bfc04a6ee72aeff0c8900942e7a3214d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/avr-xyz.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm
index 03dec7e981f..e01d3ce9a44 100644
--- a/gnu/packages/avr-xyz.scm
+++ b/gnu/packages/avr-xyz.scm
@@ -41,6 +41,7 @@
#:use-module (gnu packages elf)
#:use-module (gnu packages gl)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages libusb)
#:use-module (gnu packages llvm)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages version-control)
@@ -195,6 +196,31 @@ compatible microcontroller models, as well as the demos and the
documentation.")
(license license:expat))) ;see LUFA/License.txt
+(define-public lufa-hid-bootloader-cli
+ (package
+ (inherit lufa)
+ (name "lufa-hid-bootloader-cli")
+ (build-system gnu-build-system)
+ (outputs '("out"))
+ (arguments
+ (list #:tests? #f ;; no tests
+ #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+ "-C" "Bootloaders/HID/HostLoaderApp")
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda _
+ (install-file "Bootloaders/HID/HostLoaderApp/hid_bootloader_cli"
+ (string-append #$output "/bin")))))))
+ (inputs
+ (list libusb-compat))
+ (synopsis "Firmware uploader for the LUFA HID bootloader")
+ (description
+ "The LUFA HID loader program communicates with the LUFA HID bootloader to
+upload new firmware.")
+ (license license:gpl3)))
+
(define-public microscheme
(package
(name "microscheme")