From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oEB8JUbHyF+/IwAA0tVLHw (envelope-from ) for ; Thu, 03 Dec 2020 11:08:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UHtAIUbHyF83DQAAbx9fmQ (envelope-from ) for ; Thu, 03 Dec 2020 11:08:54 +0000 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 3D7C79408EE for ; Thu, 3 Dec 2020 11:08:54 +0000 (UTC) Received: from localhost ([::1]:32948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkmTk-0003lm-MR for larch@yhetil.org; Thu, 03 Dec 2020 06:08:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkmGN-0004Dp-1H for guix-patches@gnu.org; Thu, 03 Dec 2020 05:55:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55264) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkmGM-0002BM-ON for guix-patches@gnu.org; Thu, 03 Dec 2020 05:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkmGM-0003IE-MY for guix-patches@gnu.org; Thu, 03 Dec 2020 05:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45020] [PATCH 0/2] image: Add system field. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Dec 2020 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45020 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45020@debbugs.gnu.org Cc: dannym@scratchpost.org, Mathieu Othacehe X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160699285512570 (code B ref -1); Thu, 03 Dec 2020 10:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Dec 2020 10:54:15 +0000 Received: from localhost ([127.0.0.1]:38571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkmFb-0003Gg-0e for submit@debbugs.gnu.org; Thu, 03 Dec 2020 05:54:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:43668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkmFZ-0003GZ-SM for submit@debbugs.gnu.org; Thu, 03 Dec 2020 05:54:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkmFZ-0003gs-3o for guix-patches@gnu.org; Thu, 03 Dec 2020 05:54:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41174) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkmFX-0001lL-S0; Thu, 03 Dec 2020 05:54:12 -0500 Received: from [2a01:e0a:19b:d9a0:6132:5f9a:6e69:6e32] (port=54264 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kkmFT-0006vx-W9; Thu, 03 Dec 2020 05:54:09 -0500 From: Mathieu Othacehe Date: Thu, 3 Dec 2020 11:53:51 +0100 Message-Id: <20201203105353.149482-1-othacehe@gnu.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 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-Spam-Score: 2.22 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3D7C79408EE X-Spam-Score: 2.22 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: gYqWsXv+RpW/ Hello, Here's a small patchset to improve the creation of disk-images on non-Intel systems. Currently, when selecting "arm32-raw" or "arm64-raw" image types, "guix system" will try to cross-compile to the relevant architectures, regardless of the current system architecture. This adds a "system" field to the image definition that indicates the appropriate system. Then, if we are already running on this system, "system-image" will build the image natively instead of using cross-compilation. The image type "raw" is also renamed to "efi-raw" which is more accurate. Finally, as discussed with Danny on IRC, it could make sense to change the default image type depending on the current system: efi-raw on x86_64-linux and i686-linux, arm32-raw on armhf-linux and so on. WDYT? Thanks, Mathieu Mathieu Othacehe (2): image: Add system field. image: Rename "raw" image-type to "efi-raw". doc/guix.texi | 10 +++++----- gnu/image.scm | 3 +++ gnu/system/image.scm | 18 ++++++++++++++---- guix/scripts/system.scm | 2 +- 4 files changed, 23 insertions(+), 10 deletions(-) -- 2.29.2