From patchwork Thu Feb 29 15:20:44 2024 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: 61242 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 01CFC27BBEA; Thu, 29 Feb 2024 15:23:06 +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 250C327BBE2 for ; Thu, 29 Feb 2024 15:23:05 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfiF8-00073B-9S; Thu, 29 Feb 2024 10:22:42 -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 1rfiF5-00070q-P4 for guix-patches@gnu.org; Thu, 29 Feb 2024 10:22:39 -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 1rfiF5-0004X8-5l; Thu, 29 Feb 2024 10:22:39 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfiFS-0004go-OA; Thu, 29 Feb 2024 10:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69476] [PATCH 2/8] guix: Add xtensa-ath9k-elf platform. 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: Thu, 29 Feb 2024 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69476 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69476@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 69476-submit@debbugs.gnu.org id=B69476.170922015517926 (code B ref 69476); Thu, 29 Feb 2024 15:23:02 +0000 Received: (at 69476) by debbugs.gnu.org; 29 Feb 2024 15:22:35 +0000 Received: from localhost ([127.0.0.1]:35022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiF0-0004ey-Nj for submit@debbugs.gnu.org; Thu, 29 Feb 2024 10:22:35 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:48373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiEv-0004e9-De for 69476@debbugs.gnu.org; Thu, 29 Feb 2024 10:22:30 -0500 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-412c286be35so2259705e9.0 for <69476@debbugs.gnu.org>; Thu, 29 Feb 2024 07:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1709220056; x=1709824856; 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=QtK7nDLtVxeCmc6qCQxMdT8HrSFVa2b8lv8Ky3NN3eI=; b=JkOOsKUPHIglysFEE6mpZmrzqZCDaXNeyAtFEwJNH09ZOoWsTlrzvcfsGwoOnfITt2 730a87kat6/XJtHw/loXj23dB8NFfAGHTx3q5c8AyZkzIm4w1sQe8Uq1dYFBXIXH7nTd 9cEO6Ok97E/RrLH3SCWiBYVshO0wldoPV5pjCUD8WRkBFKHNdbA1blpCA711IvzBFDiT WHyYLDKBcqvrWAejrBYF7J0mUMO3Wov+tQdLW2zR026Ec8FpAUlLFZHiutSr7+pe4WOL xYqeagn84cAVPvdJ5ocmMQtLsWBr5u9CSOnrE1bWIeHG8mpfdWUGJovbTBduiJosRXNt rY5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709220056; x=1709824856; 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=QtK7nDLtVxeCmc6qCQxMdT8HrSFVa2b8lv8Ky3NN3eI=; b=ZwqfgN5I6au0/lKC3BrykA8yEvsxQVslouVCRUwVWW1YWNUoVSiYIx+hmZkDZgjB4b AkjHtQBKHqstFmZl07ci683ks7iF1sJypqOX+QxqoXll0xu4vIUkvGhqpeZnqiV+ald6 CxPDlRPA1C5qSBW/ZBCdVAN70XmY1XNk2aZrcNL5kDUNJS5ZDvFkSYrF/m4Ag8xFY/YC +M+OvM18y7TSMewnBOR15K/prP2/7BiK/LS92mLctJjpgcudyBaoNYtPAFClfYJjoZW0 UHBaRm6e2kC3/yk/4h2lUHZCSt4j8AgYjc8eLKD4Rysqk5UhLAosF2IfVCe+ps5DdiO5 AT9A== X-Gm-Message-State: AOJu0YyT7fgNU+3sHNCNfpz595qfGojSbAKoyak7BCjx/hAvtDxTGgXi l69YdTsClXfeGDH4ucHjwubAw3U7rpGU3UUF1fiWbVAHMC/TRgCFtbLaTKUZTk+qkqR+3zcceoV wl5g= X-Google-Smtp-Source: AGHT+IGSb8nRTWDeYXeUIF4JF8FmKvnthQwHsaVsAc4jHXguRcrzCu3Lh+aYRtMa6aL5IX2eRcenNg== X-Received: by 2002:a05:600c:154a:b0:412:a16d:fedc with SMTP id f10-20020a05600c154a00b00412a16dfedcmr2073237wmg.7.1709220056265; Thu, 29 Feb 2024 07:20:56 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id n6-20020a05600c4f8600b0041273fc463csm5584786wmq.17.2024.02.29.07.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:20:56 -0800 (PST) Date: Thu, 29 Feb 2024 16:20:44 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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 guix/platforms/xtensa.scm. * guix/platforms/xtensa.scm (xtensa-ath9k-elf): New variable. * doc/guix.texi: Add xtensa-ath9k-elf documentation. Change-Id: I51eef245142ed58613340c16d4bf7266e6bf6adb --- Makefile.am | 1 + doc/guix.texi | 6 ++++++ guix/platforms/xtensa.scm | 28 ++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 guix/platforms/xtensa.scm diff --git a/Makefile.am b/Makefile.am index cef972880c..df62c4e255 100644 --- a/Makefile.am +++ b/Makefile.am @@ -144,6 +144,7 @@ MODULES = \ guix/platforms/powerpc.scm \ guix/platforms/riscv.scm \ guix/platforms/x86.scm \ + guix/platforms/xtensa.scm \ guix/build-system.scm \ guix/build-system/agda.scm \ guix/build-system/android-ndk.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index 7153c9e7a4..d3db1ee03d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -16965,6 +16965,7 @@ Cross-Compilation - x86_64-linux-gnu - x86_64-linux-gnux32 - x86_64-w64-mingw32 + - xtensa-ath9k-elf @end example Targets are specified as GNU triplets (@pxref{Specifying Target @@ -46763,6 +46764,11 @@ Supported Platforms C standard library. @end defvar +@defvar xtensa-ath9k-elf +Platform targeting Xtensa CPU used in the Qualcomm Atheros AR7010 and AR9271 +USB 802.11n @acronym{NICs, Network Interface Controllers}. +@end defvar + @node System Images @chapter Creating System Images diff --git a/guix/platforms/xtensa.scm b/guix/platforms/xtensa.scm new file mode 100644 index 0000000000..304e23ab1a --- /dev/null +++ b/guix/platforms/xtensa.scm @@ -0,0 +1,28 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 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 xtensa) + #:use-module (guix platform) + #:use-module (guix records) + #:export (xtensa-ath9k-elf)) + +(define xtensa-ath9k-elf + (platform + (target "xtensa-ath9k-elf") + (system #f) + (glibc-dynamic-linker #f)))