From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MOb7FXiCqmNdzQAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 06:28:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uLL4FHiCqmPwNQEAG6o9tA (envelope-from ) for ; Tue, 27 Dec 2022 06:28:24 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB3E220BA3 for ; Tue, 27 Dec 2022 06:28:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pA2VQ-0006GE-1L; Tue, 27 Dec 2022 00:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pA2VP-0006G6-3l for guix-patches@gnu.org; Tue, 27 Dec 2022 00:28:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pA2VO-0004G1-RC for guix-patches@gnu.org; Tue, 27 Dec 2022 00:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pA2VO-0006FF-Dj for guix-patches@gnu.org; Tue, 27 Dec 2022 00:28:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60349] [PATCH] gnu: Add waveshare-dtoverlays. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Dec 2022 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60349 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60349@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167211887923994 (code B ref -1); Tue, 27 Dec 2022 05:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2022 05:27:59 +0000 Received: from localhost ([127.0.0.1]:54481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA2VL-0006Ew-4T for submit@debbugs.gnu.org; Tue, 27 Dec 2022 00:27:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:56244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA2VD-0006Ei-J6 for submit@debbugs.gnu.org; Tue, 27 Dec 2022 00:27:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pA2VD-0006FR-3l for guix-patches@gnu.org; Tue, 27 Dec 2022 00:27:51 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pA2VB-0004CW-AG for guix-patches@gnu.org; Tue, 27 Dec 2022 00:27:50 -0500 Received: by mail-qt1-x82d.google.com with SMTP id c7so9787689qtw.8 for ; Mon, 26 Dec 2022 21:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TH030gKezsfojDI+ieynryC/Q2hjFOPVY23fhaPbG0M=; b=BEanwddgF8yaneQbcIYvV8CYRmvx8Eq+HoTw4RSwfPh7FlOXURwaVdQYYTEEIighkH rS9D5/ov7FoXeneXhsVAnIg6Z9N76YNhS5J6zujR7oAhggYgL7Wb4CmRfV6Mt0DQAsaS W5iUZ9ujwOuxLfEHnkSlMjMh5IUZ4g4tPLwtPPaaEAGStL9QqhnPWjHCipgyI6CmRGx+ rB1qmpz095qCUooNXXH05l9IYM5z1c3G1kUr1MI8tH6Sq+8x+hIKcVKUm1dzPpWYfbwe VGYNctKABHRnF1ASVdEGaAbSuY0vYBLnPJxXPhTInEysBh/ejA23QHZi769cj5CqD2Ou q4SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TH030gKezsfojDI+ieynryC/Q2hjFOPVY23fhaPbG0M=; b=tkISjdcTDGsH0sNo5a7E/s8L5Br62B2txtMCWga403SzX39B/wLO2yGW2+pEsNxoIH GnIS0GNyaPzmrruNDo23zD2kCJ7aZK6yc5SMkwCXtOZ+kJ3AnFp2RLzybPg8NWr9bsms 5vM5WYnc06697IN6ZzcNJ97CsNGnSHjDtSixDgtLVar3wEy0InAE25KR65C6b5cCD1TX MaO5RMzSClGDXT0RfBI1mrQw3XvhDU8+MW2arsTRWVPv6SiQ6zzCAZ2JeiLVDrRVB59z CxZAAqtUpp+tyrrN+H6TuuMcV6rUnZf3UFb2mD3bVkVzA+LJOvIuuxGoAsUO6NFiHFnU Qg9w== X-Gm-Message-State: AFqh2krBZTEgBiTQSvwi9d4U1+FqGihZa+3gqUcsd0cv6KRZdJTCi+6h 5KYv1mYL/FiSF89uFdTB5EEwMnMz8q+4qA== X-Google-Smtp-Source: AMrXdXvzhGH7QNWvVGuxgxIFaQB5ZJ4a1Tl5j8wZihIznZBdERKhE0svs1mGIox9fyZEwyGELPFu2g== X-Received: by 2002:ac8:4a82:0:b0:3a5:74e5:8b81 with SMTP id l2-20020ac84a82000000b003a574e58b81mr33972875qtq.21.1672118867965; Mon, 26 Dec 2022 21:27:47 -0800 (PST) Received: from localhost.localdomain (dsl-10-129-132.b2b2c.ca. [72.10.129.132]) by smtp.gmail.com with ESMTPSA id m14-20020ac866ce000000b003a7ee9613a6sm7834884qtp.25.2022.12.26.21.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Dec 2022 21:27:47 -0800 (PST) From: Maxim Cournoyer Date: Tue, 27 Dec 2022 00:27:35 -0500 Message-Id: <20221227052735.20295-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82d.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672118904; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TH030gKezsfojDI+ieynryC/Q2hjFOPVY23fhaPbG0M=; b=EtyZPGfII1gJij5FXW+nCzH7Ldl4ZRhBWHSLwluYjMpcxd3l3jjO62xO8R2pOJMzu/jb8c XzrUGYqOO7/it8IiqUffKEsKwEQ9EDw0D6m9tvANmTb1lgKnzYAk8Zu+jBzPgCyL4ZUsfq bAvef/phjVpMK341oRDuqRHCQVo3A/Xvc5ESEp8Wt/iOCl69nQfP3ONv3csSFPnaPS0QFk 4cRKyubzumaMX+htN2NoRBYHf1mJoqx7ssSlTRdFq7Icd2olpBlZ4jBsiGRj77DWTEKsyU RwyNI2M+IrrWSJlIAKL+/Y36BecfeH6GmpGC54DuPxLhmi2NCD7Zbc0JhMd27w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BEanwddg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672118904; a=rsa-sha256; cv=none; b=rDAF03WDHuyjMfZO4UX4mkCPqFSsyjEfCEwNS2qDGy6fMcT9vIL37QmnvQ4Rrf/ex3f6eO NUjPNBKB4U7PcR82mNhm5G5KPniNU8zL0o1sM5iUBGomeNxTz/KLXupQQhxWuIPveHOpoq wWT+a25RjaHUKfsMfIWY+IPrPMxUYnueP/Hh+fMPCXMQd+woDSF1uhNJXhXR85TAvQKEds KL3FTrAp7VRpALTAIKG3MMaIu1boJHhDkG3QxrSMG+5px3iIK1tYgPOvtkWdPCdUCPzqTd yammCJpHRLDeU5/vUkIldiICb9ppVM8zk7DHEm2IlgL1+8z/5IsbnQKOOjefZw== X-Spam: Yes X-Migadu-Queue-Id: CB3E220BA3 X-Migadu-Spam: Yes X-Spam-Score: 7.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BEanwddg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 7.77 X-TUID: 1II/A/eo/eSw * gnu/packages/raspberry-pi.scm (waveshare-dtoverlays): New variable. --- gnu/packages/raspberry-pi.scm | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/raspberry-pi.scm b/gnu/packages/raspberry-pi.scm index c0a2cb5bf2..ad28033bf3 100644 --- a/gnu/packages/raspberry-pi.scm +++ b/gnu/packages/raspberry-pi.scm @@ -455,3 +455,43 @@ (define keep '("." ".." flash a memory card with an operating system image suitable for the Raspberry Pi single board computer.") (license license:asl2.0))) + +(define-public waveshare-dtoverlays + (let ((commit "5c43994b70e23c2bf9f9a448ef873e246b076bdb") + (revision "0")) + (package + (name "waveshare-dtoverlays") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/swkim01/waveshare-dtoverlays") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + ;; Delete pre-compiled device tree overlay binary files. + (snippet '(for-each delete-file (find-files "." "\\.dtbo$"))) + (sha256 + (base32 + "14714zb4p0y58mjgky0xpqd78hb1kjykr93hq15yxsnji0w47zj4")))) + (build-system copy-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'build + (lambda _ + (for-each (lambda (f) + (invoke "dtc" "-@" "-I" "dts" "-O" "dtb" + "-o" (string-append (basename f ".dts") + ".dtbo") + f)) + (find-files "." "\\.dts"))))) + #:install-plan #~'(("." "" #:include-regexp ("\\.dtbo$"))))) + (native-inputs (list dtc)) + (home-page "https://github.com/swkim01/waveshare-dtoverlays/") + (synopsis "Device tree overlays for WaveShare SpotPear TFT LCDs") + (description "This package contains device tree overlay binaries to +support the WaveShare SpotPear @acronym{TFT, Thin-Film Transistor} +@acronym{LCDs, Liquid Crystal Display} on the Raspberry Pi.") + (license license:gpl3+)))) base-commit: 60d4652c5d33dd81ed05afd708e6a127584d59cd -- 2.38.1