From patchwork Mon Oct 18 17:16:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon South X-Patchwork-Id: 33921 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 8A3DA27BBE3; Mon, 18 Oct 2021 18:18:31 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 339CE27BBE1 for ; Mon, 18 Oct 2021 18:18:31 +0100 (BST) Received: from localhost ([::1]:33492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcWHO-0004EA-99 for patchwork@mira.cbaines.net; Mon, 18 Oct 2021 13:18:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcWGw-0004Dn-Lh for guix-patches@gnu.org; Mon, 18 Oct 2021 13:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcWGw-00060K-9w for guix-patches@gnu.org; Mon, 18 Oct 2021 13:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcWGw-0004xE-61 for guix-patches@gnu.org; Mon, 18 Oct 2021 13:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51269] [PATCH] gnu: Add stcgal. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Oct 2021 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51269 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51269@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163457745819011 (code B ref -1); Mon, 18 Oct 2021 17:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Oct 2021 17:17:38 +0000 Received: from localhost ([127.0.0.1]:48446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcWGT-0004wS-FF for submit@debbugs.gnu.org; Mon, 18 Oct 2021 13:17:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:36854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcWGQ-0004wH-Ee for submit@debbugs.gnu.org; Mon, 18 Oct 2021 13:17:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcWGQ-00048M-8k for guix-patches@gnu.org; Mon, 18 Oct 2021 13:17:30 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:35374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcWGN-0005WH-HY for guix-patches@gnu.org; Mon, 18 Oct 2021 13:17:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 6881761AD6 for ; Mon, 18 Oct 2021 17:17:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo03-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo03-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cQqjN5uay1I6 for ; Mon, 18 Oct 2021 17:17:23 +0000 (UTC) Received: from localhost.localdomain (unknown [108.162.141.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id E1C6761A84 for ; Mon, 18 Oct 2021 17:17:23 +0000 (UTC) From: Simon South Date: Mon, 18 Oct 2021 13:16:54 -0400 Message-Id: <20211018171654.3310-1-simon@simonsouth.net> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/embedded.scm (stcgal): New variable. --- Tested on AArch64 and x86-64 with an STC89C52RC demo board and everything appears to work fine. Note I have (retroactively) added a copyright line for myself to reflect the changes I've made to this file in the past year. gnu/packages/embedded.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) base-commit: 878744c5e3be6165633ead99c0efdca88abfcaea diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index f388c11c3d..4315cc0618 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Björn Höfling ;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2020, 2021 Simon South ;;; Copyright © 2021 Morgan Smith ;;; ;;; This file is part of GNU Guix. @@ -1350,6 +1351,38 @@ (define-public fc-host-tools (home-page "https://www.freecalypso.org/") (license license:public-domain))) +(define-public stcgal + (package + (name "stcgal") + (version "1.6") + (source (origin + ;; Neither the unit tests nor the "doc" subdirectory referred to + ;; by stcgal's setup.py is present in the source distribution on + ;; PyPI, so we fetch directly from the project's git repository + ;; instead. + (method git-fetch) + (uri (git-reference + (url "https://github.com/grigorig/stcgal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1d10qxyghz66zp7iqpm8q8rfv9jz9n609gxmfcav1lssmf1dlyk3")))) + (build-system python-build-system) + (propagated-inputs + `(("python-pyserial" ,python-pyserial) + ("python-pyusb" ,python-pyusb) + ("python-tqdm" ,python-tqdm))) + (native-inputs + ;; For tests. + `(("python-pyyaml" ,python-pyyaml))) + (home-page "https://github.com/grigorig/stcgal") + (synopsis "Programmer for STC 8051-compatible microcontrollers") + (description "stcgal is a command-line flash-programming tool for STC +MCU's line of Intel 8051-compatible microcontrollers, including those in the +STC89, STC90, STC10, STC11, STC12, STC15 and STC8 series.") + (license license:expat))) + (define-public stlink (package (name "stlink")