From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qKKMFDZYN2ImUwAAgWs5BA (envelope-from ) for ; Sun, 20 Mar 2022 17:37:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kOP8ETZYN2KlkwAA9RJhRA (envelope-from ) for ; Sun, 20 Mar 2022 17:37:10 +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 AF3B72E58B for ; Sun, 20 Mar 2022 17:37:09 +0100 (CET) Received: from localhost ([::1]:43562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVyYG-00009S-EZ for larch@yhetil.org; Sun, 20 Mar 2022 12:37:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVyYA-00009K-Vq for guix-patches@gnu.org; Sun, 20 Mar 2022 12:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVyYA-0000Hp-Na for guix-patches@gnu.org; Sun, 20 Mar 2022 12:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVyYA-0006wr-Hj for guix-patches@gnu.org; Sun, 20 Mar 2022 12:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54482] [PATCH] gnu: Add simavr Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Mar 2022 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54482 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54482@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164779421626694 (code B ref -1); Sun, 20 Mar 2022 16:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2022 16:36:56 +0000 Received: from localhost ([127.0.0.1]:35071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVyXz-0006wP-O0 for submit@debbugs.gnu.org; Sun, 20 Mar 2022 12:36:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:49252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVyXy-0006wH-2t for submit@debbugs.gnu.org; Sun, 20 Mar 2022 12:36:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVyXx-000093-SP for guix-patches@gnu.org; Sun, 20 Mar 2022 12:36:49 -0400 Received: from [2a00:1450:4864:20::236] (port=44965 helo=mail-lj1-x236.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVyXw-0000GU-1Y for guix-patches@gnu.org; Sun, 20 Mar 2022 12:36:49 -0400 Received: by mail-lj1-x236.google.com with SMTP id q5so17096360ljb.11 for ; Sun, 20 Mar 2022 09:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=s6xo3EhROZTcMdquF7XbXfxc2j+Ve8v2+n4CmEjwluM=; b=TavlnByL+utsugvM+F5/K+ybDE5TE/uwSg5rEGxYNMyW7nOjbaHSPYSBvTS9GDJi4/ dGPrrPXDp3ACKwPFEUSTo5YlVThSRRyDdv5KKqGv6j4yNV6yR/NNBR14+HAMF5RYj3KS Z5shNyeexTs1PwZpqcGhxxxYJbNVMBa1YoKWN8WAMueW+zH2ANnkWnIX+DJ+49Jop3i2 kRpGALDsq+pOa3WmZUVqd9vDZ/H/eKbDrcdTFwBswr1iuZK6vhHhd7EInMHYHZYfcLVS mAa9RgoEnEwWThW0+h/DxNUNn2XrBiy1KZ/ARv2/auxhxWodmK5x4Jbc52p27DB3G4Gn 8FjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=s6xo3EhROZTcMdquF7XbXfxc2j+Ve8v2+n4CmEjwluM=; b=bhqFg3E6TZwHqX2L6+ctitR2RySfJe6qhLO3uBTdR/ig8tdByLLhnsJ3HXOWJfWU5R tHrvcFU6Fk2XVxxr2Hi69V73VBj3HxFY5AYoYB1/UmogVAnGzKJi6ZtUTo5yiLooARy2 R+MUjkaRWx5YX7A0159OJqA/8DTk6VhcLXlrWSeZeSk29QemAVsVjcGSDMs9FX2PmIuD 0ji0S1T0t67fc/emQNxHKEkiW1tlU6C5MRvKYaGaV2BcxLbNLoqPcwa99WxqGkTxJ8l6 +BUbz9z7H/uc6BfHvCqACiSKq6AXXz1QInDhSI4WlpGaBEu2dKOm81vX7msPLnRg3yIo f5kQ== X-Gm-Message-State: AOAM531QtyI1LlZmfL2PdqSvXGELCm+bwof/SJfTpFxIl3WNfruEb4ET ZOP+DHbuwihTINI7HpLekVypO0n9a04= X-Google-Smtp-Source: ABdhPJyDOQwtQy9zTKQYDTeX0GXcRx+6SkR0g2xB5SqKXswC7JQXwKMDJQEVGbMqPu6/fE0sDPzu3g== X-Received: by 2002:a2e:9e95:0:b0:249:76e0:e86 with SMTP id f21-20020a2e9e95000000b0024976e00e86mr5719348ljk.232.1647794206136; Sun, 20 Mar 2022 09:36:46 -0700 (PDT) Received: from elephant ([5.164.192.110]) by smtp.gmail.com with ESMTPSA id f19-20020a2eb5b3000000b002497fc913fesm306417ljn.124.2022.03.20.09.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Mar 2022 09:36:45 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sun, 20 Mar 2022 19:36:39 +0300 Message-ID: <878rt4shrc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::236 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647794229; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=s6xo3EhROZTcMdquF7XbXfxc2j+Ve8v2+n4CmEjwluM=; b=HKY+hg9sWMoDbGR1gw9Xxx1yfLAj4UUTAnfPiajj2ff/0ulCkruNbNDVlt6FaJ5pmN95j2 RWw4fasAhp65IR0fqnfCsD1JYeNj57RiDDa7CyR1c4Xi68M0hVJ3CkEaN787qk05f3GOH9 o7c+Ye3j4jWDkxfFF/4H+WD3QPGIip3rmsVkyUpmKTRXNeSOby51imAfHKtdt12525dFXX 14pe353kz25bwzIkNqToXnh7dxGlZpgvlx5cJrta7+wOddToV+RDIeZqnzwJO/6bYlF7NL CY19zzf28xnHfwlg4CiwZBAuVtniculbfH6enMXK9gA0qbQkHHCZfLBqk2dwmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647794229; a=rsa-sha256; cv=none; b=tbV/rfQNZ8d77HK92miJ/tW4YSAqdv/mr6ZFWrq6VQcLvpz0B6Md/Fiv5nbqsl9hhNhsyS rMfOJqSWDQrAF8EpTkbdseb9x3Uyi1iZKm6/PS+Fj6PQKiBoVJ4q7yeaocUgBIcahK4deb nq45YDswhIx1EYYLPMQF3S3QhCE3TGIWCY/QNXWkppXlRcMP0LeWHpK7cCUOVfzvMAKbek 4u5mT/3PHUxGQObC6/i2SL2oAxjtlEtY/z1JThgZEBJ1f8F6vEPxk5bI1B+pZyI0MRiFyX Cue8t8fSk54m9fpnG6Tpl5AqN6zN6U6HYnM/0xHuZYz2+HgeU4MEIeILrS8A2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=TavlnByL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 3.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=TavlnByL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: AF3B72E58B X-Spam-Score: 3.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: 81Ahj+x4KtXs --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this patch adds simavr [1] -- an AVR simulator. Thanks, - Artyom References: 1: https://github.com/buserror/simavr --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-simavr.patch Content-Transfer-Encoding: quoted-printable From=2005b3a83a9f0f9b0e08d2675cb9b1a80c6b30114d Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 19 Mar 2022 23:39:54 +0300 Subject: [PATCH] gnu: Add simavr * gnu/packages/avr.scm (simavr): New variable. =2D-- gnu/packages/avr.scm | 74 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm index 3cc5a6964e..9836cc6305 100644 =2D-- a/gnu/packages/avr.scm +++ b/gnu/packages/avr.scm @@ -6,6 +6,7 @@ ;;; Copyright =C2=A9 2018 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2020 Marius Bakke ;;; Copyright =C2=A9 2020 Arun Isaac +;;; Copyright =C2=A9 2022 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,6 +26,7 @@ (define-module (gnu packages avr) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) + #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) @@ -35,7 +37,17 @@ #:use-module (gnu packages cross-base) #:use-module (gnu packages flashing-tools) #:use-module (gnu packages gcc) =2D #:use-module (gnu packages vim)) + #:use-module (gnu packages vim) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages avr) + #:use-module (gnu packages elf) + #:use-module (gnu packages gl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages version-control) + #:use-module (gnu packages ruby)) =20 (define-public avr-binutils (package @@ -181,3 +193,63 @@ inlining, and features an aggressive tree-shaker, elim= inating unused top-level definitions. Microscheme has a robust @dfn{Foreign Function Interface} (F= FI) meaning that C code may be invoked directly from (ms) programs.") (license license:expat))) + +(define-public simavr + (package + (name "simavr") + (version "1.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/buserror/simavr") + (commit (string-append "v" version)))) + (sha256 + (base32 "0njz03lkw5374x1lxrq08irz4b86lzj2hibx46ssp7zv712pq55q")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f + #:modules '((guix build gnu-build-system) + (guix build utils)) + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda* (#:key outputs #:allow-other-keys) + (when tests? + (invoke "make" + "-C" + "tests" + (string-append "CC=3D" #$(cc-for-target)) + "RELEASE=3D1" + "run_tests"))))) + #:make-flags #~(list (string-append "CC=3D" #$(cc-for-target)) + "RELEASE=3D1" + (string-append "PREFIX=3D" #$output) + (string-append "DESTDIR=3D" #$output)))) + (propagated-inputs + (list avr-toolchain)) + (native-inputs + (list autoconf + which + git + automake + pkg-config + ncurses + ruby)) + (inputs + (list bash-minimal libelf freeglut)) + (home-page "https://github.com/buserror/simavr") + (synopsis "Lean, mean and hackable AVR simulator for GNU/Linux and OSX= ") + (description + "simavr is a new AVR simulator for GNU/Linux, or any platform that us= es +@command{avr-gcc}. It uses avr-gcc's own register definition to simplify +creating new targets for supported AVR devices. The core was made to be s= mall +and compact, and hackable so allow quick prototyping of an AVR project. T= he +AVR core is now stable for use with parts with <=3D 128KB flash, and with +preliminary support for the bigger parts. The simulator loads ELF files +directly, and there is even a way to specify simulation parameterps direct= ly +in the emulated code using an @code{.elf} section. You can also load +multipart HEX files.") + (license license:gpl3))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmI3WBcACgkQ6cWi2QiY oC9IdQf/Rj6GW8KH5P5yilWziCAF+ANSoOk0vu1Z4MSQ2j3fyUnejWcCtiQTxwfw ORcGjGoHJQhVN+Y8pNHdrlXseDrqXQbC/GBv7UJnHiXutjUhiQc3TFNOx81d7oBt evubrflVOGyW84sWSoNkLeR9D7/xpkZPBIgrS5kkxg16O1EViZOzs7fhVYTewh+z Ft2ZfgJ58k6joWFLEgl0msFsC/HwE/PvY7D1NHPn53fqPb1lpo5aFkHqvpP2NpuJ V516LewsQO2odEbccrVItrin+0s/tQBgEUL1eFKgND4f6LYKiPRSmnGIVyGkYOD4 w9JR7LtHKpHER9tuXRQ+EaKSGw+Frw== =uFGG -----END PGP SIGNATURE----- --==-=-=--