From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yB8FGGke6GaF7gAAe85BDQ:P1 (envelope-from ) for ; Mon, 16 Sep 2024 12:02:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yB8FGGke6GaF7gAAe85BDQ (envelope-from ) for ; Mon, 16 Sep 2024 14:02:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=bjF2EO1G; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=M4k9n8CD; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=foundation.xyz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726488169; 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: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=RhwhDTLY/gpsmTE9x2YEae9poCnmMKMC2IxF1BA06J4=; b=C5KxDd325DXbIXLaKZaj7YWnyXOXLXPEmWaTVDN8az+VDVUs4JfkwIFdpLigJLg9sBzrwB sscSazKNqSSO1xVPxFkH8SYCO1TKTHEFl0bYOeyXeFCcOeOW1ZKUUZ5U3eXFNjHaxRbUJG DUaV3EpV8Ft/17oj78lzp3NCRc/TeCxdcXBlGR5bn/Fu8YWPWDKju+NB8nkOlDb9UUl+C+ 1YTdjq6CEQD8M/j0LUKMX8U3QzL25sW9Vy9lRhkeekff25zMD+1DEDZeXp1L+etzGMy+1S eacTwCUmPxidz/9yZJud1TqYAs3vsfHGWWIMcDtJIN3Dc4ak6G5boSmGRWo9jw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=bjF2EO1G; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=M4k9n8CD; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=foundation.xyz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726488169; a=rsa-sha256; cv=none; b=M784tD8fBEzjkH43PyeWEEiJBFw2uhUmNyrzWycN5a5zrPnii718bIsSIdjoY4utz1Shq6 7V6pbLRBwHT97f+hEb/lF/cdwjTWgQVf7R6cgFcYQ1+uZySiiMQLLVBztABxKgVhTlhgQ/ eoXHsbeSF9ga0VgB1DLQVU3VL0Pp6rUuj2lAh9BiotNsTmwjrBbCKGb/qfWfDJ5xZG3+Lt vkiS/Kun7A3xpasE2M/8FqznwJwSHz5Fff+EGavyS89pruFmr/4jXS5e/zatbXYZ7Ipn0t YUVEY1/cEZ7I0hzn5q0+wDretE0mfPM+7DElUR5f7pHDWDnfxqYDwjDzJHmuoQ== 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 0EDDBB0F5 for ; Mon, 16 Sep 2024 14:02:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqAQu-0002oe-2Q; Mon, 16 Sep 2024 08:02:21 -0400 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 1sqAQP-0002ce-R7 for guix-patches@gnu.org; Mon, 16 Sep 2024 08:01:54 -0400 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 1sqAQP-00075L-BZ for guix-patches@gnu.org; Mon, 16 Sep 2024 08:01:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:In-Reply-To:References:Subject; bh=RhwhDTLY/gpsmTE9x2YEae9poCnmMKMC2IxF1BA06J4=; b=bjF2EO1GI9WW03nKDa8zl3lkFNUJIkFdv1tcMMxrCB75IsWhVnFXXCk3r0yOMccMJFQ5AIRU4ZUFuu+NHouGlBZnuQ0X6VkuxrmQk1T4A2G1G3tzynrRK/n+002cLGhoQQ1cpeNkqo7ahduu0HII8xe35mbWFMELoWy+a+n19cvhso/blzrZRSkSY/97qgqfgka8M+mEjfLixqn0agzs7UnCD9QPdvIDGLBY8clNoUUBZEJMjrxb4B/08jymTWIv4sBIrOgSefdtllZCNInfmG6SHOiqI5KEa6QejHMNdGGmVM/+1Fbn06p8YTJd1wsop+hjPmhIm6ysw4TCg0o8YQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqAQc-0003K6-Gb for guix-patches@gnu.org; Mon, 16 Sep 2024 08:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73277] [PATCH 1/2] gnu: Add mipsel-none-elf-toolchain variant. References: <7c35f8694833a9371d84c51ce4a07119358e187e.1726426231.git.manolis837@gmail.com> In-Reply-To: <7c35f8694833a9371d84c51ce4a07119358e187e.1726426231.git.manolis837@gmail.com> Resent-From: Jean-Pierre De Jesus Diaz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Sep 2024 12:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73277 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73277@debbugs.gnu.org Cc: manolis837@gmail.com Received: via spool by 73277-submit@debbugs.gnu.org id=B73277.172648811012742 (code B ref 73277); Mon, 16 Sep 2024 12:02:02 +0000 Received: (at 73277) by debbugs.gnu.org; 16 Sep 2024 12:01:50 +0000 Received: from localhost ([127.0.0.1]:51212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqAQP-0003JR-KB for submit@debbugs.gnu.org; Mon, 16 Sep 2024 08:01:49 -0400 Received: from mail-ua1-f49.google.com ([209.85.222.49]:42020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqAQN-0003JB-Ua for 73277@debbugs.gnu.org; Mon, 16 Sep 2024 08:01:48 -0400 Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-846bc2104c8so2348093241.0 for <73277@debbugs.gnu.org>; Mon, 16 Sep 2024 05:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1726488029; x=1727092829; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=RhwhDTLY/gpsmTE9x2YEae9poCnmMKMC2IxF1BA06J4=; b=M4k9n8CDlaZEOSakEcPt54qiUvn5B8pKF/fAqXhI6cO3lI9J+gVS29+LvjlddZU9LR s0auaElrEzQfROv9YBtNqCnepyeR6QbkCJ5SxW86i9hWeHov3BwCpTg2mCKfYhhOQ2H5 +pqpHcamHSslUz07xd6ZW/4gqzef+qP+cxkHxB33tOnyvcZRY0I6eZboqjiFaHhe3OL2 c7Mc6KbMeZgbSmdWgFuThLsGbiQb53nhpKXPHLDqltqoHVFncBRxkRKXZ3p3W0Sm06S5 osHZvkvPOeB5J9cupIz4HEF6BNuzPg3xBikjNPR+VPhrNU4zrG9VyaQ/kVyJQX5kLOVA pKHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726488029; x=1727092829; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RhwhDTLY/gpsmTE9x2YEae9poCnmMKMC2IxF1BA06J4=; b=jPxtP9QKD1nZ13pGFUn8DOtkeK0G03Rc/8SHZn70paSq2eT4UMzGLWtoUGh+DOID4q gaFdPjBDWp+aCZE/qvLsjmwljqmNyS7t4V1dh63EMTihMxHsUmSVMGpRr+5GDj+nHu2T zAObrGK2SFPz4ohw8QShEOF29Tcs+YsyKnwm46YH5U5GLI8eLSe80Gc9sQi/M4288TRg wXDwRxopHidW3EQFu1tVzofowkIj/NcD2XsY7VeDU9SQo9zvPAI0+z1676OehY35yMpw cWJBIRsvijB1lzYbcFm/bsc5FAERuywYsGcbdUImfkQkD53Umed7BO8CkZsBrt5Rk2t7 7v4Q== X-Gm-Message-State: AOJu0YzP6dw+RF+xV6FRi7N9t/IF0EyPQ7T/GvLO2B9jjayx15F8Kcxq +qwHKep0ihtV78pYyjFPtMimI1F4ffXkdkhOhVFtAL+1irGyKC1lmUjPWabZbaGiljyMjqo2Sa9 kiUE3wr34M/TgKGaRb0iBG+Bsks1kvxv4qd+I+N3ZbsGh+1AD X-Google-Smtp-Source: AGHT+IHHA+bswDY7UafEdKC1GkNNXYIkYxHwD9UWD9AvftHMbr+P2GDqZlBhLeeuN+8qADAVwSR6i9BP2M/pnuVyDlI= X-Received: by 2002:a05:6102:dcc:b0:498:cfe3:f4e0 with SMTP id ada2fe7eead31-49c1582f992mr15671892137.0.1726488028822; Mon, 16 Sep 2024 05:00:28 -0700 (PDT) MIME-Version: 1.0 From: Jean-Pierre De Jesus Diaz Date: Mon, 16 Sep 2024 12:00:17 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.01 X-Spam-Score: -6.01 X-Migadu-Queue-Id: 0EDDBB0F5 X-Migadu-Scanner: mx10.migadu.com X-TUID: 40Fwa1po1hjl Hello, Just letting you know that using `cross-gcc-toolchain` is preferred and since the usage is to provide a PS1 SDK I think you can add this to the list of bare metal targets in Guix. See `guix build --list-targets', for example it contains avr, xtensa-ath9k-elf and or1k-elf. This can be done by adding a variable to: - `guix/platforms/mips.scm' So, this should allow to add this target as an argument to your `psn00bsdk' package: For example: (arguments (list #:target "mipsel-none-elf" ...)) And the build system will: 1. Automayically add the cross-gcc compiler. 2. Will also cross-compile inputs (excluding native-inputs, of course). So that will allow you to unbundle the dependencies as you could just build each one independently for that target (or for all ones, if the library supports it). With this though you'll probably need to create a separate package for the tools and one for the code that runs on the PS1 itself. You can take inspiration from the existing bare-metal targets and packages compiled like this (which are few), there is firmware on `gnu/packages/firmware.scm' that does this. Also the QMK firmware for keyboards use the Guix cross-compilation mechanism too. Additionally, you can provide the toolchain as a package on the `gnu/package/cross-toolchain.scm` module.