From patchwork Thu Dec 3 10:53:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 25554 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 1D7B227BBFC; Thu, 3 Dec 2020 11:08:53 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BEDC427BBFB for ; Thu, 3 Dec 2020 11:08:52 +0000 (GMT) Received: from localhost ([::1]:32948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkmTj-0003lm-NB for patchwork@mira.cbaines.net; Thu, 03 Dec 2020 06:08:51 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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(-)