From patchwork Tue Nov 28 11:35:00 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: 56906 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 B826927BBE9; Tue, 28 Nov 2023 11:38:03 +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=ham 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 20F8527BBEA for ; Tue, 28 Nov 2023 11:38:02 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wOj-0006xZ-EA; Tue, 28 Nov 2023 06:37:01 -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 1r7wOi-0006wV-3I for guix-patches@gnu.org; Tue, 28 Nov 2023 06:37:00 -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 1r7wOh-0008Di-Rb for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wOo-0003Ow-Ju for guix-patches@gnu.org; Tue, 28 Nov 2023 06:37:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 17/22] gnu: Add gcc-cross-avr-toolchain. 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-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:37:06 +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 Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117140812929 (code B ref 66263); Tue, 28 Nov 2023 11:37:06 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:36:48 +0000 Received: from localhost ([127.0.0.1]:45643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wOV-0003MO-Ke for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:48 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:46171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wOC-0003K6-2V for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:29 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40b3e7f2fd9so25400865e9.0 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171375; x=1701776175; 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=kAGKQcC+XAj5vLaiT8Ko9vi/4OvzPx2Wv+U3UurPDas=; b=Emhq8Ak75TFbgX8u6QbviZr6TXuGik8SoelsVBFkxZKzC/fLKmLBZO7esE/TCytPSl ajRfNC9e+FOEu1yn8HEzos7su4jGpfjkXqYf8MmaszEWaEcXzyvMdpFX6CqwVkX0s/eU 1R8+D27tu5DlBvJiWwbcNgPZ77qnKH1qqd6rzDcC1Y3Lm3KwhkdZtfjBjIgzPESdOVON toPv9iGAYZcZINvgHRs6AP9Rfqz+/NvPWhF9iCFZT108aj2BxdihoG0zkdDgLc7GJspm vJlF8w68S2fWi7PCF7YMBIIQS6MCwG8YIJfWEv1ZZ4m+kuYoPJVQQX7olXwfxOjtwDxX zS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171375; x=1701776175; 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=kAGKQcC+XAj5vLaiT8Ko9vi/4OvzPx2Wv+U3UurPDas=; b=kYLI45aFpO84bjHgwyFFodCp5/4/FwtCLMI+qRSDR3QIzjRUd63TUnsamoZ6Mp1iQj Byd6lLCbc4B5g5Xdmzc2DpHIoMhj7iUg+b8ygrCsepF3jAJw3N/7nZ3Kdd/Grjk0fXzl ZJRASMjbsH3AXOL3CsTYhjIBJepMKw8AIMtWr9Ko/0XO7IGCxua6vqagQCMgtF1K5xTi adjeLOZQqgsYJ7INj/9aP722JrP4VWD/LaNQnifAJ/TrQjZsW7EqSXVeXEMKhECsVBnL E0mJ28J+4u7FMkHkAnpVDkYRYH5XctziCTIIHp7Y1FCL0R5QWT+zR/z+4BTvKFVrj44N +VmQ== X-Gm-Message-State: AOJu0YzNV8b9Ue7gR7CoMKOM84cqtNwloF4kUSZGb8uqTwJGYa7ksCpK 2wXeC/tuG/+fiyTbhADiBiw9Pg7N5KC3+p0/7HM= X-Google-Smtp-Source: AGHT+IG9uTOzBKkGaqlISMX/xLIMhY17vymYx3OfTIwdk8Hr0X74eb8KPKYjoPAmuRO2jt5e6XdCzQ== X-Received: by 2002:a05:600c:a03:b0:40b:47bf:f4cd with SMTP id z3-20020a05600c0a0300b0040b47bff4cdmr3870754wmp.25.1701171375400; Tue, 28 Nov 2023 03:36:15 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:36:15 -0800 (PST) Date: Tue, 28 Nov 2023 12:35:00 +0100 Message-ID: <20231128113510.11214-17-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 * gnu/local.mk (GNU_SYSTEM_MODULES): Add cross-toolchain.scm. * gnu/packages/cross-toolchain.scm (gcc-cross-avr-toolchain): New variable. Change-Id: Ie768d5cc0663dd57753af1d4ac631b3cafbf9e8c --- gnu/local.mk | 1 + gnu/packages/cross-toolchain.scm | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 gnu/packages/cross-toolchain.scm diff --git a/gnu/local.mk b/gnu/local.mk index a8142bb0f2..1360548e69 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -201,6 +201,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/crates-graphics.scm \ %D%/packages/crates-gtk.scm \ %D%/packages/cross-base.scm \ + %D%/packages/cross-toolchain.scm \ %D%/packages/crypto.scm \ %D%/packages/cryptsetup.scm \ %D%/packages/cups.scm \ diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolchain.scm new file mode 100644 index 0000000000..08511a7c00 --- /dev/null +++ b/gnu/packages/cross-toolchain.scm @@ -0,0 +1,36 @@ +;;; 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 (gnu packages cross-toolchain) + #:use-module (gnu packages cross-base) + #:use-module (guix packages)) + +;;; Commentary: +;;; +;;; This module provides packages for cross compilation toolchains. These +;;; packages must not be used at the top level to avoid cyclic module +;;; dependencies caused by the (gnu packages cross-base) module referring to +;;; to top level bindings from (gnu packages gcc). +;;; +;;; The real purpose of these packages is for installation on profiles by users +;;; and other packages should make use of the toolchain through the usual cross +;;; compilation methods. For example, by using the `#:target' argument on +;;; packages or `--target' on the command line. + +(define-public gcc-cross-avr-toolchain + (cross-gcc-toolchain "avr"))