From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 3/8] gnu: Add rkflashtool. Date: Mon, 21 Nov 2016 23:00:30 +0200 Message-ID: <20161121210035.13726-4-efraim@flashner.co.il> References: <20161121210035.13726-1-efraim@flashner.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8vhw-0004Wo-9V for guix-devel@gnu.org; Mon, 21 Nov 2016 16:00:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8vht-0003Ca-GH for guix-devel@gnu.org; Mon, 21 Nov 2016 16:00:56 -0500 Received: from flashner.co.il ([178.62.234.194]:50013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8vht-0003Aa-7v for guix-devel@gnu.org; Mon, 21 Nov 2016 16:00:53 -0500 Received: from localhost (85.64.232.168.dynamic.barak-online.net [85.64.232.168]) by flashner.co.il (Postfix) with ESMTPSA id 8CEDD40338 for ; Mon, 21 Nov 2016 21:00:47 +0000 (UTC) In-Reply-To: <20161121210035.13726-1-efraim@flashner.co.il> 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 (rkflashtool): New variable. --- gnu/packages/flashing-tools.scm | 36 +++++++++++++++++++++++++++++++++++= + 1 file changed, 36 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tool= s.scm index a55ed96..f25c25f 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2014 Manolis Fragkiskos Ragkousis ;;; Copyright =C2=A9 2016 Hartmut Goebel ;;; Copyright =C2=A9 2016 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2016 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,6 +23,7 @@ (define-module (gnu packages flashing-tools) #:use-module (guix licenses) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (guix build-system gnu) @@ -211,3 +213,37 @@ You need to add the udev rules to make the Teensy up= date available for non-root users.") (home-page "https://www.pjrc.com/teensy/loader_cli.html") (license gpl3)))) + +(define-public rkflashtool + (let ((commit "094bd6410cb016e487e2ccb1050c59eeac2e6dd1") + (revision "1")) + (package + (name "rkflashtool") + (version (string-append "0.0.0-" revision "." (string-take commit = 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/linux-rockchip/rkflashtool.git"= ) + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1zkd8zxir3rfg3sy9r20bcnxclnplryn583gqpcr3iad0k3xbah7")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure)) ; no configure + #:make-flags (list (string-append "PREFIX=3D" %output)) + #:tests? #f)) ; no tests + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libusb" ,libusb))) + (home-page "https://github.com/linux-rockchip/rkflashtool") + (synopsis "Tools for flashing Rockchip devices") + (description "Allows flashing of Rockchip based embedded linux dev= ices. +The list of currently supported devices is: RK2818, RK2918, RK2928, RK30= 26, +RK3036, RK3066, RK312X, RK3168, RK3188, RK3288, RK3368.") + (license bsd-2)))) --=20 2.10.2