From patchwork Fri Mar 21 08:53:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40550 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 62BC527BBE2; Fri, 21 Mar 2025 08:54:36 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 B9D2827BBEA for ; Fri, 21 Mar 2025 08:54:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY8p-0006jm-18; Fri, 21 Mar 2025 04:54:11 -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 1tvY8m-0006jA-MS for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:08 -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 1tvY8m-0000lg-Ba for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Nm0MTn3PuHb4/eGXsiLB1bZ0fhJqalnqK2uq+cs4OrQ=; b=YwC5xqLgiK+lfXmgNgRYa5HV0W8aPj7Hzg0CDA+Zu+m5OStnwL9oAyHYd8WphVgjz1mmZCvganG2uV77TJ5nlgPzJEZA84mGK7yzFVZK4rxQGaD0d/r/HGecZyj2AnKdS4JZjnm0jCHsIg2ytqa49ZztJSLak+TZk6bDY8HS3ckReAaF5Vjnx2qHvxr+ACLwKT5dIKvTmRkQt15c7/CO44kH/T7GZ+EAzghgJKZqC84VmMq6roDxPTSFDK8hlszx4UNsJhwnUaGnR0fXExCjGkaOTGz/XyFiQT2JbHfIMdxkaDwpHsLvfsRqC6BIFX1oDEKy5E5+8LcRSUrAbU5Vnw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY8m-000152-41; Fri, 21 Mar 2025 04:54:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 1/9] gnu: Add u-boot-qemu-ppce550. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:54:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472213876 (code B ref 77148); Fri, 21 Mar 2025 08:54:07 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:53:41 +0000 Received: from localhost ([127.0.0.1]:35022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8K-00010S-NI for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:41 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:49508) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8F-0000yF-0q for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:39 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-ab7430e27b2so351817666b.3 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547208; x=1743152008; 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=Nm0MTn3PuHb4/eGXsiLB1bZ0fhJqalnqK2uq+cs4OrQ=; b=Aasyl0leTbea2BsrQ3ZWnGevV7ApNpqz1T9sP5S4g5bQtJl58BR94Lu47Y2w3GpqKq gm5cHY+DGkOYEPPuG6klMBBZOLpu/IYzRpWz+h+DPDEtc6emd3TQgWWDZRWlqSIY/5Uj nNh0NlI7ZTOZ8dIebhMDks8LOOqoD6k4yEWoKcKWYJH1szjf3DJ+37VErsaEYV1Me8dq CPVPN6EuEAXconF5MTOci/UcET2HP2URz0mc9Mgus6MOfiBgAOtG9nqI+LgK4Auzwu7V HWrwwjECqeABI99E1uaSgfTGys0BzNBHvseoekjDlnrX47x81XTWu++X6WL08Vv/Uw/J XK/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547208; x=1743152008; 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=Nm0MTn3PuHb4/eGXsiLB1bZ0fhJqalnqK2uq+cs4OrQ=; b=Tji0p+dSMr0ZUh3Qid4TvjkhmYHJHX4Nc2K3FaxG+5QeT7hBueNu5G/hpeeOXDqTdk KsWREHJVByv/YxKr9tBk80vfdHZ05rfU7FmfA/Vh6LyqwS3SAwQ3kryUJ/fIUweUJ8cc B52wUKh5QCGqWJrq2edQhq0X9nlrPkTXoJePtWtGyP7QxXjoNokFoDF1H708dP4BSKDU 2dc8TeZBPGVuOly5MC0feKzzHRqKLT3nTXJ08VDZvMOhwsdI7qnyCG2LbwxibNvIXrNq tA9eiF2lZ4ick32cukwbg+biMB6oN83AzISdhdGEAYEc8hKEb9ZPSV6htIFLcjLM7ta5 jaMQ== X-Gm-Message-State: AOJu0YwmV4LBARmoYKxw+Wf6NRqtlsC+JlEHx/VAr+1Cy6OnDOEzASmu nwjzfmGTwfuDJqPJvMTTrcqRDa/Z1H7BYhmvUuimQXz5iA+35IblPJjkXn9J X-Gm-Gg: ASbGncvc6bip8JT6Kp8t9vYe0whDT6U8eoIYWYYhelECq4qrHrI/K9p7Jc9D0bQA03n h/zcSBPpMymZvaRCzoE4zbH0xY0yOfwq2IvC+RbW1j4x3SKBtQFKF/Lh0uqD25g7Vf/0GDngI1f 2dNkWdo7R5qxgH9OzQY8pL6SeFVivQTult+w2ApSLLH0hCFl4la8hVJp10cR1dZoxtpZHWoOjc7 iqCH8ibiRmjDNZujG5zglxXF8gOkKGBKuzBfmeYgUYnNoV+02DZFQS6lzMS+4jkTJ7vMyHO9Qh2 jeF3VpXqLeGTzFXYD9C5u2IpYP1JfasFaTWCSBWBiTdtvZtN X-Google-Smtp-Source: AGHT+IHXN3ilnBPLmHUlqe4Obxo2tx5BTG733xdtd/d4fi0Ki1Sw/DN6nbCRD+HGcJpV+z9AgF9+4g== X-Received: by 2002:a17:907:3ea7:b0:ac2:1c64:b0a with SMTP id a640c23a62f3a-ac3f212ad50mr210528066b.14.1742547207911; Fri, 21 Mar 2025 01:53:27 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3efb658f9sm109741766b.120.2025.03.21.01.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:27 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:02 +0200 Message-ID: <8adc52de4128c73f365590349ccca41ec29b48fd.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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/bootloaders.scm (u-boot-qemu-ppce550): New variable. Change-Id: I92ec83741a90dc9e0c3bdcbeeab0ff5eb47024bf --- gnu/packages/bootloaders.scm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index fcdd3abbba1..8678e1c480a 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2016-2018, 2021-2023 Marius Bakke ;;; Copyright © 2016, 2017 Danny Milosavljevic ;;; Copyright © 2016, 2017 David Craven -;;; Copyright © 2017, 2018, 2020-2024 Efraim Flashner +;;; Copyright © 2017, 2018, 2020-2025 Efraim Flashner ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice ;;; Copyright © 2019 nee ;;; Copyright © 2019 Mathieu Othacehe @@ -1330,6 +1330,26 @@ (define-public u-boot-qemu-arm64 ;; details. #:configs '("# CONFIG_FIT_SIGNATURE is not set"))) +(define-public u-boot-qemu-ppce550 + (let ((base + (make-u-boot-package "qemu-ppce500" "powerpc-linux-gnu" + ;; Disable features that require OpenSSL due + ;; to GPL/Openssl license incompatibilities. + ;; See https://bugs.gnu.org/34717 for + ;; details. + #:configs '("# CONFIG_FIT_SIGNATURE is not set")))) + (package + (inherit base) + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases #~'%standard-phases) + #~(modify-phases #$phases + (replace 'install + (lambda _ + (mkdir-p (string-append #$output "/share/qemu")) + (copy-file "u-boot" (string-append + #$output "/share/qemu/u-boot.e500"))))))))))) + (define-public u-boot-qemu-riscv64 (make-u-boot-package "qemu-riscv64" "riscv64-linux-gnu")) From patchwork Fri Mar 21 08:53:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40548 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 DD77527BBEA; Fri, 21 Mar 2025 08:54:30 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 2BAD127BBE9 for ; Fri, 21 Mar 2025 08:54:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY8m-0006j8-Gv; Fri, 21 Mar 2025 04:54:08 -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 1tvY8k-0006io-QJ for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:06 -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 1tvY8k-0000lS-GD for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=waVI0mF1q0BJJfadkWmQFrdrQmLRxwp/H58NGh6PUFc=; b=TEUwdWJQ0T8IRcwM1/0eDNgAgFazJCWv0dEWqO9v06fHkNRayF5yLpGt/rERS6wClRQptfub3bSTVwf3FpMvY7u76R5IiqaJKRxTnYQdzzmei/aSoVULs98sOBBBUz21jo7LezHJHyWD+yWAfCXm309Xq6YcsyoBJEU7PD+W0kSgoCvJ8pFWagI8rv53bOnMy8zQ7t4I0aoh3wbynPohCCiX7YWYlB9Hbp6/enPayrhXgvZ2t2Opl62q/u3t4g97HPKvKQOf5siOYE+MgpEGWD4LdSSzBpQTHP5Em0Dp/Li3DF8fWHUlq1lE4j9mVzbeVrzLSnq4H5a+olFct1ir+A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY8j-00014i-IG; Fri, 21 Mar 2025 04:54:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 2/9] gnu: Add slof-qemu. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:54:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472203869 (code B ref 77148); Fri, 21 Mar 2025 08:54:05 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:53:40 +0000 Received: from localhost ([127.0.0.1]:35020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8J-000107-DQ for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:40 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:56332) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8G-0000yW-Hh for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:38 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-ac2bdea5a38so279231566b.0 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547210; x=1743152010; 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=waVI0mF1q0BJJfadkWmQFrdrQmLRxwp/H58NGh6PUFc=; b=ALZ7m2an5jwk3w00zBIGJi2rphM7+nM2RC7ZJ2bFY8BYnNUmT+T9dabs47oKFb8T5U ajfpmyVkCBnGGuV1QSG8vic7ewimd92MNyjFsWxySwDwd1N9QNvWYxWjqvU6H6iwJLJg nqpNZLYn0ZRKg5WeJPukFB+o9Q7kjDXE2QWSwffiwGdhvR7dCKEcai9tkVUJmsVE4xoK x6mOkAaGvUEk6JK2fokD7XpdxbFuZMYJgm89S1h1a/2b9h/+NRkOPckHwucPw7X2UWQ7 27dlVJbqwrcxGMDDyU/oVgBq2/UO8Z93thZgMqFhMXLJK2ecWTIxxsiWZjC6YS+SONfL YYVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547210; x=1743152010; 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=waVI0mF1q0BJJfadkWmQFrdrQmLRxwp/H58NGh6PUFc=; b=oxmpbnHgnwU6ZF7VRlBGRT0yVjCb5fhZp6JXQMIDz7/l9Ap+NIzs8FFAN+pg25Jbqd zXp9dNUtMyOIFZ5ueqltzLAxCFA/+7J6X8MYmZwLWaECwz9aPw9pI3C25bkE5mJxQK1J FcQ2/TYICVA03lChdi2M13giTPhNlfTTvnOPrhlf7LTtCgx74FxRuqDL8KIDtJDWH1we 0WfrD1P7mrbS2C3ogvyfOwRE1LrapUn1xtG75n3xRSm3wUPFfh8P3Gbr+MeoVt+c0flR X/4NqIvhBx/acnkdTSoWPGV4V5rDw/fAYhwTrjwbaHdahI+m4iLD1L7VdIj05ydhnI2B 3iSg== X-Gm-Message-State: AOJu0Yy3CJMC6P5uDvVJ8O/ADhHL4kMKHP3ocz8BUITgCd7w1p4d5bKg YZnikV6SQykwPCmSVwD6g6+byc2n0skTBZ5Jo8wBEwo5Tt8D9mQhhAFpPkla X-Gm-Gg: ASbGncuKp7M5iHpEyNNrX0yuRUjbC2ascBS5CllHIoRHWuMXI/vZSYOR8/E3AX2uqyR k5eKV0QTf71RIPSrNI8yvJqpv4crGQBUMPkovaBT6WcAJVRtz2YXkrgh3HG1AbDSkQISMu08Ugn Fm5E5DPoTawBgXw39JzW09w8eo9LtiZ+b9wZdILTsSyRd8rhH3RmPrN9iKB7pH6T6BuSTVJYf7/ F0SXQL2T7C2g5tdzSO4pdTb7CvK68YBqoME6Uo376NAYDT6wQujKM7bBL6ZXN4zRc8R4VAOdSl4 5vG7wzxbG0AuYmqZ0pxv0RIxnEbQw0l7l20WEFM6NcqKNUe4qB2vpYnzFng= X-Google-Smtp-Source: AGHT+IEj98en10EBzg36BRutwVMJ6K8ydF2jgOfIo5apPmIvn9ZKGf2ewYQPpBsm7OhKWfspqRivHQ== X-Received: by 2002:a17:907:2ce6:b0:ac2:b086:88ec with SMTP id a640c23a62f3a-ac3f2089ff7mr236867266b.5.1742547210039; Fri, 21 Mar 2025 01:53:30 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3efb52bffsm110433066b.89.2025.03.21.01.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:29 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:03 +0200 Message-ID: <57c58c9ff4122ff61e15250d842ddd1d699a2b97.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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 (slof-qemu): New variable. Change-Id: I01664bae53c79c46b9e293c0cf4287338134bab0 --- gnu/packages/firmware.scm | 51 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 63f767f72bf..88ee0f5777c 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2014-2016, 2024 Ludovic Courtès ;;; Copyright © 2016 Eric Bavier ;;; Copyright © 2017 David Craven -;;; Copyright © 2017, 2018, 2022-2024 Efraim Flashner +;;; Copyright © 2017, 2018, 2022-2025 Efraim Flashner ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018 Vagrant Cascadian ;;; Copyright © 2019 Mathieu Othacehe @@ -830,6 +830,55 @@ (define-public sgabios after an operating system boots.") (license license:asl2.0)))) +(define-public slof-qemu + (package + (name "slof") + (version "20241106") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aik/SLOF") + (commit (string-append "qemu-slof-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gfqnaxgvdv6s2gkkzrazijgs7rrvigmm878q81l9m5vnyyj12kx")) + (snippet + #~(begin (use-modules (guix build utils)) + (for-each delete-file-recursively + (cons* "FlashingSLOF.pdf" + (find-files "." "\\.oco$"))))))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list #$@(if (not (string-prefix? "powerpc64" (%current-system))) + `("CROSS=powerpc64-linux-gnu-") + `()) + "qemu") + #:target #f ; Package produces firmware. + #:tests? #f ; No tests. + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; No configure script. + (replace 'install + (lambda _ + (copy-file "boot_rom.bin" "slof.bin") + (install-file "slof.bin" + (string-append #$output "/share/qemu"))))))) + (native-inputs + (append + (if (not (string-prefix? "powerpc64" (%current-system))) + (list (cross-gcc "powerpc64-linux-gnu") + (cross-binutils "powerpc64-linux-gnu"))) + (list perl))) + (home-page "https://openbios.info/SLOF") + (synopsis "Implementation of IEEE1275 Open Firmware for some POWER ISA systems") + (description + "@acronym{SLOF, Slimline Open Firmware} is an implementation of the IEEE +1275 standard. It can be used as partition firmware for pSeries machines running +on QEMU or KVM.") + (license license:bsd-3))) + (define-public edk2-tools (package (name "edk2-tools") From patchwork Fri Mar 21 08:53:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40549 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 E3FAD27BBEC; Fri, 21 Mar 2025 08:54:35 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 332DB27BBE2 for ; Fri, 21 Mar 2025 08:54:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY8q-0006kM-4M; Fri, 21 Mar 2025 04:54:12 -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 1tvY8n-0006jZ-LA for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:10 -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 1tvY8n-0000ls-CV for guix-patches@gnu.org; Fri, 21 Mar 2025 04:54:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=UBJ3UDR4TOidH2BD10HWxIF5cBv3Ro02LG+2VKtPd08=; b=H+TAraUuf2qSIfOcCW7ekzMWAvlmKAsA9tmtSTX+xIMBDvDKqCpOyS9RZEwDZM6/ReVZBIO6CWdJAOYlA37YxgWocMqNRzNprDPVOjdiIO3hDUCckJwBANc4r3FeA2pAqsYd1so59Gy1EAYPP9prLQt/44WKMS2nsGblytPLHCfYrJJ58z1okpXAJZdNE5H94W29ziFYOtmhIcq25I4YkKd6ZvEh9mf2mUg+9cPtsRW81kwL+yIxc9czK8EfUjG9p2ocHilZMGZkkolbn8n57CcR2g3fQO2HrmNvRHRR0qri/SWTSsPXsrOpssL3JI3q41l5y+920QxKDTt9NOgwoQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY8n-00015D-6W; Fri, 21 Mar 2025 04:54:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 3/9] gnu: Add skiboot-qemu. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:54:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472243917 (code B ref 77148); Fri, 21 Mar 2025 08:54:09 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:53:44 +0000 Received: from localhost ([127.0.0.1]:35026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8M-00010h-BS for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:44 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:55612) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8J-0000z4-7a for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:40 -0400 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-ac2dfdf3c38so56080066b.3 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547213; x=1743152013; 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=UBJ3UDR4TOidH2BD10HWxIF5cBv3Ro02LG+2VKtPd08=; b=R2/KfD7ZZRKu9wpCaeZvhguPr5/1mFslE0LNwCo1Ch9GaZjXghzHoS3eo4fKkXJZm4 oyFrdBlffio1qO4siFIOcoKfJIv706DjO973E2MNaVL0/t+pALyGhbWZD96lUJ7cVGdI TZf2X7cnQ5M3CHwyw6E2EEjAnGbdlhOe6lW+/cmdkRTRtgY4tAJ1Ah/K2avXSjV7ldTE cxSOCLO4Plf34PDqDAEzThuFFK1Pv2tO4R8ciHxwuERIyK8ooaSCaDkJRncAIkicGxrM GWwlLIYxobjapi1IWqWvBiSzkd0ibmB6VF33T0vsYyf97nW1aS5NCeR9fze5XQTpJjM+ XeVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547213; x=1743152013; 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=UBJ3UDR4TOidH2BD10HWxIF5cBv3Ro02LG+2VKtPd08=; b=sbo24chJA6nHWbTK0OfcRNabcOZN+A2eLe4cTNqvQI/9i0zgYq7O7y9xlu7D4U4c3S O9bVOKOqRGeQcZGdvIcq865Fsso3cFBwWao/hEu00CRaJ68tmgaCej+EteoU5/N0IhcH pISnLt2DNyPMszEvSulxZJuI3rKiN8zY2fw5XG+0Ouj/y73pFDsmd5ilZ8LYuG0AEzW6 6o40HGJtxhh59swAHcye8osKKccrcuXzTjXu+tNrDjs6yfacTLbMhHOqJSMkoJ7RMXYZ t4SVrZN9s0Ejf0YPhhXvshuYkFb4eapokoZ3nMlIbgDvrCzGcZLrhMErDic5a/DKM/o7 Njsg== X-Gm-Message-State: AOJu0YzwGi9kqyFPAG12RuzU8gG3Zy3laeCmx76LFtgRWhaJYFty6CKC XkMNe4sr79vBJwcN9AeLSYXRaP9WcP4uYVn5xNOLK2DVRUVy4IB512cu2m1l X-Gm-Gg: ASbGncsXZrfSGT9BLEFlmtyB0nyFb2M3EqMR7F345a6oK9XSsPKkdhHgRYqWMlx8Kfd CN9/jj9Tv9h0161MSdJ2nrZtTvNBAPTNClRkHVDyPzr/ROJFyfQGuBj0TvJy9Pw1ADx6ehEEA58 Z9epQmIiWAzlbhXdNzDG07hVxRjYCNyBAEJhrxOWcLswq5BBeV7UdmdYnnwYYkB2QhiLIeDBc5b 7/6atOZC5rFPxEdhwXrVRvN15v0HysoymOs7YpmowjoaS22qCwujBNeg9H7GUhagXFme6QNup13 JI7NaJZj2KhEGEkS+T7JrsrsoG11QkIEztYgLg3DQJOz/NdK X-Google-Smtp-Source: AGHT+IGyQgdd4V8fqkFxgVyrmUg84jNBOYT2nDeE8j4nMoRzihdXweVZHvwOlVLpfOcIIWSgLdXoig== X-Received: by 2002:a17:907:3f14:b0:ac2:d0e6:2b99 with SMTP id a640c23a62f3a-ac3f24c8369mr256665466b.36.1742547212732; Fri, 21 Mar 2025 01:53:32 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3ef869f32sm111268866b.26.2025.03.21.01.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:31 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:04 +0200 Message-ID: X-Mailer: git-send-email 2.48.1 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 (skiboot-qemu): New variable. Change-Id: Ieb90171de7e74a4617e2c50b62c317b152d3a0c5 --- gnu/packages/firmware.scm | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 88ee0f5777c..35bfa6425ac 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -55,6 +55,7 @@ (define-module (gnu packages firmware) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages bootloaders) #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) @@ -830,6 +831,70 @@ (define-public sgabios after an operating system boots.") (license license:asl2.0)))) +(define-public skiboot-qemu + (package + (name "skiboot") + (version "7.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/open-power/skiboot") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gpgviphai9biw6cmq1bl50i1419b0q6n5c8vjmq7zx3a46mjwqv")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "SKIBOOT_VERSION=" #$version) + #$@(if (target-little-endian?) + #~("HOSTEND=LITTLE") + #~("HOSTEND=BIG")) + "USE_VALGRIND=0") + #:target #f ; Package produces firmware. + #:parallel-tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; No configure script. + (add-after 'unpack 'patch-files + (lambda _ + (substitute* "external/common/get_arch.sh" + (("/bin/sh") (which "sh"))))) + (add-before 'check 'pre-check + (lambda _ + (delete-file "external/pflash/test/tests/01-info") + (substitute* "libc/test/run-time.c" + (("/usr/include/assert\\.h") + (search-input-file %build-inputs "include/assert.h"))) + (substitute* "external/test/test.sh" + (("/bin/true") (which "true"))) + (substitute* "libstb/secvar/test/Makefile.check" + (("check: secvar-check") "check:\n")))) + (replace 'install + (lambda _ + (install-file "skiboot.lid" + (string-append #$output "/share/qemu"))))))) + (native-inputs + (append + (if (not (string-prefix? "powerpc64" (%current-system))) + (list (cross-gcc "powerpc64-linux-gnu") + (cross-binutils "powerpc64-linux-gnu"))) + (list dtc perl))) + (inputs (list openssl)) + (home-page "https://github.com/open-power/skiboot/") + (synopsis "OPAL boot and runtime firmware for POWER") + (description + "@acronym{OPAL, OpenPower Abstraction Layer} firmware comes in several parts. +The OPAL image is three parts: +@enumerate +@item skiboot (includes OPAL runtime services) +@item skiroot - the bootloader environment, with the kernel and initramfs +(containing the petitboot bootloader) +@end enumerate +They may be all part of one payload or three separate images.") + (license license:asl2.0))) + (define-public slof-qemu (package (name "slof") From patchwork Fri Mar 21 08:53:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40552 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 E8CD727BBEA; Fri, 21 Mar 2025 08:55:23 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 7C45127BBE2 for ; Fri, 21 Mar 2025 08:55:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9i-00071c-GB; Fri, 21 Mar 2025 04:55:06 -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 1tvY9h-0006zS-G3 for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:05 -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 1tvY9g-0001aV-IT for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Axgk+w7LABuh8ZqCTqxN3cdv+MB7k9FoROH3qpJ6bjM=; b=R0MBUc3Oen3/dEDGE1x0DBDhO9LfjYhioE0gkTTNUpi9QN2aeIkxFzyO5PQCi+PtSTyB/1ULlszlAk/JRsIj4jb2bZh7hfyh3x/VIbKP3nkfJW2HeiDBW6FRUyy4BLc+/AA3XR4sXPSjkLIRyQWJK2UWzdv7q/UFdw27cT5ZeldLYYZFqp0c9BBN7CmBJ8+Og4x45dzVgwbszOUk1OnaI5XUFkx619OHmqGVBJCw4XxQFyNKE0YLRRSTf3KfWvKBhgsZyLVcQ2yVBSIpaQiF85ve1EKQ+4eTYT56sXGQ0XhnSidjdFgmwV0p1pbLZZS7/mTNBBmLLR3/GQJw3lI2Ew==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9g-0001BT-BD; Fri, 21 Mar 2025 04:55:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 4/9] gnu: Add ovmf-x86-64-microvm. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472584214 (code B ref 77148); Fri, 21 Mar 2025 08:55:04 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:18 +0000 Received: from localhost ([127.0.0.1]:35046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8w-00015p-AZ for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:18 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:42407) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8L-0000zM-0a for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:41 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-ac2a089fbbdso311788466b.1 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547215; x=1743152015; 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=Axgk+w7LABuh8ZqCTqxN3cdv+MB7k9FoROH3qpJ6bjM=; b=kCivIDXFkLXVhDq9rHrLEKrxlvaO69MtbmExWF5IQQ8tguZ0s9+tMLhjkpUEv+BFsF M+p6QJQHjCyq64Ax3BBNY9zAtCdRDCtkqza/jjEqsGmaWAsp6JpJTaTNCX2z8qaxMvZB ykGSY0/ilJ5x585mPnpwRs1EZfxwZVnJExsHv48aGOTerHJsVifW9VsHDpisAoTeqdbq VY1Ri5LgjYHIn/LZGsouQnn0Z0DfJznu37lwdVVmG0GHYjN7jdf5I5Ducz4ybnOuvxCa l6+a4yD/slxNJvYSnWgb7PPHu68aTiCQ7k91MdDty0ve75p0rlxh+axCR+UOiqjiW9a0 vOEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547215; x=1743152015; 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=Axgk+w7LABuh8ZqCTqxN3cdv+MB7k9FoROH3qpJ6bjM=; b=M3R48M3UXpS3C/eVFThd7YApOSoV5UdZrGikDeizwK5D4DjXh/fyKjIibXmamqPS65 nZQQEYoO13bfJAMQcrcOnv0hD4j3sBxkS6siriUmkOlBPMNnz4VmIUgKBiKX7djy6BMd 1Q0UyFDG3mFyqJdh+v0Y5PrSKd5+Uouc5TMy6Jwn9+HKxyWhJcMw/c+HH5Ji6odkIGsY y9yrMpzrvSz1Y2tdKwIRoIMNC5VesUpOHF87P38Ws7n5wiQ+jUOnIA5NaU+5zqnKTBUV XDaRzY83LMaF3fzQ/3s60ROoQf5MTS7PRRYjP+oaxmKTQGjf3zijAq5+9zwgCzkSwMSZ gkQw== X-Gm-Message-State: AOJu0Yx7LOyAh3gymFdbYLaOR2AnGVu96ghlHRAN7Mg/0uNR3mVN8hO8 5Q37zQUO9AEFlSm7c8HJ+LD47XGtROoj/dmPoCe6vB0/yKh+WnSGIr8OOyFL X-Gm-Gg: ASbGncuxIzZmhq8PBUTP2VAZqOrG2QvbyuonN6bXl2F9AdK/fBWj0O7FUddcRAMKNPv M10clXMtcNRGzflGB3QTN7y9xwehUwOKVEV0tOJkejgkTe4dHNpnNex0x4KnDIgTSt9r7VZk0vp Q6lDAqdhvt2sgU1POMYwanHHcT83keNC77lg7C9yoMmLd9uQoRxWPk0wmTf0JQRR+Hr0SIJ9e0z h+Htu8XfTGtx34nE2L62o+++PDcVkayKq8KleV5TFNISyhojltbEAe3PkCeH0nI7UMWbjyyG9AG Ag6e4w2d623igHV2+0x0ld/BN/v5tpgeqQeAWchJ+anVVN8j X-Google-Smtp-Source: AGHT+IHCSk2IK40BE/ofY2gZOw+3h02CxKMM3wdeWeWel+c8qvpOTUWsQyJRGuLfG2+F/gpgz7psIQ== X-Received: by 2002:a17:907:86ab:b0:ac3:b50c:c94d with SMTP id a640c23a62f3a-ac3f042fc1bmr250384266b.28.1742547214781; Fri, 21 Mar 2025 01:53:34 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3efda3684sm108530366b.181.2025.03.21.01.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:34 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:05 +0200 Message-ID: <7a84fad119f972bd7135d3c6dddafde4c6d03d07.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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-x86-64-microvm): New variable. Change-Id: I1c8d7b037a84d7855d53def4c639a037c429aedb --- gnu/packages/firmware.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 35bfa6425ac..e7d2e390acc 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1138,6 +1138,24 @@ (define-public ovmf-x86-64 "OVMF_CODE" "OVMF_VARS")))))))))))) +(define-public ovmf-x86-64-microvm + (let ((base (make-ovmf-firmware "x86_64"))) + (package + (inherit base) + (name "ovmf-x86-64-microvm") + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'build + (lambda _ + (invoke "build" "-a" "X64" "-t" "GCC" "-p" + "OvmfPkg/Microvm/MicrovmX64.dsc"))) + (replace 'install + (lambda _ + (install-file "Build/MicrovmX64/RELEASE_GCC/FV/MICROVM.fd" + (string-append #$output "/share/firmware"))))))))))) + (define-public ovmf-i686 (let ((base (make-ovmf-firmware "i686"))) (package From patchwork Fri Mar 21 08:53:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40555 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 65CC727BBEA; Fri, 21 Mar 2025 08:55:45 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 EC77627BBE2 for ; Fri, 21 Mar 2025 08:55:44 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9j-000726-Pn; Fri, 21 Mar 2025 04:55:07 -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 1tvY9h-0006zb-GZ for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:05 -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 1tvY9h-0001de-4G for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=zgAsJsHPFnO7tCgaqLkxal6rB8RpcRZCj05pq1ODdEw=; b=L4KaleFSlgLAiqCY/CwOyZdE4dY7goIjEcdhJRdP6M6ypOW/FSbHClOvaBi/5HAxb+JtfWfE508wKcTggDHyrYqmNYlxCoiXgJIdyl5OzOy778E/THdsH07SkkeAX/317qqxfZXtbhDnTPJCvZ2UfHo/WuiXcQqAFyaqlpZyV1YpqMTuunBU47nLl76hw9lLkGGL+he9+Yl26l2W8/dqeiE2GH7sZ60zSsDIW9GsyKQnnqo4SDpC3IpTA1zSjWW3bmPEgWdhPi5ggHNlqJrJDY4glhSgh3iuuy6ZZc4NLAqpEoZHmBTziO93KZltlLsG1P0w5qQ0DvXswfUgtOalsQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9g-0001Bu-Vk; Fri, 21 Mar 2025 04:55:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 5/9] gnu: ovmf-aarch64: Update installed firmware. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472754306 (code B ref 77148); Fri, 21 Mar 2025 08:55:04 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:35 +0000 Received: from localhost ([127.0.0.1]:35051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY9C-00017M-Si for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:35 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:51482) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8N-0000zl-29 for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:45 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5dc89df7eccso2981279a12.3 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547217; x=1743152017; 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=zgAsJsHPFnO7tCgaqLkxal6rB8RpcRZCj05pq1ODdEw=; b=Vzkzg7DjnAk8OfhDWKKkvCeh8dFwsiD/uu7bL6CGwdsTq6Q089Y6YTd566w8j4Z/Nf UwRjPVQrgHgQ7p/odpT7ecmjghK1Nnr5u6wF6o1/f8IhxA2CURvU1UbqQTFvkjXetq0V Rj669uk8xeHkohw6FKz8PeofpK/TKEeMW1BZj26zjM7ZvTGi+/pqOgLoePiPbwQ3Epm8 U62i1S1AKo1/mkW5p/7wEqGLgzp5ykLQUBifj/uXuyKOGEXUClefVjyvo9RsSjUtMVqZ LoS19ppt+8P3oaCQzJ7ljsHg/PKMELlE7Mr72tPG/zAbNXNAwBHQNdDKDDZzLC0Hz7C1 stiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547217; x=1743152017; 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=zgAsJsHPFnO7tCgaqLkxal6rB8RpcRZCj05pq1ODdEw=; b=f8+zeGwubYZ+KA55HfZJRoKqlc1AW/Jwba6brrM8C8hFj9Abr1rNeGBV4B29uNiOKV lAZh66cC5ofC80c0OD3RwFdzvKqcVW4JRXFnwp2vfMZNVjGLNau304E9723vCS4r7gsq l8oXu307mcYxyU4PdYCdB5qUABTBFosO7oTOMbX8vs3kf0oO39wGC4EG7z+hnj7bI0dP QPqZX7w2P7VwXWzG2QQUp3gry21J9QcSgkyaskBl/v8+UyiwQJE7/6kPmcuDZSRSvigM FqKYAq5caT+xxavZHC0xKCLQrZQqEHAgu4zgGmMoTbgDsia213Sj/2RwmPtuKblo3zPv 5PbA== X-Gm-Message-State: AOJu0Yzqfv2vi1Hjr0jRZXOd4sG1fouEOZv6Mg5++hjpcvaPnD49yVpp a7aBYhad1d+mzR5t4DctqSdZsze1Zmst1ggTw5K+K/xgmzejXEjYbPTvHjy2 X-Gm-Gg: ASbGncuXu5+ssu69sE5EuCsaggEtt5LTL8B33F/wqyofTStajbuQFZin7lexbLT8Ea/ Vyy7cy0JWDcr832Jk9T0fCP5ZmFjUbhx3L8kw2XgtzsWyQzIW1ahhV8/q7nXMCOUWVmo6je+0Y9 xNALjaU0ZbeabdfRdoYe2aTnsGwF5sam6JVZP5GThQbCtOGzUYMIvIPaDjGoMTt14pTzimiR7pG LPUvVUniLbpOcs9CLKyEkg/g/KTAW84fnrX9W7HPCFNc4jCjNwB87BPbAl55l2hjCRLaB5DXR/T q9NaA/Ib0Y8BrJ5obecjD4rCoHU+MiI2t+xtYQFn+fHcrQd5S4nDRSmOr5s= X-Google-Smtp-Source: AGHT+IFZW0ek0l5m2Q6CXrYcH4eNYlXUaT+tsxE9/7oGeZ8uTOhqEZGgV1GLeHaex7uGpj+35k4PiQ== X-Received: by 2002:a05:6402:51cd:b0:5e6:14ac:30f with SMTP id 4fb4d7f45d1cf-5ebcd40a83fmr1953597a12.2.1742547216739; Fri, 21 Mar 2025 01:53:36 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ebcd0dfdcesm940148a12.65.2025.03.21.01.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:36 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:06 +0200 Message-ID: X-Mailer: git-send-email 2.48.1 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-aarch64)[arguments]: Adjust the 'install phase to install another binary and to truncate the file to the expected length. Change-Id: I53958d5f2ca392e1033630e1dfd29d86c25a74fc --- gnu/packages/firmware.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index e7d2e390acc..049fd9246fb 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1190,9 +1190,14 @@ (define-public ovmf-aarch64 (lambda _ (let ((fmw (string-append #$output "/share/firmware"))) (mkdir-p fmw) - (copy-file (string-append "Build/ArmVirtQemu-AARCH64/" - "RELEASE_GCC/FV/QEMU_EFI.fd") - (string-append fmw "/ovmf_aarch64.bin")))))))))))) + (with-directory-excursion "Build/ArmVirtQemu-AARCH64/RELEASE_GCC/FV" + ;; Make the files the desired length and then install them + (truncate-file "QEMU_EFI.fd" (* 64 1024 1024)) + (truncate-file "QEMU_VARS.fd" (* 64 1024 1024)) + (copy-file "QEMU_VARS.fd" + (string-append fmw "/ovmf_vars_aarch64.bin")) + (copy-file "QEMU_EFI.fd" + (string-append fmw "/ovmf_aarch64.bin"))))))))))))) (define-public ovmf-arm (let ((base (make-ovmf-firmware "armhf"))) From patchwork Fri Mar 21 08:53:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40551 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 53D1327BBEA; Fri, 21 Mar 2025 08:55:18 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 D73EB27BBE2 for ; Fri, 21 Mar 2025 08:55:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9h-00070V-VX; Fri, 21 Mar 2025 04:55:05 -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 1tvY9f-0006y7-Ih for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55: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 1tvY9e-0001Tm-VY for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=BOgAEKiNRW+VTR3/PvvcUstToh5xLwsfIeQOW4EpJn4=; b=qPpIqcYNk/R/aOy3arJQWb/gz5q/403ASw4vXbfO0mtjsCTmbjmY6Nz7VWUruSkuasYa5UNo8qmbqe+fHgrSI2uT6byXJGgLHMIGyNSUZshXX6HSDKByrzqp/wEMMnBXDBiBGDBihKrmP8cEL6LPLnDiNBgfRNfjTkz3NV6rlhB8huXUPUGbbU03NmroO4rdGGgeQA/lViEjf557tMZVKHdKy1W1Oee2/vJD/6fUPRsMZLl+QwkffXw29m/Qs6Jinb+QBXQlEOTNS9FqzXyYeaka/Y8/kD2I2lW+HoRoLx+WRuhBgeTSnPsoG1geXM/qbDmVFVQP2yaxUWCUkr2K2A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9e-0001Al-OU; Fri, 21 Mar 2025 04:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 6/9] gnu: ovmf-arm: Update installed firmware. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472584200 (code B ref 77148); Fri, 21 Mar 2025 08:55:02 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:18 +0000 Received: from localhost ([127.0.0.1]:35042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8v-00015f-Aw for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:17 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:52732) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8P-00010E-AV for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:47 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-ac298c8fa50so310188566b.1 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547219; x=1743152019; 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=BOgAEKiNRW+VTR3/PvvcUstToh5xLwsfIeQOW4EpJn4=; b=Ulgtnhgmt4AKuDntHMlCHEee5d0KiPni7S38wpVyUsXuYaVmyq+YzBZk52m+MSZA9u xhwiXNhKF4q7mYZ4i05Qan4TglM6Ms2sAZZBG2jcmV1qHnMzHSQhofGPeURa6/lUozbN 2DaQnfL9PDogu8a86m/tVjYG4SwsfoVJKbJrz9246XQo5mBV/lbjt3XetiV82+DdCUd/ LLLudwDi8h7zq/vnBoUrKZB+l99uslRpQaqiXBUZEeVSWkSyOPuNn5oHq8zxgPsltWnC f53a6mkk4O1DSoQJjMhQ++Drx/F9VHYLT3S7Hfs1TxISAl0pTWZjBPcAHyCawNkYXU59 qJYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547219; x=1743152019; 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=BOgAEKiNRW+VTR3/PvvcUstToh5xLwsfIeQOW4EpJn4=; b=KmmVJxuE6fnltLUAMRDDC/xIPlXrQYsYxYPE31k+LAyYHtZOXh1gi0jaNh+6lm76yQ n/K960WIjcEQ/QM/c+4pV5pXE4PT5vxP3MWWUBcXo7NVzc98X/Flz2DdPlVxAqGDYWNQ Uy7l+S7eTU0wG3ccwv4XvLZW+R2fMWyBBligvJxpwjlFmg+YFfR/o6h/ppyHnekLbgOp S7TASX/dZ2jNlbYkHerCGCI0s2vasu4CAwvN9bU6aUTVS6vOoZnUXkQQQy9QMjyTN9Ty kk50MD+Iaj4okeVLlVOag+WRRs6j70ljbaC9rbh6Sz//+yK5dc+l4Y4xHQ9X6mFQLM+N fgPg== X-Gm-Message-State: AOJu0YzhumG1bMpXv+3h3mBUN6I7PUs2SGcG3FS+b11uK+Ip/+s6gwd+ OUIQwua5DGuDUPQV5QEjQxhk3jIpnZoa6QLf/6qhZSe3nKUFus8P5erKyera X-Gm-Gg: ASbGncu8FCMT11OeF4q/smQiTa2HjQCx2oju2l3c7r1NV0vZFd8jMzoBSuXV4/n/gTu v9o8jwP0SpqTVKjVtQfLlqMpqmUWWrRgW+vKwRog44MXPkeERV0tYOw6aY0d7bcV9tG1UY4ROME H+9yZ7JN9vUUDNI8Xxx8QgwjUNnx4vGOCoZHb0wO51Rc4MzHI6l+Rm4Ts0eYYNeV2mC4k767G6g TAl4XgM04U7Btvk0h3Juh401x+ApoCz3rxYXANe4omj2MPOqaw8iuPSXS98FEEcB+pMS3ZB6lJf ++MakmZaCZUyokE+8B4e9UTeRqqqfUU6mCZiJrQmQpNvypLH X-Google-Smtp-Source: AGHT+IHG4yUnXDy6mbHr64lIDlMdQnMLqCRDr+mM2C5sqDJTlwQPJ9cWfP6Py2lUiLRMhTVU6DQhtA== X-Received: by 2002:a17:907:c88a:b0:ac3:c91b:7461 with SMTP id a640c23a62f3a-ac3f26abe3emr249886666b.46.1742547218764; Fri, 21 Mar 2025 01:53:38 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3ef86f1c1sm111166666b.8.2025.03.21.01.53.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:38 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:07 +0200 Message-ID: <98dd0a2a69547fc403323d9027a25f87d84cdaba.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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-arm)[arguments]: Adjust the 'install phase to install another binary and to truncate the file to the expected length. Change-Id: Ic3319c88ed03c9c80e466ef78eae60837158a456 --- gnu/packages/firmware.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 049fd9246fb..c8220fe3d66 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1212,9 +1212,14 @@ (define-public ovmf-arm (lambda _ (let ((fmw (string-append #$output "/share/firmware"))) (mkdir-p fmw) - (copy-file (string-append "Build/ArmVirtQemu-ARM/" - "RELEASE_GCC/FV/QEMU_EFI.fd") - (string-append fmw "/ovmf_arm.bin")))))))))))) + (with-directory-excursion "Build/ArmVirtQemu-ARM/RELEASE_GCC/FV" + ;; Make the files the desired length and then install them + (truncate-file "QEMU_EFI.fd" (* 64 1024 1024)) + (truncate-file "QEMU_VARS.fd" (* 64 1024 1024)) + (copy-file "QEMU_VARS.fd" + (string-append fmw "/ovmf_vars_arm.bin")) + (copy-file "QEMU_EFI.fd" + (string-append fmw "/ovmf_arm.bin"))))))))))))) (define-public ovmf-riscv64 (let ((base (make-ovmf-firmware "riscv64"))) From patchwork Fri Mar 21 08:53:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40556 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 E4DFD27BBE9; Fri, 21 Mar 2025 08:55:48 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 7266A27BBE2 for ; Fri, 21 Mar 2025 08:55:48 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9n-00076T-LU; Fri, 21 Mar 2025 04:55:11 -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 1tvY9i-000710-58 for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:06 -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 1tvY9h-0001gf-QK for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=yrfwCrhQu6ZgJ5g0ShTDc78EtCx4iTCJO/iDygoEXvI=; b=ZAeRC9L2jvHRE0GErW+HwkaY6/cSrLTap5v31CxyIWGGfw20Uar6dYqQ6r0aNhwMSzcPMFUe2SNvg7bUt48xmvhFqoF8UvOkgulXzBIErp/DfVz0I+1ohUWiVnb5exTlugfq3Py6nRjfvSlmD2Gtgkn7OSkGjZMvI68YKmMmlUKUGy2oOgFVBjl1KUj5KulSJVRQjL9bsPmrzCo8mfI2r6PK2GurxNHt247SDmDZhSTGLPeYtEm2+BPT69NgtqnXcRBBMBM2P044VO5Lhu11gqRE3Al+5/yZj+CHEz702BzJQHt+/OCugaNRVvE449T4p0BxZ4qaNXmHZf8KULx+eg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9f-0001BD-IH; Fri, 21 Mar 2025 04:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 7/9] gnu: ovmf-riscv64: Adjust the installed firmware. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472584208 (code B ref 77148); Fri, 21 Mar 2025 08:55:03 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:18 +0000 Received: from localhost ([127.0.0.1]:35044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY8v-00015i-U8 for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:18 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:56322) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8R-00010Z-4Y for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:49 -0400 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5e4d50ed90aso2407519a12.0 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547221; x=1743152021; 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=yrfwCrhQu6ZgJ5g0ShTDc78EtCx4iTCJO/iDygoEXvI=; b=D1PAk9KC2QJxDi01kjDw0/DxEOh13HxBfdVQkGLWVxXjxEqg44WBYG2OMl6bO78EVR nAk6V+Gd5zzk0QI2UO7zSm1atVUz50zli9XaU/B00/YlSKhgNaMOFC/WulRNAGfjUy4A WiSGoB0z2bbx50ZMrZw5KTIwi+0wQdUZvrlAUvZJ7cdYiQv9MVZgWAGa8LBfZ3LtjPFq j1OEmyenXnfqtK8r/OtdJUVBebjHawZ11yL7HMSUC1HUVPcZGe6bhd/8ouuQgmWcX+Cq iDKg4LL6m3evj4RSKxNDmvo1Keb1iNlLxEbAkpZXn7eXDU2wahLXalKvE+2fGpDOIo0D hSsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547221; x=1743152021; 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=yrfwCrhQu6ZgJ5g0ShTDc78EtCx4iTCJO/iDygoEXvI=; b=XSfk9ST8jOTLyUPaGa/rU2k7mM0ClqgH7emz7UPEMCzPw/lilLOgTU31KC7Sg4sYtj +Nbhj+hogX/4cfDkBBEoV+MN0fdIdkKikWqFqqcfByAMNB8/ceWsbBUIXNNb+p30byy0 9hdq/y/pG2uH+AUOXW9BtFddirnFan9Eh3OPFuD36ZJMG27l9pxIEJk7tYitQqAr8blm UXboAI8bv0Ifmb2BxjYELvCAIBCJN5d5ybQWVAz3R3yN31JBXGS8+BoJs5E3hEYZo/93 60sg5h3zlCOdlFp1MmnGRFvJnzoasT/E7jsKY0BKrYekEMnUINL7fItqtAw1cTyFoxEX iZVA== X-Gm-Message-State: AOJu0Yy6UTBfD8M4/e6xT002PNLkoqMCummCQ3NPOLxsafuE9O3O3XOM t4AOWJXrqHQQFiqQp1VDEyxXQzElUhYa51xA5czWlCFcQECgCiDhH/k/PEAq X-Gm-Gg: ASbGncvP9b5fLfgwBkxFl2x1o0GwzCBV8hNgWAqAETD6ucXVcf9JxnULP3qNc5TAqR4 A6IX1RwqzrOAgl+0Xiswzd4O5PYfqZKh+XlzlzKkbuu/9Vj7Hg6O6prtnxVV+fctpvezWeP9HUZ qD4m+VoLbyKKhIooXgrycjLvVE552/zxCVJfxclkSkvNkHw44IOk7uR64fpMtVcTx0eYCF0b15g paohx36dT5mYGu/hZSI24WBPDdatZkbZV/sRtr5K7m0XiB8fb9gjS3abM3PUlbq9Fo4NHVNsmF8 9g3zg87Uet9gmG6yQFyu7trTPTdaJ3p4pUraQnt3YF7P7HWu X-Google-Smtp-Source: AGHT+IFAFxdwExQiiCVsmdiyBQjxatbROQKw01nwUB2Mgy8B+p4ShdEy0JIHY3yL1glOZQqHMM0Hpg== X-Received: by 2002:a05:6402:354a:b0:5e5:3610:8b59 with SMTP id 4fb4d7f45d1cf-5ebcd40607emr2084519a12.1.1742547220789; Fri, 21 Mar 2025 01:53:40 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ebcd0c6f25sm945618a12.57.2025.03.21.01.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:40 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:08 +0200 Message-ID: X-Mailer: git-send-email 2.48.1 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-riscv64)[arguments]: Adjust the 'install phase to truncate the files to their expected lengths. Change-Id: Idb524a7e2ca8b8a8fe8a70a893f57a13ff1e0b56 --- gnu/packages/firmware.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index c8220fe3d66..0becefb3b08 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1234,6 +1234,9 @@ (define-public ovmf-riscv64 (let ((fmw (string-append #$output "/share/firmware"))) (mkdir-p fmw) (with-directory-excursion "Build/RiscVVirtQemu/RELEASE_GCC/FV" + ;; Make the files the desired length and then install them + (truncate-file "RISCV_VIRT_CODE.fd" (* 32 1024 1024)) + (truncate-file "RISCV_VIRT_VARS.fd" (* 32 1024 1024)) (install-file "RISCV_VIRT_CODE.fd" fmw) (install-file "RISCV_VIRT_VARS.fd" fmw)))))))))))) From patchwork Fri Mar 21 08:53:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40554 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 7AF6127BBEA; Fri, 21 Mar 2025 08:55:38 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 05CC127BBE2 for ; Fri, 21 Mar 2025 08:55:38 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9k-000730-39; Fri, 21 Mar 2025 04:55:08 -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 1tvY9i-00070k-3R for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:06 -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 1tvY9h-0001gI-JW for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ta3zsjJ8hNBVEsjXky7VgLhH7N0K3ypdaQyDOQiPLSQ=; b=Vtj4VeZkBCQJPnnUoam0jtGyerD/NfuGNtN6Swr/Ao7S6DHEzliodlDUgjQ3dlNPAT2d9PcDyoF1xwGPzkHKqyIVsYt6vSTSxSwCczgGFVQa3xbVJ00DJk8CDQMLIfiO1snPr4j/h4lOQR0cmdsim2wjtoV4d9hjuhvW/3LZqLFCZ0TZpUzhHS/q4Jbsp7P6oMw9XMLHJNOOOM8MlVfSI7RRotdxRnOwMh6Il9KK0lhgHW1cQvHHOyu/FKHvsFa5GvRQHnL5ZNRQpMPSE0gfr30HPB4Mb/lf8TwTIA6/Qnn1BrMgYLzX+yKt0HAD4OtrhVW+kEElk3Ewo9yhr42H5Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9h-0001Cg-EN; Fri, 21 Mar 2025 04:55:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 8/9] gnu: edk2-tools: Update to 202502. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472764314 (code B ref 77148); Fri, 21 Mar 2025 08:55:05 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:36 +0000 Received: from localhost ([127.0.0.1]:35054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY9D-00017P-Ki for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:36 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:59610) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8U-00011D-2F for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:52 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-ac34257295dso363904466b.2 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547224; x=1743152024; 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=ta3zsjJ8hNBVEsjXky7VgLhH7N0K3ypdaQyDOQiPLSQ=; b=H1sut+GesFp2+gZCyXBSDXeNitHcsBIija4VHBynDAvxXyV8/qDX03Ox0UNfGH7cZa LSLuPqg8laveRtOFpYE8w3CUdJisUV0HHn5Dm44mWkUKZ0OR/SznV14tkAM5f4v6n8jE tX+cAsLSzM8WjzJ8jAHhU0rAw/JOoZ6NJU5KQgN6jljf5cTcM5GApiEwvpVNkse9Pnxg hTZAnxw5+qNg/epdClIZNbNf3wvGZjBKLnDK6nwPRKT0It2+gKxGFNPR7ujlhO/GE2rJ W49NdAO21hYgobxj2m42paaFTaeOrTz9lg5ePptB656SEuX8WIYrVt2waH4WcW1/iOfk p0og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547224; x=1743152024; 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=ta3zsjJ8hNBVEsjXky7VgLhH7N0K3ypdaQyDOQiPLSQ=; b=sg5s289j/vnY/eF71/fbwyDunrcyiXe0FmpPh1k78Hj6nZka0X8zG/DiC4NCBL6LqA 8KJ/aigwFeWHmrygnf6XZDmcC9BDayCFkP9S2vjEG8mvmXZqNdaWDtQdTuYRLTKYksNC 3ikpSMIgau0dCKM40XjiCmeILM/eq96i3ICoEslEa8TizezDbteLplbeR6Xa/dQ5nb8T WJMPdf3sIRuRMgqyqc3jechl05yMByygN+WqTE5vPtFa9tjMaY1HX3oktgiTXMUxDheU G3QI+VAZyHskP/u3dOIOPfsF11qE7pvEQJl3fbpgciP8Zy9S485j+LSqSS4IhhJTVjGX 5ysg== X-Gm-Message-State: AOJu0YwVdchGfSGPtX8IWTuUB1aYrqATWjGtG4XUbMCnOwG775jlE4NW SG6bnAFDi0OjEb2JZIurlIGHRpojYNKk5ulumoTBIFa61HiDObkTW2lirns/ X-Gm-Gg: ASbGnctJW/cOYH8KR3/zSIxTFxOSeREg61jvx8qId0zkvmGLgPvY3eATxfzz90b9AIR j6ruGfSB/uNOc0iRuK4oiF2Hhhxsn4s6DwwFCVu3ft5QhC6Rp5cnIrtW7xgYgtfzyTwbY44QrTg weuDrVMspCS1JYIu2xmm/aai6+21L0zDYeZxe4yxVB8J5DzZ0zgDlzP90/rwRiAi9/A1JhU0pNn PuT+JP/M7LrSflSODu0YIlTlz6ZigehtigrbDCabhrqYj62hmaObXegtgmCdZQAsubgI9WXZUvV Ml2/a5luagrh1LManWsGhfzulud4X7m/FxiqzXkkRaXb1otT X-Google-Smtp-Source: AGHT+IGpLp5FSvWaRnckqq5DoT7v4VMtBTKnaXBwK5nmy9e1eSZDZRrDJJ0T8l7Ss4qNR1IZ7aO5dw== X-Received: by 2002:a17:907:2cc7:b0:ac2:7d72:c2aa with SMTP id a640c23a62f3a-ac3f25833fdmr212542266b.51.1742547223553; Fri, 21 Mar 2025 01:53:43 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3efbdc7d0sm110027366b.133.2025.03.21.01.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:43 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:09 +0200 Message-ID: <24890fd7c8327bd2af4923b7adb09ab49458452d.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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 (edk2-tools): Update to 202502. [arguments]: When building on armhf-linux add a phase to adjust the compiler flags. Change-Id: Ia0586cb748194e4ec0fa35c2a04cee64f1ad6521 --- gnu/packages/firmware.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 0becefb3b08..fe2956fbfdf 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -947,7 +947,7 @@ (define-public slof-qemu (define-public edk2-tools (package (name "edk2-tools") - (version "202402") + (version "202502") (source (origin (method git-fetch) (uri (git-reference @@ -958,7 +958,7 @@ (define-public edk2-tools (file-name (git-file-name name version)) (sha256 (base32 - "0y7jfpijgi099znhzjklnsczn0k0vm1d1qznq9x2a2sa0glydsin")))) + "026h7hadzj1zflgf4qzdby3gmgcqh3m5rvn2yr92jjwn4z8c51la")))) (build-system gnu-build-system) (arguments (list #:make-flags @@ -1047,6 +1047,13 @@ (define* (make-ovmf-firmware arch) "riscv64-linux-gnu-") (setenv (string-append #$toolchain "_LOONGARCH64_PREFIX") "loongarch64-linux-gnu-")))) + #$@(if (target-arm32?) + #~((add-before 'configure 'fix-armhf-flags + (lambda _ + (substitute* "BaseTools/Conf/tools_def.template" + (("(DEFINE GCC_ARM_CC_FLAGS.*)-mstack-protector-guard=global" _ gcc-arm) + (string-append gcc-arm "-fstack-protector-all")))))) + #~()) (replace 'configure (lambda _ (let* ((cwd (getcwd)) From patchwork Fri Mar 21 08:53:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 40553 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 C048F27BBEA; Fri, 21 Mar 2025 08:55:34 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, 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 463E127BBE2 for ; Fri, 21 Mar 2025 08:55:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tvY9k-00073v-FG; Fri, 21 Mar 2025 04:55:08 -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 1tvY9i-00071Z-EX for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:06 -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 1tvY9i-0001gp-2X for guix-patches@gnu.org; Fri, 21 Mar 2025 04:55:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=9+381lkr/m2fK/me/mA14S40l9E6BpapMyQXWw3aJks=; b=aIClbo8ypa9C3k39HsjZsKVY9O4C8asSpfqe0FLpvdiQDAhFmzEkkKMfAxLagpCflByKTzj+66uoPgsWSfz+ScMQixZ92JleNjHI1T5oGf5OjE6V7g4WW6ThXtsE3Y6PAMojRvwMT+s/Y4GgYcivwCoVAuaPTIqUkyvJxGleNzY+EbGP1BYQGkqqq5b4ML9wIhegzBhaNT0f6rq6T0Rin1lCuJWJuWNgqIDGhsq8Xn4mectkDxt5KzR2rp3rbcs+7X+//mTD1NqCSgwkn0EbunLW4tv2H2ll3gbjRTZFYMtJ5J4WdwurnD7BcJrOI+PKA+HWbyx1CFqyjKgqHrRT5w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tvY9h-0001DF-TU; Fri, 21 Mar 2025 04:55:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77148] [PATCH 9/9] gnu: Add ovmf-loongarch64. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Fri, 21 Mar 2025 08:55:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77148 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77148@debbugs.gnu.org Cc: Efraim Flashner , Maxim Cournoyer , Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 77148-submit@debbugs.gnu.org id=B77148.17425472764320 (code B ref 77148); Fri, 21 Mar 2025 08:55:05 +0000 Received: (at 77148) by debbugs.gnu.org; 21 Mar 2025 08:54:36 +0000 Received: from localhost ([127.0.0.1]:35056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tvY9E-00017X-2m for submit@debbugs.gnu.org; Fri, 21 Mar 2025 04:54:36 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:50510) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tvY8W-00011Y-1V for 77148@debbugs.gnu.org; Fri, 21 Mar 2025 04:53:54 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5e535e6739bso2718813a12.1 for <77148@debbugs.gnu.org>; Fri, 21 Mar 2025 01:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742547226; x=1743152026; 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=9+381lkr/m2fK/me/mA14S40l9E6BpapMyQXWw3aJks=; b=bkVVMApMe+5Z1nupmSoKLmuea/QKHm/J9GqK16x5N+JZ/CWAHC4YZHzYbKu43U6DTc 2ESrLPOIiedFdcdTN0yBaJQewqQVAWhu/sB5ivdGWHP4g99US8kvi0iIEpgesWe5gZGc rD+r9Am1Pk+K5VC3dBFfX7SFFFYPylXJEenZYR7fYkjIriQVVsrmo6TQAOIbZZOyaeju L2RrOClyp2Ei8sQvvt3teX4K1RUTqZwa/dx2EfcT5KVinDSq0oQfvjsQviziG1c0wB87 yLYzB9aOHCMItRqMt/+G4jYOezzOi1dqhr5/2lLH0ROTFG9BloBfYPKCGhk0rbCecfvV icDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742547226; x=1743152026; 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=9+381lkr/m2fK/me/mA14S40l9E6BpapMyQXWw3aJks=; b=LwF5GWCiagTcwjStfyV9HS1+iB/BdWjzoElGUZ723nUZFxjajHpmnijuEC99IJ4TiK CtEaD4rTgQK+KX6tPAGdDJ/zFy/PwjzlRzPn4dmwgllfqjc50Smh0GtfCvt5AKiLhxMH HtvWcA1ZoOJ++QF93L3swpfkYddkF38ViXheKN93VXoCRrxC3y3yfwEEdIhsbbkXk05J siECfJL0LH2HRIyW95AbAMtRxcdODg9ZXR8L/nugrJI6TYt0QJ2mlWDdBNF6GrwWdpXE CIEQAguOv13AneuLjFpfp8zrNP6pciILVGuvh1u8TewSXdUW8g0GWkznc9q5gIdJXkmt zzPQ== X-Gm-Message-State: AOJu0Ywsx5LHVR68sPre8KiQsHGmvt0DwZdY/2RjCS8i2fJmvjYxeiry DpYzBEd+3egKjqS/yVfLCkwCWL3gySi2+SDcRidcosM/ARtPnwsBFjMley9w X-Gm-Gg: ASbGnctu4JyXnNfTmjjPDHV8yS8TBqzUTkQLif/JAxLP86OaSga+rXYnw8uMHv3rLw4 cbFAG+7cxsN5TR9MIcNOddLJJoxvcxLxYOmZP6jSwP6QqC1xOopXNF1er8ILppE5B0YRu8/vctf 7QdR2sAvDn38bNcBB4dqqwLiRvDfiifCEFHMPfNm7JUkXts2wffHIzo0EDUXqAAFnW9A9Q4lI9e lXz7w0C15XiGG1IPd/I0FVdilraRnK6/E9KBci/8hvUuDFWLHZkkJJVlKlpDM/MpAJ7U9ntF41e EshjbmPs4z2kaQp2E/bcFRArBFtVb5I5sQZzzCOJhHw8XNmV X-Google-Smtp-Source: AGHT+IF+dKfwYAjglEtMz1QnRHdGbcUnTxLrV12p5lComR32b53bbeLvC+pKA+GJIYSQAM/aTvzAdA== X-Received: by 2002:a05:6402:5211:b0:5e7:b02b:6430 with SMTP id 4fb4d7f45d1cf-5ebcd4f0dcemr1908575a12.23.1742547225554; Fri, 21 Mar 2025 01:53:45 -0700 (PDT) Received: from localhost ([31.210.181.32]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ebccf87341sm994326a12.26.2025.03.21.01.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 01:53:45 -0700 (PDT) From: Efraim Flashner Date: Fri, 21 Mar 2025 10:53:10 +0200 Message-ID: <78e614438f4b7e4f07be2b764eeb71d41875607e.1742546953.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.48.1 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-loongarch64): New variable. (make-ovmf-firmware)[arguments]: Adjust the 'build phase to add a case for loongarch64. Change-Id: Ibb916b50fd3dc7831ac895cb8b59695688750377 --- gnu/packages/firmware.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index fe2956fbfdf..6f784a281d3 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1090,6 +1090,8 @@ (define* (make-ovmf-firmware arch) "ArmVirtPkg/ArmVirtQemu.dsc") ("riscv64" "OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc") + ("loongarch64" + "OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc") (_ #t))))) (add-before 'install 'install-efi-shell (lambda _ @@ -1247,6 +1249,25 @@ (define-public ovmf-riscv64 (install-file "RISCV_VIRT_CODE.fd" fmw) (install-file "RISCV_VIRT_VARS.fd" fmw)))))))))))) +(define-public ovmf-loongarch64 + (let ((base (make-ovmf-firmware "loongarch64"))) + (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) + (with-directory-excursion "Build/LoongArchVirtQemu/RELEASE_GCC/FV" + ;; Make the files the desired length and then install them + (truncate-file "QEMU_EFI.fd" (* 16 1024 1024)) + (truncate-file "QEMU_VARS.fd" (* 16 1024 1024)) + (install-file "QEMU_EFI.fd" fmw) + (install-file "QEMU_VARS.fd" fmw)))))))))))) + (define-public ovmf (deprecated-package "ovmf" ovmf-x86-64))