From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 2/2] gnu: Add dfu-util. Date: Sun, 29 May 2016 17:28:04 +0200 Message-ID: <1464535684-5751-2-git-send-email-h.goebel@crazy-compilers.com> References: <1464535684-5751-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b72dU-0000Zq-HT for guix-devel@gnu.org; Sun, 29 May 2016 11:28:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b72dP-0000az-OF for guix-devel@gnu.org; Sun, 29 May 2016 11:28:14 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:60377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b72dP-0000Zk-HQ for guix-devel@gnu.org; Sun, 29 May 2016 11:28:11 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3rHkCr5lJnz3hk9P for ; Sun, 29 May 2016 17:28:08 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3rHkCr5dghzvh24 for ; Sun, 29 May 2016 17:28:08 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id d-YRHoZYnSmM for ; Sun, 29 May 2016 17:28:07 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-93-104-104-67.dynamic.mnet-online.de [93.104.104.67]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sun, 29 May 2016 17:28:07 +0200 (CEST) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.23]) by hermia.goebel-consult.de (Postfix) with ESMTP id 16D6760659 for ; Sun, 29 May 2016 17:22:24 +0200 (CEST) In-Reply-To: <1464535684-5751-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/flashing-tools.scm (dfu-util): New variable. --- gnu/packages/flashing-tools.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index 1822934..58a137d 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -31,6 +31,7 @@ #:use-module (gnu packages libusb) #:use-module (gnu packages libftdi) #:use-module (gnu packages pciutils) + #:use-module (gnu packages autotools) #:use-module (gnu packages admin)) (define-public flashrom @@ -180,3 +181,33 @@ You'll need to add the udev-rules to make the teensy update available for non-root users.") (home-page "https://www.pjrc.com/teensy/loader_cli.html") (license gpl3)))) + +(define-public dfu-util + (package + (name "dfu-util") + (version "0.9") + (source + (origin + (method url-fetch) + (uri "http://dfu-util.sourceforge.net/releases/dfu-util-0.9.tar.gz") + (sha256 (base32 "0czq73m92ngf30asdzrfkzraag95hlrr74imbanqq25kdim8qhin")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'configure 'autoconf + (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) + (inputs + `(("libusb" ,libusb))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config))) + (synopsis "Host (PC) side of the USB Device Firmware Upgrade (DFU) 1.0 and 1.1 protocol") + (description "DFU (Universal Serial Bus Device Firmware Upgrade) protocol +is intended to download and upload firmware to devices connected over USB. It +ranges from small devices like micro-controller boards up to mobile phones. +With dfu-util you are able to download firmware to your device or upload +firmware from it.") + (home-page "http://dfu-util.sourceforge.net/") + (license gpl2+))) -- 2.7.4