From unknown Fri Jun 20 07:28:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54482 <54482@debbugs.gnu.org> To: bug#54482 <54482@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add simavr Reply-To: bug#54482 <54482@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:28:15 +0000 retitle 54482 [PATCH] gnu: Add simavr reassign 54482 guix-patches submitter 54482 "Artyom V. Poptsov" severity 54482 normal tag 54482 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 20 12:36:56 2022 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" To: guix-patches@gnu.org Subject: [PATCH] gnu: Add simavr 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --==-=-= 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----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 20 13:30:35 2022 Received: (at 54482) by debbugs.gnu.org; 20 Mar 2022 17:30:35 +0000 Received: from localhost ([127.0.0.1]:35105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVzNz-0008KV-7m for submit@debbugs.gnu.org; Sun, 20 Mar 2022 13:30:35 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:39256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVzNw-0008KJ-Vu for 54482@debbugs.gnu.org; Sun, 20 Mar 2022 13:30:34 -0400 Received: from [192.168.100.254] ([213.119.180.246]) by michel.telenet-ops.be with bizsmtp id 8hWW2700K5KN8Qt06hWW18; Sun, 20 Mar 2022 18:30:31 +0100 Message-ID: Subject: Re: [bug#54482] [PATCH] gnu: Add simavr From: Maxime Devos To: "Artyom V. Poptsov" , 54482@debbugs.gnu.org Date: Sun, 20 Mar 2022 18:30:22 +0100 In-Reply-To: <878rt4shrc.fsf@gmail.com> References: <878rt4shrc.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-JxAaoPPeOuG/0AGO784p" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647797431; bh=GwWPJ/dab9VS0Kwa8RzPnTrJHVrm0XzEu2xb1AtQEYA=; h=Subject:From:To:Date:In-Reply-To:References; b=JZpzyOs5TF/3dryXpTAZMzcj9CRjCsizKmky6XE9ywQOGWYRR9yHBbY1FlhXGX1NS cU96sbJb/IPi6OVExY6FtTRWPFxebebwjsP1CRiR3Ry+ghzVz2jE1v1epRrT8g5sFN SaSwaKzckINsJe7+Ceb/GHOo4j3cVOnlHbFTHvfGTPELgaskGrmp2jl0ni08Pw+Ca6 3a1SMWVSMJj55DcMzyHXu8RmqHzJjOZW5EkU3J3XD7EzR+rRjsgS79Gpq3+PJMu8Ls ngGZiqD4JeNzpKCj1FAAjqVz+fmSnAxEjTmfJ9INxXO5qW1VB7RUp32cTA25XE0ZG9 G/yw4xs685VLw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 54482 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-JxAaoPPeOuG/0AGO784p Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artyom V. Poptsov schreef op zo 20-03-2022 om 19:36 [+0300]: > +=C2=A0 #:use-module (gnu packages autotools) > +=C2=A0 #:use-module (gnu packages base) > +=C2=A0 #:use-module (gnu packages bash) > +=C2=A0 #:use-module (gnu packages avr) Why is (gnu packages avr) importing (gnu packages avr)? > +=C2=A0 #:use-module (gnu packages elf) > +=C2=A0 #:use-module (gnu packages gl) > +=C2=A0 #:use-module (gnu packages pkg-config) > +=C2=A0 #:use-module (gnu packages ncurses) > +=C2=A0 #:use-module (gnu packages version-control) > +=C2=A0 #:use-module (gnu packages ruby)) I think most users of avr-libc and avr-toolchain don't need simavr, so WDYT of defining simavr in a separate module to avoid loading the (gnu packages ruby) module (which has a large closure, including much of haskell, java) unless actually necessary? Benefits are lower memory usage and less startup time. Long-term, separating modules (*) a bit more would help with avoiding circular imports (and maybe eventually, making sure imports aren't circular at compile-time), makings some ideas for making "guix pull" faster more feasible and effective. I don't think any conclusion was reached upon that though ... (*) Though in this case, there doesn't appear to be any circularity, yet. Greetings, Maxime. --=-JxAaoPPeOuG/0AGO784p Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjdkrhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7sP/AP9MWKReBMtg6qj3EIyUwiDVnbrw KNaTeLYwQprEsT5BbgEAy6luIlCCD0Dj4iCVBRr/y9vjuwKi9fDh+V2gz2Jdago= =Z2L5 -----END PGP SIGNATURE----- --=-JxAaoPPeOuG/0AGO784p-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 17:01:27 2022 Received: (at 54482) by debbugs.gnu.org; 21 Mar 2022 21:01:27 +0000 Received: from localhost ([127.0.0.1]:38553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWP9Q-0001xo-6M for submit@debbugs.gnu.org; Mon, 21 Mar 2022 17:01:27 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:40874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWP9N-0001xa-Mf for 54482@debbugs.gnu.org; Mon, 21 Mar 2022 17:01:14 -0400 Received: by mail-lf1-f51.google.com with SMTP id t25so26597957lfg.7 for <54482@debbugs.gnu.org>; Mon, 21 Mar 2022 14:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=paP/fvSgrdFENEAUpWnzOlFfZTBzCglMRhMNg4NrJyY=; b=TRCiY2N4vqrHg8WLZ7IVc3kQ41pR2AF/ODHq7gkGoapcpuIzahZS6kusJZzFbK6otz UuhIXN8kNUV9Jv6cvLTknxxpCVJCOvb5Ht4fOi/HdUQyByGZhKN89NXZB0wB7EGDPZZs gEKRX6c4J4+I/7byvuEdIg7/9AwCI2w4s+oMAik4LFakYJUCymmPB6eDkcjT87fBFvra KpsgcihMh9w9NEnyKnNAo50/H20RkJtdddrbqxcOFU416v2PCBuUormCadZg0EYR4DM8 xZmuyIfxP3P4kmfBHFIwxacVjQmvalqCcTuqW/WeXqAlj+OKOWeVjEkFoxkD70NX6NIR pMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=paP/fvSgrdFENEAUpWnzOlFfZTBzCglMRhMNg4NrJyY=; b=qNqGcECdNx2CQ0+UZwRmP+FIRTzU0jDLqwsuvluTbUjuN6TQrzAOAmr7MRbyn35TzK AMyioE1me9rqfG5ldirRVfYu1g649lQGD1nPSd7DLQrkP7i3ISyUN499p5TinB9BXVCf YUB+BoNUMLuhfSfwNAeG6IRkjFyLE4Q6WbdZ7xuLog45snsUvwOITm7fInTKysO94IB4 FxksVxpIJSkOmE35xAQxNqZVfsuaJLvasFuc75YiIDqL3hGWoGGrPVs7L+lnrXRItrsU oEmgHyw57+/CCcpSftUvpjAO/T5C7tG2QIcA/wqdcRUXoPJMaU5hGMEZjw/QKHVyNCEX Bv6Q== X-Gm-Message-State: AOAM532T8D/MTWsC50muDBoocG1LFZ1xGI7inZ7suffqHYkD1GPaHit4 A8s0MM+nDhu+hqEXEvMtTYg3f3oI9hs= X-Google-Smtp-Source: ABdhPJzXAoJc+9rabXXJSCNST8tpppT067O83YSdbdZ8Ox1V4CmFmULgpUtTdU46wCkXRiZsmZvjSA== X-Received: by 2002:a05:6512:2614:b0:445:777d:3530 with SMTP id bt20-20020a056512261400b00445777d3530mr15905192lfb.647.1647896467153; Mon, 21 Mar 2022 14:01:07 -0700 (PDT) Received: from elephant ([5.164.192.110]) by smtp.gmail.com with ESMTPSA id i2-20020a2e8082000000b002497e36acffsm686776ljg.78.2022.03.21.14.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:01:06 -0700 (PDT) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#54482] [PATCH] gnu: Add simavr References: <878rt4shrc.fsf@gmail.com> Date: Tue, 22 Mar 2022 00:00:56 +0300 In-Reply-To: (Maxime Devos's message of "Sun, 20 Mar 2022 18:30:22 +0100") Message-ID: <874k3rrpfb.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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54482 Cc: 54482@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime, thanks for the feedback! Here's the updated version of the patch. I decided to move 'simavr' package to a new 'avr-xyz' module. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-avr-xyz-Add-simavr.patch Content-Transfer-Encoding: quoted-printable From=202ea020a319f5c2fa27662a8e505a1d4b8e916ea9 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 19 Mar 2022 23:39:54 +0300 Subject: [PATCH] gnu: avr-xyz: Add simavr * gnu/packages/avr-xyz.scm: New module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add 'avr-xyz.scm'. =2D-- gnu/local.mk | 2 + gnu/packages/avr-xyz.scm | 97 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 gnu/packages/avr-xyz.scm diff --git a/gnu/local.mk b/gnu/local.mk index 484757b207..edb8f6a576 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -49,6 +49,7 @@ # Copyright =C2=A9 2021 Simon Tournier # Copyright =C2=A9 2022 Daniel Mei=C3=9Fner # Copyright =C2=A9 2022 Remco van 't Veer +# Copyright =C2=A9 2022 Artyom V. Poptsov # # This file is part of GNU Guix. # @@ -119,6 +120,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/autotools.scm \ %D%/packages/avahi.scm \ %D%/packages/avr.scm \ + %D%/packages/avr-xyz.scm \ %D%/packages/axoloti.scm \ %D%/packages/backup.scm \ %D%/packages/base.scm \ diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm new file mode 100644 index 0000000000..800f8af21e =2D-- /dev/null +++ b/gnu/packages/avr-xyz.scm @@ -0,0 +1,97 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2022 Artyom V. Poptsov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages avr-xyz) + #: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) + #:use-module (guix build-system gnu) + #:use-module (gnu packages) + #: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)) + +(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 tests? 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----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmI454gACgkQ6cWi2QiY oC+8SQf/bw+cFZAniWpqsWTtKP39FTuMy7LBvpzHxuM4S8cktpaAAL8A+30pMkfI qFhBGUrN173WL3vvQ4QrqUMjtgAw5WtGiPhMReprZxy0dUHnWazpIckVqJJGWnh3 oKfUZhrDnkvXxxsI/bHzmA1mIe9Z5LFyrhfpDCJCZMOMmVFhMo7+7LPl2JwlCp7x zYBi6ye1jOdGFiOkVLiaN9AMSAU/2DUfJGH7m12YYEg0R7+XyxwntcNNT4DqnPlc utlj9aO1JJEbUj12y935xFdms32y5r15Wwg2IBNr6MZ2Yl07z2PfpAlAjoNbG0dT V6vba+MZZPjhvYNBVq2wqwDKrNsGbA== =JTqx -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 24 07:58:51 2022 Received: (at 54482-done) by debbugs.gnu.org; 24 Mar 2022 11:58:51 +0000 Received: from localhost ([127.0.0.1]:47012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXM78-0001N7-ON for submit@debbugs.gnu.org; Thu, 24 Mar 2022 07:58:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXM76-0001Mr-QV for 54482-done@debbugs.gnu.org; Thu, 24 Mar 2022 07:58:49 -0400 Received: from [2001:470:142:3::e] (port=54464 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXM71-0000MF-GA; Thu, 24 Mar 2022 07:58:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=aJXRvmOXRBuNmPZQRHFIwvG6tbpiVL3FeT7CrYQviuo=; b=pkhHWviCjKGeHFHpQSWp vQ8i3YhpaQB3+9dubuTXvBriIloGfZdQTbID+xI434ibKzFEITAbQaBJn7MzdzBt6k7TLXxPi2/vZ 7zI/arQhUGCZdZlpjWskAxA2y+hWo7y8/vZUnGPqGQTt+vPDJlu6FznXGdU6VfuAYF/a4IphzLEXR L4NnUqGI0IX3ADoIZFO+wWgdmFf0mIKXMnhjYKy+xGO/uuZfEkNdTZmPpEE7UkuW2afTlqoBre9QK Hbf5vFIt02QBG8IWiL+rRdVB+XwXPNwMR/kKbE34ypXyi3g7yk8YQqlbXo+tgMHaanpZygqQeH476 Pqt7et01VXLz+w==; Received: from [193.50.110.177] (port=51516 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXM71-0002jt-2p; Thu, 24 Mar 2022 07:58:43 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "Artyom V. Poptsov" Subject: Re: bug#54482: [PATCH] gnu: Add simavr References: <878rt4shrc.fsf@gmail.com> <874k3rrpfb.fsf@gmail.com> Date: Thu, 24 Mar 2022 12:58:41 +0100 In-Reply-To: <874k3rrpfb.fsf@gmail.com> (Artyom V. Poptsov's message of "Tue, 22 Mar 2022 00:00:56 +0300") Message-ID: <87o81vblzi.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54482-done Cc: 54482-done@debbugs.gnu.org, Maxime Devos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Artyom, "Artyom V. Poptsov" skribis: > From 2ea020a319f5c2fa27662a8e505a1d4b8e916ea9 Mon Sep 17 00:00:00 2001 > From: "Artyom V. Poptsov" > Date: Sat, 19 Mar 2022 23:39:54 +0300 > Subject: [PATCH] gnu: avr-xyz: Add simavr > > * gnu/packages/avr-xyz.scm: New module. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add 'avr-xyz.scm'. Applied with the cosmetic changes below. Thank you and thanks Maxime! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm index 800f8af21e..a05157ede7 100644 --- a/gnu/packages/avr-xyz.scm +++ b/gnu/packages/avr-xyz.scm @@ -83,9 +83,9 @@ (define-public simavr (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") + (synopsis "Lean, mean and hackable simulator for AVR CPUs/MCUs") (description - "simavr is a new AVR simulator for GNU/Linux, or any platform that uses + "simavr is a new AVR simulator for GNU/Linux or any platform that uses @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 small and compact, and hackable so allow quick prototyping of an AVR project. The --=-=-=-- From unknown Fri Jun 20 07:28:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Apr 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator