From patchwork Fri Jan 19 13:54:40 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: 59130 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 07C5E27BBE2; Fri, 19 Jan 2024 13:56:41 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 D231827BBEC for ; Fri, 19 Jan 2024 13:56:35 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpLz-0003U5-VL; Fri, 19 Jan 2024 08:56:16 -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 1rQpLp-0003Rw-BA for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:07 -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 1rQpLm-0007xX-Ch; Fri, 19 Jan 2024 08:56:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQpLm-0001va-9a; Fri, 19 Jan 2024 08:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 1/9] guix: Add ork1-elf platform. References: In-Reply-To: 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: Fri, 19 Jan 2024 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68355 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68355@debbugs.gnu.org Cc: othacehe@gnu.org, 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 68355-submit@debbugs.gnu.org id=B68355.17056725157244 (code B ref 68355); Fri, 19 Jan 2024 13:56:02 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:15 +0000 Received: from localhost ([127.0.0.1]:57861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpL0-0001sk-Hu for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:14 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:46525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpKy-0001s7-Be for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:13 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40e8d3b29f2so8542385e9.1 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672504; x=1706277304; 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=R2wXDL793+rU3M6/VsqJySnxUKOqwcQynTp8t0nz0Ww=; b=OnX+L0z9kSduhhZ4sQnzY0E+aztRsUUw8xE6lcRwTuTrtIcixfUsf66n36yzXbL02x JQcokvG8IZDsHjgvp2blUCSHBnSIsXP2mE8irMO6Pb/heLpdQF6jzLsZpDeizynV3Qtw 2vr16NIhTS3JJEwRAuDq+dAoSDy6HNYZfET5Mq9T3mAPB4e5sNF1/SmWsIWD627DbtLU R3zwlwDYdSIuSDzCj48oswEcpjqeuTZi+Rtj3sgE2TkvjL9mqIkDlqOEJKcrZHE4Yf0S JC9NEnYH8iTsE6zqol7M+g1BVqfeOKFRwl6FRD01FSxBllruUGcNVmszf4BoSH6qrwmH 6rnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672504; x=1706277304; 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=R2wXDL793+rU3M6/VsqJySnxUKOqwcQynTp8t0nz0Ww=; b=fJnZIqYkkI7dnWjUFfrJ0Nzr72Bq7cpdWRPbgb9p/7txOwloWrWYEf6RKJ6rMNdddo HONSklgT0YNv7tAonZsWOx1ZqpwQv9JM4wQwymtnIC8ZHN22FEVclI3bUUK6mQ1PpMpj 4wu+rUyf/rFF1ozdDJZtdW2f6NTAb6MHrvxmjVvwUSrWAm43369JFQ8mEuZS0Qv4Di/N 8+7VXuffSe/6ptkdm/DTwza9rNaHCE3mddnpqCllu79lgoehkXmI2tN4ot2NZsg6R/G/ tjPLGaN6wJx3N6RmwpSbIXzpoLAAldj0nLW5SN1FHEe9gJLQrdLg+2aKQJUVZdO4HEjP 3q1Q== X-Gm-Message-State: AOJu0Yx7z2H7a1lP48kD+HJmiXXplVtAD+5u8VdH/6l3bi0Mle4fujkO /KQAq4g+IKCB3TozlDDRwLuXOkk7m7g14shrK32cbTuSl+ZJ7U/gbSHhUF1isJKOAlm5th5BN3Q VrwI= X-Google-Smtp-Source: AGHT+IFdS7tpOfJJ+dfOFKiTn3P22c0/xwk8s91iQM1Imwd8C68bmWlYeJrkGZYFNA4pz4nfxHMdYg== X-Received: by 2002:a05:600c:1f87:b0:40e:8cf5:2944 with SMTP id je7-20020a05600c1f8700b0040e8cf52944mr1023460wmb.71.1705672503994; Fri, 19 Jan 2024 05:55:03 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id s8-20020a05600c45c800b0040e527602c8sm33314846wmo.9.2024.01.19.05.55.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:03 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:40 +0100 Message-ID: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.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 * doc/guix.texi: Document or1k-elf platform. * guix/platforms/or1k.scm (or1k-elf): New variable. * Makefile.am (MODULES): Add guix/platforms/or1k.scm. Change-Id: I3f71a0fa97f1ebd2bbdbf6cd00a93b477a123648 --- Makefile.am | 1 + doc/guix.texi | 6 ++++++ guix/platforms/or1k.scm | 28 ++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 guix/platforms/or1k.scm base-commit: 0eadd486484fcf9a234758842f74ba28361640db diff --git a/Makefile.am b/Makefile.am index d3b9532c7a..bdc97498aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -140,6 +140,7 @@ MODULES = \ guix/platforms/arm.scm \ guix/platforms/avr.scm \ guix/platforms/mips.scm \ + guix/platforms/or1k.scm \ guix/platforms/powerpc.scm \ guix/platforms/riscv.scm \ guix/platforms/x86.scm \ diff --git a/doc/guix.texi b/doc/guix.texi index ac17f91f7d..df6ce91736 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -16903,6 +16903,7 @@ Cross-Compilation - i686-linux-gnu - i686-w64-mingw32 - mips64el-linux-gnu + - or1k-elf - powerpc-linux-gnu - powerpc64le-linux-gnu - riscv64-linux-gnu @@ -46167,6 +46168,11 @@ Supported Platforms from AVR Libc. @end defvar +@defvar or1k-elf +Platform targeting OpenRISC 1000 CPU without an operating system and without a +C standard library. +@end defvar + @node System Images @chapter Creating System Images diff --git a/guix/platforms/or1k.scm b/guix/platforms/or1k.scm new file mode 100644 index 0000000000..bf983085c5 --- /dev/null +++ b/guix/platforms/or1k.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 or1k) + #:use-module (guix platform) + #:use-module (guix records) + #:export (or1k-elf)) + +(define or1k-elf + (platform + (target "or1k-elf") + (system #f) + (glibc-dynamic-linker #f)))