From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KAY8HWKsbWHZNQAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 19:18:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cLPNGGKsbWH0KAAA1q6Kng (envelope-from ) for ; Mon, 18 Oct 2021 17:18:26 +0000 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 BE5283B686 for ; Mon, 18 Oct 2021 19:18:25 +0200 (CEST) Received: from localhost ([::1]:33492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcWHI-0004EA-Q9 for larch@yhetil.org; Mon, 18 Oct 2021 13:18:24 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634577506; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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; bh=+SYp4F4cPNmvDElrSIMYOMyIyre7OgHaKw/fGQt753A=; b=Er3wXXp4PUS13yjzORQ6o3dHoz+q1gXe+pmTPKFrXH/uKXXsPeG1e9//i0M1dConWHH7fi xewJpxhOC6gj5/sFnknB70cJUmVN6uQC7ROPNnX3PhYu9SRPfJ0KaXuSwyG4A/zecwJNep LFZuKaLvY5uaNnisGUm4WeqL/E2kg8PZx1+YISkpYbI1z60R4mHClgQdAiVwxS3U7ZYx1J yR/A+axZvH6Im8lPTkIyJhVDbDroBy+kjCo72s9VJGsmVgsNKmLdWN893TOVyjk1fZBW6z oiCoj+1a/Msy6Q6gc/AQE0wgodgClfnx+jUn7Q82ypGE5LFGFAc3yew4O9WILw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634577506; a=rsa-sha256; cv=none; b=liQSDdzD/vLhciO8A2wiJ/sXnJE8RKaWcyVR87fB/vu7MpNuKnniMBjcDBDzUrfEoiqAuL rKM1MRj5FzNkoG+WNa2sJpp8ToOdeymD/F7F1lJCvl6nJD1Qk0QOFRuu7PLXkSdMAIO7Ll /9KbGtIkRIK7UVP7Fi2SjQ9bhhnHkd5xrPF4NRPuTMq5L/NQJ7pHZeOa6Dcs6IjygyqYvH zd2K8sq+63APf4mUoxDS/l0aC3k6X3FlJvPtqIFwc6FD9bei/Mb+YR9afX2WJsQIN6mgK4 sqIO4ZaaEtANrDayBYXRlsp3D9alJe2cRpvRlUEOBqbHeRYnzKNLd/YO87ta0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BE5283B686 X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: 28Ffw87j7OSk * 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(+) 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") base-commit: 878744c5e3be6165633ead99c0efdca88abfcaea -- 2.33.0