From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aCkeFBzAb2J9IgAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 13:27:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QJQ2ExzAb2Ii5QAAG6o9tA (envelope-from ) for ; Mon, 02 May 2022 13:27:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3FD2F452D7 for ; Mon, 2 May 2022 13:27:23 +0200 (CEST) Received: from localhost ([::1]:35320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlUD4-0003zL-CF for larch@yhetil.org; Mon, 02 May 2022 07:27:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlU63-0001gb-2F for guix-patches@gnu.org; Mon, 02 May 2022 07:20:21 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlU5z-0005Zp-02 for guix-patches@gnu.org; Mon, 02 May 2022 07:20:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlU5y-0005jR-R9 for guix-patches@gnu.org; Mon, 02 May 2022 07:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55220] [PATCH 1/4] platform: Introduce new platforms. References: <20220502111715.13500-1-othacehe@gnu.org> In-Reply-To: <20220502111715.13500-1-othacehe@gnu.org> Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 11:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55220 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55220@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 55220-submit@debbugs.gnu.org id=B55220.165149036521942 (code B ref 55220); Mon, 02 May 2022 11:20:02 +0000 Received: (at 55220) by debbugs.gnu.org; 2 May 2022 11:19:25 +0000 Received: from localhost ([127.0.0.1]:35010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlU5M-0005hp-K4 for submit@debbugs.gnu.org; Mon, 02 May 2022 07:19:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlU5L-0005hZ-38 for 55220@debbugs.gnu.org; Mon, 02 May 2022 07:19:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlU5F-0005Vk-Qs for 55220@debbugs.gnu.org; Mon, 02 May 2022 07:19:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=atjkmY7MuFCpgH0Drkvy3M+CpV/ku/LfXbH4jGEP9f4=; b=fW325wdVSQlqlv uFTPo2gWWt1S/0QT/+wOtGLA0OdRt8ui4JR/IIAjJxKFFNrlAv3chL8zWdvu8reJsqh5POziojF4r 41XfQWkQOcDQ+btfiisWfEzEXhx8h0dnHQMBt8hQJzKMUU5spLRn2RkiiI7KrsqpTE2/d4Ho9yr6a Mpk3OLJItoMJv1TIkc7LgAu4dWPEeErOnW3IZr5nJMJqjlFEE49GPK1tpbpTq9kfudqx7tNq1QvaF IDRfSrcleewEXsD+IlKBc4nOiIO6m2mFmO5TR6OrgAyzgFMZilnZcTDrFcQkTNKdCss0ycKMtSyqR fRDaXB+uhNLXp45LCQOw==; Received: from 71.125.192.77.rev.sfr.net ([77.192.125.71]:33768 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlU55-0004xO-MF; Mon, 02 May 2022 07:19:10 -0400 From: Mathieu Othacehe Date: Mon, 2 May 2022 13:18:56 +0200 Message-Id: <20220502111859.13605-1-othacehe@gnu.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651490843; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=atjkmY7MuFCpgH0Drkvy3M+CpV/ku/LfXbH4jGEP9f4=; b=fK9YHQ/kPeiiogjhz1h/hradr54aJiOL2uitP+BrPSHYvrB621Td8LF8FGdu1JvxN8UIdf RT6gKauXlK31kB+18CUUMIo+HyOpbOOguSpqxamgAEGqXUj7qVd5E/ROXbkH1pJqHmrwas eGVgy5UGt3ZCmuMeLZ1apFq1OSMUrf/tahff5Gx2MnswAOOBZ2HUBpoeulFmtsoBsd8hMv zhTTItJNXLypQWkSwayz4GTe5zSjLqdIvf+7L2gyMPBxWWQ7F99pukXjwFp0B0lOl0TElA 9JQBwTQswEbXeWekn5YUbReolrPVjNHHzQKjxeMAMvA7tpiRU3FTAFVf2agceQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651490843; a=rsa-sha256; cv=none; b=elF+OjwdjT1jeiJrkyqkY04LOq9OpzaxoHgA0VtqZKvl6cnocGzpyVXDDlKdeZ0F0qXuDZ zhy4rNwr3HFGfMCc1ds60/Lk5AxaI5cu7X59ch3JeHLBoD8V9V2Nr4NELX8sT5aWtM3kkH iqoE2fqoc3JYeoaIB1IxpUo5rajW67ev9rFYsd3yslRzcBnW0zfGg84Dpx4CBwIOlV1uSD CLr5x0cy2vABSdak6GyHcIT9soXai4qGxlBf+5MLXtJHGVslZhF+DXZKCyT3p/+3UebLbA 3Yz9/l5EwmmSZgFOW00knih7wM7cyhl+LbQgvSyE8RLtcRJEZjhEag2+I4srQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fW325wdV; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fW325wdV; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3FD2F452D7 X-Spam-Score: -1.39 X-Migadu-Scanner: scn1.migadu.com X-TUID: kDhWTahyWy7Z * gnu/platforms/intel.scm: New file. * gnu/platforms/mips.scm: Ditto. * gnu/platforms/powerpc.scm: Ditto. * gnu/platforms/riscv.scm: Ditto. * gnu/local.mk (GNU_SYSTEM_MODULES): Add them. Signed-off-by: Mathieu Othacehe --- gnu/local.mk | 4 ++++ gnu/platforms/intel.scm | 48 +++++++++++++++++++++++++++++++++++++++ gnu/platforms/mips.scm | 29 +++++++++++++++++++++++ gnu/platforms/powerpc.scm | 36 +++++++++++++++++++++++++++++ gnu/platforms/riscv.scm | 29 +++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 gnu/platforms/intel.scm create mode 100644 gnu/platforms/mips.scm create mode 100644 gnu/platforms/powerpc.scm create mode 100644 gnu/platforms/riscv.scm diff --git a/gnu/local.mk b/gnu/local.mk index ad7b0a1480..6dcb143647 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -632,6 +632,10 @@ GNU_SYSTEM_MODULES = \ \ %D%/platforms/arm.scm \ %D%/platforms/hurd.scm \ + %D%/platforms/intel.scm \ + %D%/platforms/mips.scm \ + %D%/platforms/powerpc.scm \ + %D%/platforms/riscv.scm \ \ %D%/services.scm \ %D%/services/admin.scm \ diff --git a/gnu/platforms/intel.scm b/gnu/platforms/intel.scm new file mode 100644 index 0000000000..fb1be04cfc --- /dev/null +++ b/gnu/platforms/intel.scm @@ -0,0 +1,48 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Mathieu Othacehe +;;; +;;; 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 platforms intel) + #:use-module (gnu platform) + #:use-module (gnu packages linux) + #:use-module (guix records) + #:export (intel32-linux + intel64-linux + intel32-mingw + intel64-mingw)) + +(define intel32-linux + (platform + (target "i686-linux-gnu") + (system "i686-linux") + (linux-architecture "x86"))) + +(define intel64-linux + (platform + (target "x86_64-linux-gnu") + (system "x86_64-linux") + (linux-architecture "x86"))) + +(define intel32-mingw + (platform + (target "i686-w64-mingw32") + (system #f))) + +(define intel64-mingw + (platform + (target "x86_64-w64-mingw32") + (system #f))) diff --git a/gnu/platforms/mips.scm b/gnu/platforms/mips.scm new file mode 100644 index 0000000000..84a492699d --- /dev/null +++ b/gnu/platforms/mips.scm @@ -0,0 +1,29 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Mathieu Othacehe +;;; +;;; 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 platforms mips) + #:use-module (gnu platform) + #:use-module (gnu packages linux) + #:use-module (guix records) + #:export (mips64-linux)) + +(define mips64-linux + (platform + (target "mips64el-linux-gnu") + (system "mips64el-linux") + (linux-architecture "mips"))) diff --git a/gnu/platforms/powerpc.scm b/gnu/platforms/powerpc.scm new file mode 100644 index 0000000000..8fadfe88de --- /dev/null +++ b/gnu/platforms/powerpc.scm @@ -0,0 +1,36 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Mathieu Othacehe +;;; +;;; 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 platforms powerpc) + #:use-module (gnu platform) + #:use-module (gnu packages linux) + #:use-module (guix records) + #:export (powerpc-linux + powerpc64le-linux)) + +(define powerpc-linux + (platform + (target "powerpc-linux-gnu") + (system "powerpc-linux") + (linux-architecture "powerpc"))) + +(define powerpc64le-linux + (platform + (target "powerpc64le-linux-gnu") + (system "powerpc64le-linux") + (linux-architecture "powerpc"))) diff --git a/gnu/platforms/riscv.scm b/gnu/platforms/riscv.scm new file mode 100644 index 0000000000..29a34402a2 --- /dev/null +++ b/gnu/platforms/riscv.scm @@ -0,0 +1,29 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Mathieu Othacehe +;;; +;;; 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 platforms riscv) + #:use-module (gnu platform) + #:use-module (gnu packages linux) + #:use-module (guix records) + #:export (riscv64-linux)) + +(define riscv64-linux + (platform + (target "riscv64-linux-gnu") + (system "riscv64-linux") + (linux-architecture "riscv"))) -- 2.35.1