From patchwork Tue Oct 5 21:36:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33629 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5410A27BBE3; Tue, 5 Oct 2021 22:37:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7F10F27BBE1 for ; Tue, 5 Oct 2021 22:37:18 +0100 (BST) Received: from localhost ([::1]:34558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXs7Z-0007Yi-La for patchwork@mira.cbaines.net; Tue, 05 Oct 2021 17:37:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXs7S-0007X7-80 for guix-patches@gnu.org; Tue, 05 Oct 2021 17:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXs7S-0007jT-0u for guix-patches@gnu.org; Tue, 05 Oct 2021 17:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXs7R-0005R1-Of for guix-patches@gnu.org; Tue, 05 Oct 2021 17:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51043] [PATCH] gnu: Add rkdeveloptool-pine64. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 21:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51043 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51043@debbugs.gnu.org X-Debbugs-Original-To: phodina via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.163346981720879 (code B ref -1); Tue, 05 Oct 2021 21:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 21:36:57 +0000 Received: from localhost ([127.0.0.1]:42005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXs7I-0005Qa-Hw for submit@debbugs.gnu.org; Tue, 05 Oct 2021 17:36:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:37510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXs7G-0005QS-9K for submit@debbugs.gnu.org; Tue, 05 Oct 2021 17:36:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXs7F-0007FH-Uh for guix-patches@gnu.org; Tue, 05 Oct 2021 17:36:49 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:61529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXs7C-0007RP-SP for guix-patches@gnu.org; Tue, 05 Oct 2021 17:36:49 -0400 Date: Tue, 05 Oct 2021 21:36:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633469804; bh=7tq9bkaQrVijH4WCiTQ/dSwctR5G0gNIlmUuTD9skn0=; h=Date:To:From:Reply-To:Subject:From; b=HRhXQ7kMR7g8KM2v3kaUXUme0FvQaIJDuKxaHJiczt1zHj1mxzp55HKzWgOw2CKkC 4bJbn9LHAwdE5hMM/mdqT5jq7ywEAHoyq8PMlhQqh/1giZ97hH/wvNANkCa7YKK7nq nH4SfXtq4WAsWVicRUu9ezfQU3frqQW6B93ki7Qo= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.22; envelope-from=phodina@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi, I've added the suffix pine64 as this is fork of rkdeveloptool which uses different build system and targets additional mostly pine64 boards. Petr ---- * gnu/packages/hardware.scm (rkdeveloptool-pine64): New variable. --- 2.32.0 diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index ff21c9c724..d871b36a90 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2021 Evgeny Pisemsky ;;; Copyright © 2021 Léo Le Bouter ;;; Copyright © 2021 Denis Carikli +;;; Copyright © 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix git-download) @@ -531,6 +533,40 @@ supported by the Linux kernel.") as the Pinebook Pro.") (license license:gpl2+)))) +(define-public rkdeveloptool-pine64 +(package + (name "rkdeveloptool-pine64") + (version "1.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1qhb687x0djh8wb1famyjb81cllhq8crh7zwclws9ag872032ysc")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + ; attempts to place the file into the udev pkg read-only path + (add-after 'unpack 'fix-udev-path + (lambda* _ + (substitute* "meson.build" + (("udev_rules_dir,") + (string-append "'" %output "/lib/udev/rules.d',")))))))) + (native-inputs `(("pkg-config" ,pkg-config))) + (inputs `(("eudev" ,eudev) + ("libusb" ,libusb))) + (synopsis "Read from and write to RockChicp devices over USB") + (description "Rkdeveloptool is a fastboot-like CLI tool to read from and +write to RockChip devices over USB. Supports PineNote and Quartz64 as well +as other Pine64 RK devices.") + (home-page "https://gitlab.com/pine64-org/quartz-bsp/rkdeveloptool") + (license license:gpl2+))) + (define-public libqb (package (name "libqb")