From patchwork Fri Sep 29 09:16:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 54401 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 2213027BBE9; Fri, 29 Sep 2023 10:19:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1466E27BBE2 for ; Fri, 29 Sep 2023 10:19:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9ds-0005xd-A3; Fri, 29 Sep 2023 05:18:36 -0400 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 1qm9dF-0005Tv-1A for guix-patches@gnu.org; Fri, 29 Sep 2023 05:18:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qm9d8-0003uJ-2R for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dK-0004lA-SI; Fri, 29 Sep 2023 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 03/23] gnu: Add avr platform. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597903418007 (code B ref 66263); Fri, 29 Sep 2023 09:18:02 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:14 +0000 Received: from localhost ([127.0.0.1]:55178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cX-0004gB-LC for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:14 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:53291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cI-0004dn-FQ for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:09 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-406402933edso55389885e9.2 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695978997; x=1696583797; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=43nNmeMVytxt9k6yfDIf0x1/PoQOFB2ENxLRaFX1usc=; b=aFvloha5fSGXS1YGq8wTFq5N+4MZr8cieVb2j7BhyGt0qa99AI77LtR5y9eST6DfGJ HyzJvv96arByRpCPO7XCm9bKyLqjYFzbmfwGDJOQ5U/Idv4Oc/qowB3jEGk9EQL8FvLd gBM8JCWnpxOT79T1P3+n8+XLuf6aREp1fh0y/fHReaeXh0Le/DQHTU9xiMfEYfNCHL2W u0ekVdm3ZrVXAIpIWN1/P5z05kDZGTCs1Z6GCaSTtPYSyl9mLnVyv2UatAc6dPdqqmoI BOWsdk6VLzHVI5ipxQpuAXWUf2QzpcgSNi3BmFnvmzA69fdlRoCq2TqZ6o6m5a0cUhh8 grZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695978997; x=1696583797; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=43nNmeMVytxt9k6yfDIf0x1/PoQOFB2ENxLRaFX1usc=; b=DhartgpmGrSMomY9Nr4mLryu0AeT0YiAkAo9wcwJArTWfwmr/JYtihVNsM1SmEmp8p gaRE7pyRnQkNP6Ym1Ygc4DPCjrUN+N9MN95OXszssLklNgO+hTCL1V/z8u7N0Y91PpbX 75QMi2/ubVQTUM6UJUr/xZDRxnRNb9CXImLTzOi6Wq2clVRnXcliePn/2Fj1SSxuprnl 2uGoi+aYt9gOknBuD4URvwNN1dVpMCr435haHzpYZEndB7BMqBNKMORLiCRgSFnS375J +Ua9canzrNHXio8a+U9uhzbWyRdNIvkX/4lRUfgGOvSz3bvnIYFkJKH6mdjbmM/gXjSn he1Q== X-Gm-Message-State: AOJu0YxyjWNRSZsEQ2qxtFilq6rotmhoeZ/WWzKMVfALJjawPcp0rLc2 RX/z32RcwSX4TKAo6yvCEIgRkYLNoqns4G/G6UIaKg== X-Google-Smtp-Source: AGHT+IHd8nfOXYN0HRoHcmXLek9QhT8Y30H85VD2sOKKvYgG3tisRC/FM1myQ1Qur5Cj6Zbpy5s2Rg== X-Received: by 2002:a05:600c:3786:b0:405:359a:c965 with SMTP id o6-20020a05600c378600b00405359ac965mr3308022wmr.4.1695978996822; Fri, 29 Sep 2023 02:16:36 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:36 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:07 +0200 Message-Id: <20230929091627.7820-3-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.com> MIME-Version: 1.0 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * Makefile.am (MODULES): Add avr platform module. * doc/guix.texi: Add documentation for avr platform. * guix/platforms/avr.scm (avr): New variable. --- Makefile.am | 1 + doc/guix.texi | 6 ++++++ guix/platforms/avr.scm | 29 +++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 guix/platforms/avr.scm diff --git a/Makefile.am b/Makefile.am index 8924974e8a..c11a1c538d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -136,6 +136,7 @@ MODULES = \ guix/ipfs.scm \ guix/platform.scm \ guix/platforms/arm.scm \ + guix/platforms/avr.scm \ guix/platforms/mips.scm \ guix/platforms/powerpc.scm \ guix/platforms/riscv.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index 46591b2f64..70cde9c53c 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -16665,6 +16665,7 @@ The available targets are: - aarch64-linux-gnu - arm-linux-gnueabihf + - avr - i586-pc-gnu - i686-linux-gnu - i686-w64-mingw32 @@ -45332,6 +45333,11 @@ Platform targeting x86 CPU running GNU/Hurd (also referred to as ``GNU''). @end defvar +@defvar avr +Platform targeting AVR CPUs without an operating system, with run-time support +from AVR Libc. +@end defvar + @node System Images @chapter Creating System Images diff --git a/guix/platforms/avr.scm b/guix/platforms/avr.scm new file mode 100644 index 0000000000..b6ca6e4a10 --- /dev/null +++ b/guix/platforms/avr.scm @@ -0,0 +1,29 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Foundation Devices, Inc. +;;; +;;; 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 (guix platforms avr) + #:use-module (guix platform) + #:use-module (guix records) + #:export (avr)) + +(define avr + (platform + (target "avr") + (system #f) + (glibc-dynamic-linker #f))) +