From patchwork Tue Jan 9 23:12:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 2127 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 9206F27BBE2; Tue, 9 Jan 2024 23:13:22 +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 CDDA127BBE9 for ; Tue, 9 Jan 2024 23:13:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNLHL-0000X2-QF; Tue, 09 Jan 2024 18:13:03 -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 1rNLHG-0000Wn-Oz for guix-patches@gnu.org; Tue, 09 Jan 2024 18:12:59 -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 1rNLHF-00008a-IK for guix-patches@gnu.org; Tue, 09 Jan 2024 18:12:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNLHK-0006Wf-LS; Tue, 09 Jan 2024 18:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH 0/8] guix: Add or1k-elf platform. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Tue, 09 Jan 2024 23:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68355 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68355@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by submit@debbugs.gnu.org id=B.170484197325066 (code B ref -1); Tue, 09 Jan 2024 23:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2024 23:12:53 +0000 Received: from localhost ([127.0.0.1]:41258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNLHB-0006WD-FQ for submit@debbugs.gnu.org; Tue, 09 Jan 2024 18:12:53 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNLH8-0006Vt-CP for submit@debbugs.gnu.org; Tue, 09 Jan 2024 18:12:51 -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 1rNLGu-0000Lg-4d for guix-patches@gnu.org; Tue, 09 Jan 2024 18:12:36 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNLGe-0008OS-Lq for guix-patches@gnu.org; Tue, 09 Jan 2024 18:12:30 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40d88fff7faso36870885e9.3 for ; Tue, 09 Jan 2024 15:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1704841939; x=1705446739; darn=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=flZWvCtwBEly2ZlV7rRT7Sf8mbUBPTpUX+Iz7EVoIuw=; b=STUjyddXjQbTad/vDDJu0qmRgvFPXq2SyIUTSDHaJ5VlEye5Dsdw7IsSdf/7+52nL1 3YaobQwGincFtpM9JXw0dQ16F5mlSGRtJMxebuSWOUgU8dbA7dv3oBI8xosZAz4DTpCj QUptI1VP0/Lll7JRUnxbuAnDhybIkQzivWm14fDOArHIBJQ5QJbvLZE3B725av8YTMqQ 16kFtlQOS3BrVnGuKnASsptQBRd+hyl4Zzn8u46ensVqR6cCxNm8D3M8IGJ+KawqCX/H egjWw/3qAIf4hKrCN22Jip94eMRZ/p9xXW72gA7fWzJ/zWgV1MLGxBXa5pzFo+yXfGFY XFAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704841939; x=1705446739; 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=flZWvCtwBEly2ZlV7rRT7Sf8mbUBPTpUX+Iz7EVoIuw=; b=h+QX/H3gSUEsZkWAYwDWWevmeqbi7rCQnzVuvxFjPhCV0+Sc+BXHpNgn0bfCxwbtaq 1iC/JQEKne3wNHm7Ue7ChpTkRH8yAdePUfCt906SNfE79jkyZR5H1DHbjF3ULy+OewNG ZHghj29v6FiK5zphIr801qRSkWB635MR9KllifYi1j/epDUEjg+VFOuY3Xp4tj6dThL+ 8tLIIiXBWk7dRyPXXSx09jpRLk2wD/cu5WBtv4AvLfbMbiwLMW4GRFFeKBt4QDSYEkvO TbVduTTRf1OzMMuAegACL52dayGlemNjX3rKWz9e5j9TwH66cYgT3/CAfonjDQFmqc3c SQFw== X-Gm-Message-State: AOJu0YxpBV86i7NQZkhUxF+rZ6O8Lo218gMzmjN7XP0QQCJDoHA3ZMPp Kg4RpRPRpwCqn5NKpAtPMCsAjPupY3Z9aRROy+H0U/r66Yw0rw== X-Google-Smtp-Source: AGHT+IEv1ThWd2TnkGnKs6kJTU/GduMv/LG7wokTZZLlsZmlSNFPOuHCTd8LxbJlYGg5YLhTANi6LQ== X-Received: by 2002:a05:600c:3145:b0:40d:8954:a735 with SMTP id h5-20020a05600c314500b0040d8954a735mr12258wmo.156.1704841938765; Tue, 09 Jan 2024 15:12:18 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id g11-20020a05600c310b00b0040d5f466deesm60908wmo.38.2024.01.09.15.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:12:18 -0800 (PST) Date: Wed, 10 Jan 2024 00:12:15 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=jean@foundationdevices.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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 This patch series adds the or1k-elf platform, a cross-gcc-toolchain package for it and refactors the sole user of it to use GNU Guix cross-compilation means (for MAKE-CRUST-PACKAGE). The latter procedure has been split into MAKE-CRUST-TOOLS and MAKE-CRUST-FIRMWARE since there's a part for the or1k-elf target and other for the current system or target, adding to that the tools has been disabled by default on the recent version by the upstream project since the firmware should be loaded by U-Boot, however decided to build the tool anyway to avoid breaking any users of this package, as a result MAKE-CRUST-PACKAGE combines MAKE-CRUST-TOOLS and MAKE-CRUST-FIRMWARE. Jean-Pierre De Jesus DIAZ (8): guix: Add ork1-elf platform. gnu: cross-gcc-toolchain: Use fixed name. gnu: Add gcc-cross-or1k-elf-toolchain. gnu: make-crust-package: Memoize. gnu: make-crust-package: Update to 0.6. gnu: make-crust-package: Use or1k-elf as target. gnu: Add make-crust-tools. gnu: make-crust-package: Unite firmware and tools. Makefile.am | 1 + doc/guix.texi | 6 + gnu/packages/cross-base.scm | 4 +- gnu/packages/cross-toolchain.scm | 3 + gnu/packages/firmware.scm | 187 ++++++++++++++++++------------- guix/platforms/or1k.scm | 28 +++++ 6 files changed, 152 insertions(+), 77 deletions(-) create mode 100644 guix/platforms/or1k.scm base-commit: 8920cf302c5a2fd457a2629afe24cf4768f1fed7