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))) From patchwork Fri Jan 19 13:54:41 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: 59127 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 8872F27BBEC; Fri, 19 Jan 2024 13:56:31 +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=ham 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 8C88C27BBE2 for ; Fri, 19 Jan 2024 13:56:26 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpM6-0003aK-NG; Fri, 19 Jan 2024 08:56:22 -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 1rQpLm-0003Ra-K2 for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -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 1rQpLk-0007x3-NL; Fri, 19 Jan 2024 08:56:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQpLm-0001vg-NX; Fri, 19 Jan 2024 08:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 2/9] gnu: cross-gcc-toolchain: Use fixed name. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, 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 , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725197265 (code B ref 68355); Fri, 19 Jan 2024 13:56:02 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:19 +0000 Received: from localhost ([127.0.0.1]:57864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpL5-0001t6-1M for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:19 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:46121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpL3-0001sO-8C for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:17 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40d6b4e2945so8657855e9.0 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672509; x=1706277309; 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=ribTKgOwMk2H0ykepF0XX/Nyi5/7L/WCGB2TXPkuvc0=; b=KnXGkd5MtRYfrZoAOTFkWrtZcrweZ1rTn+xqFWkKZsmUqHQ6nqGPcIHcbA4n0n0+kj IlFlXeTfyZL52ajJ3+25ll94DiqUkZpReL2MpOizZ1Byw/Hbh9EQDIwrXugd7FTotjHC GyuGRNb5oTh6DwfAp7d+mL5TWm37h/CPx/OmJnQG5fE0xqnre8hTPgQYSW5uTs8kRiQy K7IJ7cJE3fMJp1LPYxbLWeJ/0f9ZNkSBUQuWoQ41aPjn2gyCVkMB7KRfg/cqr2Op2LM3 swg0Vu5ltF4qLLcyFsDRJJLaM8FLqlgDyz4lvv7OWZ0eefcvhPEEakZtxkJqSkXD6kDy uwfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672509; x=1706277309; 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=ribTKgOwMk2H0ykepF0XX/Nyi5/7L/WCGB2TXPkuvc0=; b=tVYEoeETHH15Qc2g5BwDf2iIgr0vZYeke2/q3hSC3qJ1h0PvgcStDRiThhSxj2Yxls U8iCD5EQT0TlycI0gaaFI3bIXuC4GJ/7tpezhlUlYt9OGgyIZQDtwYwo33D5q5OudF70 RbRn7d0dkDLDYSX3DMwZiouKuEgyb3hx8A5vLWcvZmLZwoA+yRf2dT4rpXVXkTg+8p+x UvmGaNJ4sktEGq3GSLN5VrZXsGp8ikhA2OpZudQXtCWOxq6Bj10Jv0oJosM5Am7BFjco nzuqtynM7IBZud35tiFnifmhdC1VHRgbN8m3FYZjKev6PDN4td/gOQfzPutNX1C6cpDD ZGtA== X-Gm-Message-State: AOJu0Yy+sT2zD9Zn8woEnTJIGrw8HE7LYzii7oiOeTSeJNif6iagrTke b/qqEtOW+aCyaIKWlM9+DQnf4FQPSR4qbOGgH6g0f33eT7xj6WEVNpTXsWbtRfrCoIma2OQP01G +k0U= X-Google-Smtp-Source: AGHT+IFegJW+kH3tf4TeJFbxGjTlYPaNIgRGeiota63G5+OWgN2/cl9PG/4UgQ87CTAZRKykr7iDNQ== X-Received: by 2002:a05:600c:1f87:b0:40e:8cf5:2944 with SMTP id je7-20020a05600c1f8700b0040e8cf52944mr1023511wmb.71.1705672508928; Fri, 19 Jan 2024 05:55:08 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:08 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:41 +0100 Message-ID: <1a8897818195eb8da2c7b6d03828380cf8999304.1705672190.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/cross-base.scm (cross-gcc-toolchain) : Always use gcc-cross- prefix regardless of TARGET having a C standard library or not. Change-Id: I5cbe89c61e5bd324a385db17c27131ea5ef75669 --- gnu/packages/cross-base.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 6ee7b315d8..2d79e0acf6 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -745,7 +745,9 @@ (define* (cross-gcc-toolchain/implementation target "Returns PACKAGE that contains a cross-compilation tool chain for TARGET with XBINUTILS, XGCC and LIBC (if exists for TARGET)." (package - (name (string-append (package-name xgcc) "-toolchain")) + ;; Using PACKAGE-NAME of XGCC is avoided here as there are platforms that + ;; still need a toolchain but don't have a libc (e.g. or1k-elf). + (name (string-append "gcc-cross-" target "-toolchain")) (version (package-version xgcc)) (source #f) (build-system trivial-build-system) From patchwork Fri Jan 19 13:54:42 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: 59131 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 CFCB327BBE2; Fri, 19 Jan 2024 13:56:47 +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 9F7D027BBE9 for ; Fri, 19 Jan 2024 13:56:46 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpLs-0003SP-0I; Fri, 19 Jan 2024 08:56:08 -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 1rQpLm-0003RF-8V for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -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 1rQpLl-0007x4-61 for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQpLn-0001vq-3H for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 3/9] gnu: Add gcc-cross-or1k-elf-toolchain. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 13:56:03 +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 Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725237282 (code B ref 68355); Fri, 19 Jan 2024 13:56:03 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:23 +0000 Received: from localhost ([127.0.0.1]:57867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpL9-0001tN-GA for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:23 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:42294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpL7-0001sx-S6 for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:22 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e80046246so4875745e9.1 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672513; x=1706277313; 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=32DIsUkQ5YQ180U6ZSSiqngDe9LQRFKcoA4DIPHlGwM=; b=aWJFlR3cV9GpFR6Zv45yI2kg/bi1WlneqGbCPZQpGF9M7M+rG857uYzxxz8qrbZP5X Dlz3cnDZk+2jp1CTFXge5GyA0u9VY8LRT84GyrSDrzhuWxAIUfXjWCe4KatDIqUYgVsd 9eFexXhbSRUlLT+QyWE/4O3q4Ki1Sa3alTDUIFRqlcmFRQTbO8PZkfdedRioXv9Z3YZu qBtiOj7BLhzzmArVRe7dksf8a4zExwxQd0nRfieEm2Fw8SFjDm2Wj1uksn68fW+WCNhZ Gzbu2XvANNCbpL6FCjVziHoY+jlkCp+68jl3x6KvogCgOVFJgeRv3mGbRstzUKvC+Wfw rnCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672513; x=1706277313; 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=32DIsUkQ5YQ180U6ZSSiqngDe9LQRFKcoA4DIPHlGwM=; b=ep/l7B0eD+pypz3Gxlib9Hod6l+WshSnPfQ+UO8IeXDXAKSLlUSfj6s8KGHxOqUf+4 xoCRve3cDkscMUFS0tfcaE7SJiiG0zex4Fni0eqpEjzuQ3X6iiW24CQ5W2iy5pA8v6o3 A7Pylk1nGhQuYlYb4EhpQlWU9BWdGOm/A8DU74tiZpWCKL8vAJ+dgpIpV/a/paa1uJnT vYhGEEy54M6WJVE2jXv3rI1EKHvP43iL0o3JBC3Iz1GEdxqve6XJJ+xEQeh+cqet9d10 P/Ekui5o0cLxQkOZMQfAzO8t4vf0iZ2LO67z16HAk1FMJrnjuf2v7SuYW42KHGv9bcq1 9Jdg== X-Gm-Message-State: AOJu0YzFHwX1ic3eSPtEO5XWqCAl2P9SjszApR0os7N9z7abAgb95pkb kEaDb2OOsb+EPDyVtdAk+PNH/nox5/20A/dln9Bwj/4hXqEkBcjlcjXcdmfbj9hnBKlLe4UZD4D yzTo= X-Google-Smtp-Source: AGHT+IFtE26ju1DF9mcjXiejEbVnlxFsGNI+66OcwMMYdkie6k+SoayaI3qur22O/2hxGNHMHHpiJg== X-Received: by 2002:a05:600c:78a:b0:40e:3cab:ef81 with SMTP id z10-20020a05600c078a00b0040e3cabef81mr610951wmo.97.1705672513352; Fri, 19 Jan 2024 05:55:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:13 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:42 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/cross-toolchain.scm (gcc-cross-or1k-elf-toolchain): New variable. Change-Id: Iaf7ed60dbbe116a5efbad8e94be9b2dee51faf15 --- gnu/packages/cross-toolchain.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/cross-toolchain.scm b/gnu/packages/cross-toolchain.scm index ab071e1005..5072462cbb 100644 --- a/gnu/packages/cross-toolchain.scm +++ b/gnu/packages/cross-toolchain.scm @@ -38,5 +38,8 @@ (define-public gcc-cross-avr-toolchain (define-public gcc-cross-i686-w64-mingw32-toolchain (cross-gcc-toolchain "i686-w64-mingw32")) +(define-public gcc-cross-or1k-elf-toolchain + (cross-gcc-toolchain "or1k-elf")) + (define-public gcc-cross-x86_64-w64-mingw32-toolchain (cross-gcc-toolchain "x86_64-w64-mingw32")) From patchwork Fri Jan 19 13:54:43 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: 59134 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 3D6CC27BBEA; Fri, 19 Jan 2024 13:57:00 +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=ham 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 7C6CE27BBE2 for ; Fri, 19 Jan 2024 13:56:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpM7-0003ad-4o; Fri, 19 Jan 2024 08:56:23 -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-0003Rt-Ad 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 1rQpLn-0007xf-Be for guix-patches@gnu.org; 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 1rQpLn-0001vy-H4; Fri, 19 Jan 2024 08:56:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 4/9] gnu: make-crust-package: Use shorter synopsis. 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: Fri, 19 Jan 2024 13:56:03 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725297300 (code B ref 68355); Fri, 19 Jan 2024 13:56:03 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:29 +0000 Received: from localhost ([127.0.0.1]:57870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLE-0001tg-PX for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:29 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:58706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLC-0001tF-8d for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:27 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-33922d2cb92so317592f8f.1 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672518; x=1706277318; 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=0OqQve010VGRxLoLA8Gffn5Rjt+vUaMYoSWgbAjF+0Y=; b=QcMivmhtUnKs60ygYZMXELXWeSn4V1nJavd2EsPtGYqTiuU2bHpyPco643BO38w7yw brw71MJY+jgQwtB2YP2DJTcEkaRSvSLUAY7fD3zXaH0gmAggicsliLPJkOjozZmtmJBo VWdbiKz6G/T7jIhmqHqxs3yvLYRd9K+fTIq2QyV2Vhsgs/9JzHIC2ob4beZS1U47O0bh eGiFBh+ygqtG0aMxlLswP75oojKWAQxxwJp4gUYCm9YQamEMkgX3povveEtXf8F+jdLu RhChF0ZxGR1QOlNBUVg9yzPpqwTE6r8VXFoNMlUe2O1YQyU3/lvOlrZf3ncs1E40dUfl IHDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672518; x=1706277318; 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=0OqQve010VGRxLoLA8Gffn5Rjt+vUaMYoSWgbAjF+0Y=; b=XWvHI/uLqAGWpROWMOBKJ9YhoTe0cQr1zRvE9RIy6MWpGhV0Ft7ZF2G7MaS7wk/6NR A5DQ1tBlDtI+zWLp5jELPM70Ku36tZdQZjm4pq9Z9+cNfKNj3e2iNoB/eNUu4ZNLtTUF PssyHHmDqdv+tZ9He+s9o//8yBwYUtGC8Q1AYBKcsrX4oZ4qr5haRHsdCh01B8NWuD+y bcIBfo2L/2Z5+lMpT6GHXutlkoH4wYX0yJA1LDb72RJ49z5r1EKdWc+KPgnQlq1Sv4Yu 3kxm6rqHWcT1sr7M4xl5/crgLoN5E9hsk7gw8nhL3Mpk3LHrvzMfr+GWD0zK3m5Izyhu apVw== X-Gm-Message-State: AOJu0YyQXC2gBjLLvWT6KLUoorH9D1gp7dy4pwE8W8baB65mCav1QmE+ 9Kkgpyu7l8kifS6rtlEs5POikhXwIkex/BClZP2tsdA8wHlByrfkY8JHArE5ymOAa2YPW/7SX3a LxMk= X-Google-Smtp-Source: AGHT+IFKjRt05IERvvUbpRx5lXXLJExVbqfVAQfL3vc1zud42mYM8TvF86JyUF3WPWYlX3/kCo4u1w== X-Received: by 2002:a05:600c:4684:b0:40e:46d5:144f with SMTP id p4-20020a05600c468400b0040e46d5144fmr749072wmo.373.1705672518158; Fri, 19 Jan 2024 05:55:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:17 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:43 +0100 Message-ID: <5c98358be6cb8da449c5fa04a57f1ff6c440134d.1705672190.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-package) : Make it short. Change-Id: I8b93b25a9a6a75aaa92ffa590d0fd46a5511fd49 --- gnu/packages/firmware.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 75294fadf4..533cbca550 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1270,7 +1270,7 @@ (define (make-crust-package platform) (cross-binutils "or1k-elf") flex)) (home-page "https://github.com/crust-firmware/crust") - (synopsis "System control processor firmware for Allwinner sunxi boards") + (synopsis "Firmware for Allwinner sunxi SoCs") (description "Crust improves battery life and thermal performance by implementing a deep sleep state. During deep sleep, the CPU cores, the DRAM controller, and most onboard peripherals are powered down, reducing power From patchwork Fri Jan 19 13:54:44 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: 59126 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 8A50027BBEA; Fri, 19 Jan 2024 13:56:24 +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=ham 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 306A527BBE2 for ; Fri, 19 Jan 2024 13:56:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpLt-0003Sp-Jr; Fri, 19 Jan 2024 08:56:09 -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 1rQpLm-0003RG-Cs for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -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-0007xD-1M for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQpLn-0001w5-Ug; Fri, 19 Jan 2024 08:56:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 5/9] gnu: make-crust-package: Memoize. 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: Fri, 19 Jan 2024 13:56:03 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725347330 (code B ref 68355); Fri, 19 Jan 2024 13:56:03 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:34 +0000 Received: from localhost ([127.0.0.1]:57874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLJ-0001u7-2q for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:34 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:45179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLF-0001tV-44 for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:29 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e86a9fc4bso9889045e9.2 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672521; x=1706277321; 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=at124O61Kdi5F8ekMPWejJ1/EkTdIOq5CCKZdSQOvxQ=; b=A5f5fkE2LA2rCqkkmacZ1d5iPdoLu5gR3Fvwzkdatgmbv04UVPwF9uXBaGkC/7SaqZ Ryj+QflallzxAQzMPQKYKrAx47oImO5kiAnJHHsshXl8eo52XGR1vzJYmITu5sWssfB8 DSqwaK/rZVKFo6e+oTcSl7wgEReA+npnEOaQ7zgVtyExtky1janAJfO5IAglFwJ0TNTq kpy7EpgnWTpOhhp6G7Mj+lEc7oPxdmwkWd7NusgYnkJVvHguE6PMxkKn5MPuNdcDgTtb kjs3yu8KA3TfmS/C/4ZPU7N8RhjIcWjEh6p8VFULfGnS5o1Yip4vkTcGrrbyrLNrBoEs pgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672521; x=1706277321; 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=at124O61Kdi5F8ekMPWejJ1/EkTdIOq5CCKZdSQOvxQ=; b=Xc42Flw+t1U81d4p49BBo3ctQoXaPQr923V5rDUsgU4D4LCX1FEtqTI4TSkEs6NVSp geMIyrmlC0TvpH35a7fo2OonP9kjFUNiI2kISsze2EPgWiQrFNww16yrB5TKDuBwUbuW n+sMxxbf5li8bsgqKK0sFDBpdNUeGearmJyLyIUrOrtLHgMFDi0izWbcS5YAGZzpqbon t7+yPf5rgYIW1cAgIr1f7BGdGbOXQjr+Prt0fXF7cUkRZImSVMDijWH+7+FVn9lKfIRP Yy5pEQYX8YRMT1TkG02LKCzP/NeFo2JaYT7aVuRX0Fj1Tj9+aPHTOb3Tv9uC7E7auV7L 2hpg== X-Gm-Message-State: AOJu0YymCRmiArTRpILHiCdiMmzVxbc5sPNJbe61w37kcx+50wg67Zs0 tLK10liF+sx5/5H6tzWBvAO4g2RVTu0mgjj5in+uAXgQygZKlTrWcKfp5JaabGsi9HmZ6yDHJ4a /xkk= X-Google-Smtp-Source: AGHT+IHfwAnt2O4j4KD99V7tHEaSMYrBImk45Tgfi4efN2SMn6lCXvoPfEjnEGYBsTSinLY4vp8ehw== X-Received: by 2002:a05:600c:4686:b0:40e:52d8:c0c8 with SMTP id p6-20020a05600c468600b0040e52d8c0c8mr1503110wmo.129.1705672521001; Fri, 19 Jan 2024 05:55:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:20 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:44 +0100 Message-ID: <43f09e1afdcc3cb1dbaf44fb7e6cdea24c41bd1d.1705672190.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-package): Use mlambda. Change-Id: I2d916b96bc650f3731a69505e086cf8f8f470809 --- gnu/packages/firmware.scm | 155 +++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 77 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 533cbca550..eb5251de5e 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1197,81 +1197,82 @@ (define-public arm-trusted-firmware-imx8mq ;; Adding debug symbols causes the size to exceed limits. #~(delete "DEBUG=1" #$flags))))))) -(define (make-crust-package platform) - (package - (name (string-append "crust-" - (string-replace-substring platform "_" "-"))) - (version "0.5") - (source - (origin - (method git-fetch) - (uri (git-reference - ;; There are only GitHub generated release snapshots. - (url "https://github.com/crust-firmware/crust") - (commit (string-append "v" version)))) - (file-name (git-file-name "crust" version)) - (sha256 - (base32 - "0xgbbhifg3miwd3yp6jq9kp7nqgz5gzy00w95vba45j8jk5vjvvz")))) - (build-system gnu-build-system) - (arguments - (list - #:tests? #f ;no test suite - #:make-flags - (let ((triplet-without-vendor - (and (%current-target-system) - ;; TODO: Is there a use case for allowing this? - (not (target-avr?)) - (match (string-split (nix-system->gnu-triplet - (%current-target-system)) #\-) - ((arch vendor os ..1) - (string-join `(,arch ,@os) "-")))))) - #~(list "CROSS_COMPILE=or1k-elf-" - "V=1" - #$@(if triplet-without-vendor - ;; We are cross-compiling the tools, intended to be - ;; executable for the target system. - (list (string-append "HOSTAR=" triplet-without-vendor - "-ar") - (string-append "HOSTCC=" triplet-without-vendor - "-gcc")) - ;; Not cross-compiling. - (list "HOSTAR=ar" - "HOSTCC=gcc")) - "LEX=flex")) - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'do-not-build-tests - (lambda _ - ;; Attempting to build the tools test binary on a non-aarch64 - ;; architecture fails with: "No cache cleaning implementation - ;; available for this architecture". Avoid building it (see: - ;; https://github.com/crust-firmware/crust/issues/182). - (substitute* "tools/Makefile" - (("tools-y \\+= test") "")))) - (delete 'configure) - (add-before 'build 'defconfig - (lambda* (#:key make-flags #:allow-other-keys) - (let ((config-name (string-append #$platform "_defconfig"))) - (apply invoke "make" (cons config-name make-flags))))) - (replace 'install - (lambda _ - (for-each (lambda (file) - (install-file file (string-append #$output - "/libexec"))) - (find-files "." "(scp\\.bin|\\.config)$")) - (install-file "build/tools/load" - (string-append #$output "/bin"))))))) - ;; The firmware is cross-compiled using a "bare bones" compiler (no libc). - ;; Use our own tool chain for that. - (native-inputs - (list bison - (cross-gcc "or1k-elf") - (cross-binutils "or1k-elf") - flex)) - (home-page "https://github.com/crust-firmware/crust") - (synopsis "Firmware for Allwinner sunxi SoCs") - (description "Crust improves battery life and thermal performance by +(define make-crust-package + (mlambda (platform) + (package + (name (string-append "crust-" + (string-replace-substring platform "_" "-"))) + (version "0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + ;; There are only GitHub generated release snapshots. + (url "https://github.com/crust-firmware/crust") + (commit (string-append "v" version)))) + (file-name (git-file-name "crust" version)) + (sha256 + (base32 + "0xgbbhifg3miwd3yp6jq9kp7nqgz5gzy00w95vba45j8jk5vjvvz")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;no test suite + #:make-flags + (let ((triplet-without-vendor + (and (%current-target-system) + ;; TODO: Is there a use case for allowing this? + (not (target-avr?)) + (match (string-split (nix-system->gnu-triplet + (%current-target-system)) #\-) + ((arch vendor os ..1) + (string-join `(,arch ,@os) "-")))))) + #~(list "CROSS_COMPILE=or1k-elf-" + "V=1" + #$@(if triplet-without-vendor + ;; We are cross-compiling the tools, intended to be + ;; executable for the target system. + (list (string-append "HOSTAR=" triplet-without-vendor + "-ar") + (string-append "HOSTCC=" triplet-without-vendor + "-gcc")) + ;; Not cross-compiling. + (list "HOSTAR=ar" + "HOSTCC=gcc")) + "LEX=flex")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-build-tests + (lambda _ + ;; Attempting to build the tools test binary on a non-aarch64 + ;; architecture fails with: "No cache cleaning implementation + ;; available for this architecture". Avoid building it (see: + ;; https://github.com/crust-firmware/crust/issues/182). + (substitute* "tools/Makefile" + (("tools-y \\+= test") "")))) + (delete 'configure) + (add-before 'build 'defconfig + (lambda* (#:key make-flags #:allow-other-keys) + (let ((config-name (string-append #$platform "_defconfig"))) + (apply invoke "make" (cons config-name make-flags))))) + (replace 'install + (lambda _ + (for-each (lambda (file) + (install-file file (string-append #$output + "/libexec"))) + (find-files "." "(scp\\.bin|\\.config)$")) + (install-file "build/tools/load" + (string-append #$output "/bin"))))))) + ;; The firmware is cross-compiled using a "bare bones" compiler (no libc). + ;; Use our own tool chain for that. + (native-inputs + (list bison + (cross-gcc "or1k-elf") + (cross-binutils "or1k-elf") + flex)) + (home-page "https://github.com/crust-firmware/crust") + (synopsis "Firmware for Allwinner sunxi SoCs") + (description "Crust improves battery life and thermal performance by implementing a deep sleep state. During deep sleep, the CPU cores, the DRAM controller, and most onboard peripherals are powered down, reducing power consumption by 80% or more compared to an idle device. On boards without a @@ -1280,8 +1281,8 @@ (define (make-crust-package platform) dedicated always-on microprocessor called a System Control Processor (SCP). Crust is designed to run on a specific SCP implementation, Allwinner's AR100.") - ;; Most files are dual-licensed "BSD-3 OR GPL2", a few are GPL2 only. - (license (list license:bsd-3 license:gpl2)))) + ;; Most files are dual-licensed "BSD-3 OR GPL2", a few are GPL2 only. + (license (list license:bsd-3 license:gpl2))))) (define-public crust-pinebook (make-crust-package "pinebook")) From patchwork Fri Jan 19 13:54:45 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: 59129 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 3476D27BBEB; Fri, 19 Jan 2024 13:56:39 +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 D281127BBE2 for ; Fri, 19 Jan 2024 13:56:33 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpM6-0003aF-FM; Fri, 19 Jan 2024 08:56:22 -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 1rQpLm-0003RI-Dj for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -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-0007xK-4c for guix-patches@gnu.org; Fri, 19 Jan 2024 08:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQpLo-0001wG-At; Fri, 19 Jan 2024 08:56:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 6/9] gnu: make-crust-package: Update to 0.6. 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: Fri, 19 Jan 2024 13:56:04 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725407360 (code B ref 68355); Fri, 19 Jan 2024 13:56:04 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:40 +0000 Received: from localhost ([127.0.0.1]:57878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLP-0001uU-3n for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:39 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:43277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLI-0001tZ-9O for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:32 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-33921b95dddso286588f8f.1 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672524; x=1706277324; 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=SZ8LyAco3pmiOY9LUl6uhc4tyNIkMoiOKIehYsc3oE0=; b=iz3tzWa+P4FpexmOpmH9vTQcxAE7E4/zBXphgnMnKHfRPA3QB6dS3PWGbUTIklnfGE 9adYwEGF34fH1cy/Rm9QvMmZ0w4f8xTQt+370RPEt116HT9zOgYsXPaUsmR+m+hjI9Zl /OCtCDpXMFaHy1atWCD8fX5EggpFNfrD3Y6JL1QsSuovr5hDryELwsmg1lIh4+yeQjru +LEZ6pk3LBfQeIbI0fi25ctgBGFQxRVmpF5WQ/55cgwbfR3R++cYK/3KmOoISfnof5el s84CX54VeoS84cpNGco9T7l3qq3pTTCiyLoCE3NR0RJMyRUCqQbDxyrTZS5thVNkiaBL SjbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672524; x=1706277324; 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=SZ8LyAco3pmiOY9LUl6uhc4tyNIkMoiOKIehYsc3oE0=; b=GJIHjRkN8sa1+98cuddylModrdtMXwdl87qfJaZY+/PJ9ixIVVdTIahE8KKxXQwmFz i6yuM1Gn0W4gv66sAufCOIOrffdTmOw8/ki1q2WEoz8N3GmfmPFj3Mzq4bKOllDI03/f 1pK/VRus/lHCFxE211H8AZqXXwpa6yWxSKYlkCVFg+Hhj4k+O1v1JOFcMiabgkppoxEe zyGqSqNSFFtXMjKAdZAJ72cKKC16b2XRGX8MfV4lcomeOOSl0OM1WDvGOkDEawKCEKJn m9TycjFt3NXeC9t8+irjnWAO60NucgYy7zi3Ip4I+2jn4qyQTS6hynChM9wYCeAcnkYw rjQw== X-Gm-Message-State: AOJu0Yw8hTlSq7vGH0ImAg6HxtKpOfgHI7hySm7i2Tkck4qhufxIqm3G tgqRub/Cyh+XTAmJXfzYV9KbMHKQJG+q6xvPLBv5XC8cstCWjgdqnn/90nfKD78PVytXrB3ePhF 2Xgw= X-Google-Smtp-Source: AGHT+IFu9XYlAZ7j+rwejLqpCnX1LzeYf0EAEN1BXt58D+Ie7gGea/Q66XiPKuY4rovrJTbXEBhQRw== X-Received: by 2002:a05:600c:46c4:b0:40e:3521:483d with SMTP id q4-20020a05600c46c400b0040e3521483dmr642582wmo.122.1705672524211; Fri, 19 Jan 2024 05:55:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:23 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:45 +0100 Message-ID: <9cfcd4262f00aabf959c7219243d554023ddcc35.1705672190.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-package): Update to 0.6. Do not install host tool as it is not built by default. Change-Id: Ia79ae8208589601d32235f6d8ace9dce3f8d74f9 --- gnu/packages/firmware.scm | 42 ++++++++------------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index eb5251de5e..a2e3f785d5 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1202,7 +1202,7 @@ (define make-crust-package (package (name (string-append "crust-" (string-replace-substring platform "_" "-"))) - (version "0.5") + (version "0.6") (source (origin (method git-fetch) @@ -1213,43 +1213,19 @@ (define make-crust-package (file-name (git-file-name "crust" version)) (sha256 (base32 - "0xgbbhifg3miwd3yp6jq9kp7nqgz5gzy00w95vba45j8jk5vjvvz")))) + "1blq6bi2rmg4qqwwr07pamv28b50mwcsybhpn9bws8vbzxa43afd")))) (build-system gnu-build-system) (arguments (list #:tests? #f ;no test suite #:make-flags - (let ((triplet-without-vendor - (and (%current-target-system) - ;; TODO: Is there a use case for allowing this? - (not (target-avr?)) - (match (string-split (nix-system->gnu-triplet - (%current-target-system)) #\-) - ((arch vendor os ..1) - (string-join `(,arch ,@os) "-")))))) - #~(list "CROSS_COMPILE=or1k-elf-" - "V=1" - #$@(if triplet-without-vendor - ;; We are cross-compiling the tools, intended to be - ;; executable for the target system. - (list (string-append "HOSTAR=" triplet-without-vendor - "-ar") - (string-append "HOSTCC=" triplet-without-vendor - "-gcc")) - ;; Not cross-compiling. - (list "HOSTAR=ar" - "HOSTCC=gcc")) - "LEX=flex")) + #~(list "CROSS_COMPILE=or1k-elf-" + "V=1" + "HOSTAR=ar" + "HOSTCC=gcc" + "LEX=flex") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'do-not-build-tests - (lambda _ - ;; Attempting to build the tools test binary on a non-aarch64 - ;; architecture fails with: "No cache cleaning implementation - ;; available for this architecture". Avoid building it (see: - ;; https://github.com/crust-firmware/crust/issues/182). - (substitute* "tools/Makefile" - (("tools-y \\+= test") "")))) (delete 'configure) (add-before 'build 'defconfig (lambda* (#:key make-flags #:allow-other-keys) @@ -1260,9 +1236,7 @@ (define make-crust-package (for-each (lambda (file) (install-file file (string-append #$output "/libexec"))) - (find-files "." "(scp\\.bin|\\.config)$")) - (install-file "build/tools/load" - (string-append #$output "/bin"))))))) + (find-files "." "(scp\\.bin|\\.config)$"))))))) ;; The firmware is cross-compiled using a "bare bones" compiler (no libc). ;; Use our own tool chain for that. (native-inputs From patchwork Fri Jan 19 13:54:46 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: 59133 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 ED25427BBE2; Fri, 19 Jan 2024 13:56:55 +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 57DC327BBE9 for ; Fri, 19 Jan 2024 13:56:55 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpM7-0003aj-A4; Fri, 19 Jan 2024 08:56:23 -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-0003Ru-Ah 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 1rQpLn-0007xh-OB for guix-patches@gnu.org; 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 1rQpLo-0001wS-PB; Fri, 19 Jan 2024 08:56:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 7/9] gnu: make-crust-package: Use or1k-elf as target. 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: Fri, 19 Jan 2024 13:56:04 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725407368 (code B ref 68355); Fri, 19 Jan 2024 13:56:04 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:40 +0000 Received: from localhost ([127.0.0.1]:57881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLP-0001uf-Sr for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:40 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:45185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLK-0001tp-Vq for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:35 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e86a9fc4bso9890295e9.2 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672527; x=1706277327; 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=D/DO0qkxMu7/z0oA8v+GbJA1y4Jec/zVRHhYy44KRtM=; b=N7r2eKvH5m6QhAWun688IccduAnqhRx8PjyedIGVT3s6d2AoPzyqERPVMYL9KRVJvR wC1jk4p3OEEQJ3bUjrXgm83EvFNmPfUcuUCzriXsc+TCj7q++jfrkDWPQ5p01LvlfnB2 O6Nnsv1+c/bsnAeyC2k8bg773uzKhZ4xbn8dut7XeZ11sPc6xUgr4jXTKIn5unoyYhwN 35nEyv7d9OGqFMhgZO6d5yop0xqKM1ClNN1DQccQoF1FR0+ZGogJJIAPPk5KUuLUaOUN nGeexseWfqSbnFU8necTzc/p29AjohmiDmHXp3vx5qXdfh+wlZXHnprYkCsY0eVwF5MC IAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672527; x=1706277327; 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=D/DO0qkxMu7/z0oA8v+GbJA1y4Jec/zVRHhYy44KRtM=; b=Q/0CNl4IiKQ9+ANQKzzb9/q1RQISRq0Y4nhWFo9hIM9GWKlEyFotnjlpdopiHaSkbO USeFMeLL2URlbVJub+lv09TDiOq2We4VZnSW8bQX9TO10GlZpLBAeEHWMrZ6QD4ALvxi ZNjwnQm/VoS5qgZ7RsRAZ/AJZK4ZBAkY7gDxiBnEVUNV4JzUXIVcJaVpccpkTEH2OuYz HpeHb8+7DLBLe9nPZQnJ3/d8rWemrURCrwJ4XLYeuBEaHSGD7PIG/2DuQ96Szh3HdLu7 pKNZQ/rTBZlBEfZWxK3L4vhU6eAv3JhfurHXnO9jH4G4XaXsralGbSJlfheqdX460m8q TlGg== X-Gm-Message-State: AOJu0Yzy/Rs50816MsvguAGcAyFIp+M+XF/CxHZH+delN2J3ugBjA7m7 QacUiaOZ7hDi+FCvv0w8sKRfj8XFpWubzOQmKU6e8/HciWqePTM7go1eIuA3ivcfsoyqzUhEPTz cqAo= X-Google-Smtp-Source: AGHT+IEtXExzU9ghEfh2C/LTW36NFljvMX8ZFU8C2g1YAdlhX+2iErZ8KH8+QAq6yXokKUJ3/8z0EQ== X-Received: by 2002:a1c:7514:0:b0:40e:70c2:d93f with SMTP id o20-20020a1c7514000000b0040e70c2d93fmr1415552wmc.121.1705672526784; Fri, 19 Jan 2024 05:55:26 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:26 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:46 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-package): Use or1k-elf as the target. Change-Id: I6c8bf053527f1e12e35402f18cebf8e75557c788 --- gnu/packages/firmware.scm | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index a2e3f785d5..129dd0dfdd 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1217,13 +1217,13 @@ (define make-crust-package (build-system gnu-build-system) (arguments (list + #:target "or1k-elf" #:tests? #f ;no test suite - #:make-flags - #~(list "CROSS_COMPILE=or1k-elf-" - "V=1" - "HOSTAR=ar" - "HOSTCC=gcc" - "LEX=flex") + #:make-flags #~'("CROSS_COMPILE=or1k-elf-" + "V=1" + "HOSTAR=ar" + "HOSTCC=gcc" + "LEX=flex") #:phases #~(modify-phases %standard-phases (delete 'configure) @@ -1237,13 +1237,7 @@ (define make-crust-package (install-file file (string-append #$output "/libexec"))) (find-files "." "(scp\\.bin|\\.config)$"))))))) - ;; The firmware is cross-compiled using a "bare bones" compiler (no libc). - ;; Use our own tool chain for that. - (native-inputs - (list bison - (cross-gcc "or1k-elf") - (cross-binutils "or1k-elf") - flex)) + (native-inputs (list bison flex)) (home-page "https://github.com/crust-firmware/crust") (synopsis "Firmware for Allwinner sunxi SoCs") (description "Crust improves battery life and thermal performance by From patchwork Fri Jan 19 13:54:47 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: 59128 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 5EB2027BBEA; Fri, 19 Jan 2024 13:56:37 +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 0261527BBEB for ; Fri, 19 Jan 2024 13:56:29 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpLx-0003TN-Fy; Fri, 19 Jan 2024 08:56:15 -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-0003Rx-BF 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 1rQpLo-0007xi-4r for guix-patches@gnu.org; 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 1rQpLp-0001wb-64; Fri, 19 Jan 2024 08:56:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 8/9] gnu: Add make-crust-tools. 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: Fri, 19 Jan 2024 13:56:05 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725417374 (code B ref 68355); Fri, 19 Jan 2024 13:56:05 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:41 +0000 Received: from localhost ([127.0.0.1]:57883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLQ-0001um-Bz for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:41 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLM-0001tw-Jl for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:37 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e80046264so9286295e9.0 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672528; x=1706277328; 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=P/qlo2+o2jM/QGMY+GTbiW6GlzAqikrS+6dBFpqrRzA=; b=OTsfRFpsI5qfHBvTP/d9nRCHGgJnFE+uONEf3bNMSHJR6TYesZLNF2Nkdd4nWoTEg/ pALpwZ8lD27N34FHmOGPEqWqv0g8ydFJQeeaox6me6S8azuUoCLYLEQmZfX/7APEL33d rR33cQZZvLSX3x+XRiZWM1SC7yhyHZn22GXz2poManSK6TRN+8Nm5uzhWQh4bRjgJ8q8 sqOaWLTIDYOICSelDJenbpC/kpb2sCbFNxMxOr+PR1aU4PdN/KVoCZoE9+H2zfN7zBrS 7YW4vR6vWDHQ/b/qQp0X6nDGpabBmUsLEHLU15r+8EStQzxbEVDoPs8eWLvyQ+F4hjsR QaHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672528; x=1706277328; 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=P/qlo2+o2jM/QGMY+GTbiW6GlzAqikrS+6dBFpqrRzA=; b=u48GQp5fZCOuQFOgQozV8lZUOqoiiTgyQPKWqjSgC49ValTBtiw80/G4XUToZTknM+ DsQayGLdzc2wgaePJbQp/CXeEdcvrOYtn7gruyDEOi49NaZchtNMS+mutSb0cWImUypv TVmzCseiw61uAgXldG6lOcQS1nAHQ5H2l3lnRQ3BneXVas8PTOWrD2IAuRfizxuHHc9G EcnjgUMkICjfQK5bAkHGd7O0CYXPAJ4WdWX7Amfr9uVUegpEzZGSb+NB+H61d2Y9ccAi eMR6xxNV/dhyYmSk7ta8lubVh2BkTBYzUKpR62BtvwYX9BXzUskrRHASyJQIPrTOUniI 4K1g== X-Gm-Message-State: AOJu0YxDAH1QA3kDYoOHd4bgMGQPL/iGGzDB/9m8BzcHP+5N1pAzxJ+9 Cl5uU7So/KMkhvP52bH92wmf0B+/2th6l4U5ewC2uKf1GQrG9Wt8MP4u7H38vA5hdqMejk+6yv4 KfuM= X-Google-Smtp-Source: AGHT+IF+iTzj6e41c8yssBxnyamoUazHr0aAlS+ruGThcps8vhRx4SgLyzD1FQ3HaoHCWmSiZ096RA== X-Received: by 2002:a05:600c:214e:b0:40e:49e8:4068 with SMTP id v14-20020a05600c214e00b0040e49e84068mr1444709wml.93.1705672528619; Fri, 19 Jan 2024 05:55:28 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:28 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:47 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-tools): New procedure. Change-Id: Iac05ecf1796e4c10692a423c12423ea9b078d141 --- gnu/packages/firmware.scm | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 129dd0dfdd..41fe55eb2e 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1252,6 +1252,50 @@ (define make-crust-package ;; Most files are dual-licensed "BSD-3 OR GPL2", a few are GPL2 only. (license (list license:bsd-3 license:gpl2))))) +(define make-crust-tools + (mlambda (platform firmware) + (package + (inherit firmware) + (name (string-append "crust-" + (string-replace-substring platform "_" "-") + "-tools")) + (arguments + (list #:make-flags + #~(list "V=1" + "LEX=flex" + (string-append "HOSTAR=" #$(ar-for-target)) + (string-append "HOSTCC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-build-tests + (lambda _ + ;; Attempting to build the tools test binary on a + ;; non-aarch64 architecture fails with: "No cache + ;; cleaning implementation available for this + ;; architecture". Avoid building it (see: + ;; https://github.com/crust-firmware/crust/issues/182). + (substitute* "tools/Makefile" + (("tools-y \\+= test") "")))) + (replace 'configure + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (copy-file (search-input-file inputs "/libexec/.config") + ".config"))) + (replace 'build + (lambda* (#:key make-flags parallel-build? + #:allow-other-keys) + (apply invoke "make" "tools" + `(,@(if parallel-build? + `("-j" + ,(number->string (parallel-job-count))) + '()) + ,@make-flags)))) + (replace 'install + (lambda _ + (install-file "build/tools/load" + (string-append #$output "/bin"))))))) + (synopsis "Firmware for Allwinner sunxi SoCs (tools)") + (inputs (list firmware))))) + (define-public crust-pinebook (make-crust-package "pinebook")) From patchwork Fri Jan 19 13:54:48 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: 59132 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 5F2D227BBE9; Fri, 19 Jan 2024 13:56:51 +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 E7C7027BBE2 for ; Fri, 19 Jan 2024 13:56:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQpM6-0003aW-VJ; Fri, 19 Jan 2024 08:56:22 -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-0003Rv-Ad 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 1rQpLn-0007xg-E1 for guix-patches@gnu.org; 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 1rQpLp-0001wm-Kc; Fri, 19 Jan 2024 08:56:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68355] [PATCH v2 9/9] gnu: make-crust-package: Unite firmware and tools. 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: Fri, 19 Jan 2024 13:56:05 +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 , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 68355-submit@debbugs.gnu.org id=B68355.17056725487391 (code B ref 68355); Fri, 19 Jan 2024 13:56:05 +0000 Received: (at 68355) by debbugs.gnu.org; 19 Jan 2024 13:55:48 +0000 Received: from localhost ([127.0.0.1]:57885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLY-0001v8-3H for submit@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:48 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:51579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQpLO-0001u9-HH for 68355@debbugs.gnu.org; Fri, 19 Jan 2024 08:55:39 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e9101b5f9so8464345e9.3 for <68355@debbugs.gnu.org>; Fri, 19 Jan 2024 05:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1705672530; x=1706277330; 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=cYSJg4kznfBeb3uXd/am6Ad44j0L2Lz8M/31qKpiDFA=; b=WKxKTTVcfgVjoI6kr/x8w/+KKTRErFA02xTULN6+bEtwlZxzm6K/zw1GrmtxC/6Xcf 5l1LuAb9yJDi22OWdvOum0CzmMuMFPzrakgacOcxnki6OQwwBDFVuIg+S0yRLZB/GUn3 RaW1YMG6nORKL3ilYUZiMRxGKmZr0X1Vz0ew1/2pJnr7G9Jt4EN6CbTZnmWyCoFwV3nn t8XBa0MTT601izok08+QJQH9u+rKOF0upq4IaEXvHWYHmbvzNt4vq1OWIuAdjdXcdjRs 5I7+gyvVwj/43cNc1e7T8HtNIgrOAZD7rszXOuZuZWo6lT2Hc2A17owGq+E1wBliG9yV hCNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705672530; x=1706277330; 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=cYSJg4kznfBeb3uXd/am6Ad44j0L2Lz8M/31qKpiDFA=; b=ogsEbk+Arj27qrfJWrRAyqCsd5fnMmcYcYPcKedH1Aocjv5I5NzwxxcqCR00MbBUz5 Q+QloW1HkhMMTjHDQmhBWSlTSTfmx5yJDyLvfN9DytqCNXloirSTTFfA1CM/74tg/MlE /Y18GDkxlfYG0DXQZCSMw7dqqrmoxskonItIp2Y5dSaFVzcRS1UJ6n8xST7hrNvUrdXQ iVUW/0KV7gXU8dI+oblaZkirXPGykk9uoQ6VRTmUPrCHPxeJKAEsUh3aXBo0ambQTvn4 imN2hkxm64igwDt1eV8O56GQarCCryqw0Vx0v2PuGm2WSIqZUSkonGSBBOUey298zv9E 1BtQ== X-Gm-Message-State: AOJu0YzkT/PNyYEx/pLk6jIscmkQa6cLA6mncIj+UQ9xNQMw6NWLGWB1 AhoO8AIo9zotmUfcW6XK5Sp6rAEWkt/cfIKJpRgT2VGuJS61pfAah23Vfso64lw1os2ChJCIZbi 1gAI= X-Google-Smtp-Source: AGHT+IEZw6ppgMnCZVqjzkfljw3lfn/fiOgw+84PwvFLfBET4e6M6h9yxdgR9xhq71hfAM35gEagkw== X-Received: by 2002:a05:600c:152:b0:40e:88b6:4eac with SMTP id w18-20020a05600c015200b0040e88b64eacmr1436701wmm.3.1705672530526; Fri, 19 Jan 2024 05:55:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:55:30 -0800 (PST) Date: Fri, 19 Jan 2024 14:54:48 +0100 Message-ID: <92e1321694edfd5e3522e991a11a2ba6ece12552.1705672190.git.jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> References: <4e6b129a26d38305073c392c04707498a2ddfe69.1705672190.git.jean@foundationdevices.com> 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 * gnu/packages/firmware.scm (make-crust-package): Perform union of make-crust-firmware and make-crust-tools. * gnu/packages/firmware.scm (make-crust-firmware): New procedure. Change-Id: I687bb6d53aae9bd60ed988baf9d17e92f31faa7b --- gnu/packages/firmware.scm | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 41fe55eb2e..828bc7402a 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1197,11 +1197,12 @@ (define-public arm-trusted-firmware-imx8mq ;; Adding debug symbols causes the size to exceed limits. #~(delete "DEBUG=1" #$flags))))))) -(define make-crust-package +(define make-crust-firmware (mlambda (platform) (package (name (string-append "crust-" - (string-replace-substring platform "_" "-"))) + (string-replace-substring platform "_" "-") + "-firmware")) (version "0.6") (source (origin @@ -1296,6 +1297,29 @@ (define make-crust-tools (synopsis "Firmware for Allwinner sunxi SoCs (tools)") (inputs (list firmware))))) +(define make-crust-package + (mlambda (platform) + (let* ((firmware (make-crust-firmware platform)) + (tools (make-crust-tools platform firmware))) + (package + (inherit firmware) + (name (string-append "crust-" + (string-replace-substring platform "_" "-"))) + (source #f) + (build-system trivial-build-system) + (arguments + (list #:modules '((guix build union)) + #:builder + #~(begin + (use-modules (ice-9 match) + (guix build union)) + + (match %build-inputs + (((names . directory) ...) + (union-build #$output directory)))))) + (native-inputs '()) + (inputs (list firmware tools)))))) + (define-public crust-pinebook (make-crust-package "pinebook"))