From patchwork Tue Nov 28 11:34:46 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: 56890 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 D4A9927BBE2; Tue, 28 Nov 2023 11:36:25 +0000 (GMT) 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 B73CB27BBE9 for ; Tue, 28 Nov 2023 11:36:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wNk-0005Zu-Ox; Tue, 28 Nov 2023 06:36:00 -0500 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 1r7wNi-0005Z6-P3 for guix-patches@gnu.org; Tue, 28 Nov 2023 06:35:58 -0500 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 1r7wNi-00080k-Ga; Tue, 28 Nov 2023 06:35:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wNm-0003Hu-S0; Tue, 28 Nov 2023 06:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 03/22] guix: Add avr platform. References: <20230929091333.7623-1-jean@foundationdevices.com> In-Reply-To: <20230929091333.7623-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:36: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: moreinfo patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117135312588 (code B ref 66263); Tue, 28 Nov 2023 11:36:02 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:35:53 +0000 Received: from localhost ([127.0.0.1]:45580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNc-0003Gy-Tu for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:35:53 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:52389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNa-0003Gk-Pm for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:35:51 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40b27b498c3so42393325e9.0 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171338; x=1701776138; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JOhsgnbKn4rQmWin1rIgInxd8nT/JV42ZAIue/VrGdc=; b=Au55QlvyQBWZSm0pOh4qsVnHpxGqNjKbXKHK+DErrHvsdOJYspQVkbugETPl+x6nb9 ImXmbYytKjqBTmG0Xco+y7DP+9Iro7sKwOJVPpVDywKrVFYAxg/0zpJlf4r41gtjuAuJ IvPCWbMlss8psiCYBxc8F1lBNeVFlCvr2keY6yWFT1nP3VSyubME5Drv1CM4q2mMUSSq XBvfs008sw3tfP6z9zGP0R6zqyrhJ+Woz7AEv0dsSB6gUF2+C5JPvf3oJgPneJGYqCwy 3vLWBlyCOqMsM4Z4RyN1guqq9ZzlPneUzHKXWa2GJZeJZDbOkegVGF8DZcP/14VzbKDd +OOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171338; x=1701776138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JOhsgnbKn4rQmWin1rIgInxd8nT/JV42ZAIue/VrGdc=; b=dNtOotRKKMaodKPY0gAbZd2RL++qkbxAOCXq7P8UjQouSM7lkeqfMecU5ibXBNVwO4 /s08RzdvwnrMtKlhHbxo66dcv7/a0ihU57FKOpFyN7pGeI+saMQbH5/otxppzRmfDVEA ytX9UqAtUyytHiroUIXZVaeGsaxINUx1aQqc1bj74XQsQNuSf8aLsXVFoa7vsSuT6Cxq u5WDaZPnOB/5h4kEnYkp5fuIgI2oJOxFdFVpFIL7N98f92NotYSYkQggyL1NxdkAMEqJ SzojQOP2ngvBXMBr12yAwPJ63+WDtOfMPanJK6ZMHTQAaLW/hH2GUquDdTWaTDtO1PJA 9b8Q== X-Gm-Message-State: AOJu0YxScpXS20bYWJnq2GDDhOBjlCegJv9c+0987wFmZQxMwkD2r32r 5q6ly2nEeNREywLVKL/ZcN2Y+yJNBvtxNAA0gL8= X-Google-Smtp-Source: AGHT+IHlRk12kj3+26ZPpczh9ADANrwuSEWONRWw5Ib0o0W4q9mRXoHxdHbBMhLM2kzLMQmLVI4bnQ== X-Received: by 2002:a7b:c7c5:0:b0:40b:2bad:7f61 with SMTP id z5-20020a7bc7c5000000b0040b2bad7f61mr10517304wmk.10.1701171337028; Tue, 28 Nov 2023 03:35:37 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:35:36 -0800 (PST) Date: Tue, 28 Nov 2023 12:34:46 +0100 Message-ID: <20231128113510.11214-3-jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 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. Change-Id: I0f425eac61a71390b618e093f5a034ad4205a6f4 --- Makefile.am | 1 + doc/guix.texi | 7 +++++++ guix/platforms/avr.scm | 28 ++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 guix/platforms/avr.scm diff --git a/Makefile.am b/Makefile.am index cbc3191dfc..9784b19054 100644 --- a/Makefile.am +++ b/Makefile.am @@ -138,6 +138,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 1fd2e21608..1026e24ebe 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -119,6 +119,7 @@ Copyright @copyright{} 2023 Tanguy Le Carrour@* Copyright @copyright{} 2023 Zheng Junjie@* Copyright @copyright{} 2023 Brian Cully@* Copyright @copyright{} 2023 Felix Lechner@* +Copyright @copyright{} 2023 Foundation Devices, Inc.@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -16699,6 +16700,7 @@ The available targets are: - aarch64-linux-gnu - arm-linux-gnueabihf + - avr - i586-pc-gnu - i686-linux-gnu - i686-w64-mingw32 @@ -45789,6 +45791,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..ba178db6ea --- /dev/null +++ b/guix/platforms/avr.scm @@ -0,0 +1,28 @@ +;;; 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)))