From patchwork Mon May 13 08:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 64390 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 D518E27BBED; Mon, 13 May 2024 09:26:02 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS 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 8DD4527BBEB for ; Mon, 13 May 2024 09:26:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6Qzj-0003VL-Py; Mon, 13 May 2024 04:25:15 -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 1s6QzV-0003So-VA for guix-patches@gnu.org; Mon, 13 May 2024 04:25:03 -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 1s6QzV-0001Is-M9 for guix-patches@gnu.org; Mon, 13 May 2024 04:25:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6QzV-0001VP-NH; Mon, 13 May 2024 04:25:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70913] [PATCH 04/11] gnu: Add ovmf-i686. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Mon, 13 May 2024 08:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70913 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70913@debbugs.gnu.org Cc: Efraim Flashner , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 70913-submit@debbugs.gnu.org id=B70913.17155886455694 (code B ref 70913); Mon, 13 May 2024 08:25:01 +0000 Received: (at 70913) by debbugs.gnu.org; 13 May 2024 08:24:05 +0000 Received: from localhost ([127.0.0.1]:59412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6QyT-0001SJ-A6 for submit@debbugs.gnu.org; Mon, 13 May 2024 04:24:05 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:45236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6QyP-0001Rh-1Q for 70913@debbugs.gnu.org; Mon, 13 May 2024 04:23:55 -0400 Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e27277d2c1so53277251fa.2 for <70913@debbugs.gnu.org>; Mon, 13 May 2024 01:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715588567; x=1716193367; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=dmROcY+7FD5sEYUhtbd7sc/vmxo1tztadMlRWn0iL8o=; b=D/isAeXwnhqts3x2f6c6o+RQ/9UAoeO5qlfv39aFT+KJGQxCCwM2zRQIhvgx8W6tHT +DZGu9xNRuPs45jr8hdy+sxIjOpugaCYup7LUW4u3MeeUbTY6XiLcBPwMImTWeU/Chn+ bRNhtuJW69nqMRiaTEudzoCnvXsG8bC2dcrxuUwDNZ0X8HlURSyVfE3hNGLUIKdhXBaA Lx+L5Tsye4mwJqAdWlY25zx9LOtTz7vl682Rc3YikwiJxdEteaj2BHfwTWRj9tFKqkhY PMtL5b3VJVmSw5JFiIGVLeHHbhVLVlq2PgWidEKuEJzJFTsbMMW1Uoh1qkF7S2cAZYAD NvKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715588567; x=1716193367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dmROcY+7FD5sEYUhtbd7sc/vmxo1tztadMlRWn0iL8o=; b=NmjFLKNK+FWtjeTtiFEkUr3xW1QS70KPhBILIL7XIjkeEahgy6Xkw54Si+dhvZninj rScEqtwhJbS4vJnueFhx+9TnV6mUt8g6zcjiMcrFB6GIpvnymiBCrzDgFLByyHSHneCp aG2Y50br/KyjHR0k8tZkFRNnJMQOHFsAgxt1ekiCT3dk44hanNATJuGU7XJmNfV4xRa/ zc7fR5Dpt38vMWIC0Hys41qvgtFnBvF8XrKuoXQ//nQ0xLClaYKEyPbw49yNZp0W9+Y/ 2PpVTTJjoxIWbZV+owfGwhu1Z31oJYLC4i4XvnOHdTshEzvmksB4ZUsjYttcpHOhvHxQ IwEw== X-Gm-Message-State: AOJu0YwXL6NOoMlJajozQ9CejOYslvolNE6zNb+8kZ2Lb2Psb6qgtQCS SuOWstt9EhzLtoo8n41cyvLszgeOV53O8je7vgP+ZTD0qRqKE4jviTuVDHRB X-Google-Smtp-Source: AGHT+IFz7X0SMb+xb7XkWddM4wPc9izGGO13xRV/Gv2d2z/Mo+zcv8oZ8mRi1xITvWFWkYvTXmD/yw== X-Received: by 2002:a2e:3511:0:b0:2e0:aaaa:e551 with SMTP id 38308e7fff4ca-2e5203a45eemr56917111fa.37.1715588566524; Mon, 13 May 2024 01:22:46 -0700 (PDT) Received: from localhost ([37.46.46.122]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bd09sm10443424f8f.14.2024.05.13.01.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:22:46 -0700 (PDT) From: Efraim Flashner Date: Mon, 13 May 2024 11:21:53 +0300 Message-ID: <12604f2b2e1d9c21d687e71b532f245bcc5913d4.1715588342.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/firmware.scm (ovmf-i686): New variable. Change-Id: Ie5702435695e24ed1d2731152a89b0aeb9a050dd --- gnu/packages/firmware.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 40ca541437..ab39f8d0d2 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1002,6 +1002,28 @@ (define-public ovmf-x86-64 "OVMF_CODE" "OVMF_VARS")))))))))))) +(define-public ovmf-i686 + (let ((base (make-ovmf-firmware "i686"))) + (package + (inherit base) + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'install + (lambda _ + (let ((fmw (string-append #$output "/share/firmware"))) + (mkdir-p fmw) + (for-each + (lambda (file) + (copy-file + (string-append "Build/OvmfIa32/RELEASE_GCC" + "/FV/" file ".fd") + (string-append fmw "/" (string-downcase file) "_ia32.bin"))) + (list "OVMF" + "OVMF_CODE" + "OVMF_VARS")))))))))))) + (define-public ovmf (let ((toolchain-ver "GCC5")) (package