From nobody Tue Feb 10 01:32:59 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1632676780; cv=none; d=zohomail.com; s=zohoarc; b=Z8X0gtv4ikT3qV71CXGC9CGiQuY4uikzz4Rat5q0TYjbODBgYYGPDN02mOlfNkN+k4fHM3jAtoixyxdB878YBtwPJgPMowjQI4FOJ87A+TueHZcHGMq0Q02KvhCfekX0PzX6c6iFmRnBpr3RX8tjPXEtwBLq2hZ2v4Av2c/Neec= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632676780; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+i13rroVt2rgTtpIwdEPcYoWwRTUa4fiMBkYqwvyWf8=; b=TtXX+u717GceR0qfP2oemuj1+fOCEo+nr2kzT5WVKrjCu7cJKyfgLeh9PJNmlfxYtkfVkbcg62IgkYkpL3MpcxaY+UwZj9SIKZMMeVmYQPHzKB6DFxikYLWd0o3PXWg+FeKM3gm9wbuJy7ee6pH5iq8N8dFJP2FWLo9QvGUXJtU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1632676780421248.3779850115186; Sun, 26 Sep 2021 10:19:40 -0700 (PDT) Received: from localhost ([::1]:53520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUXoR-0006qg-Fw for importer@patchew.org; Sun, 26 Sep 2021 13:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUXmF-0004k1-0N for qemu-devel@nongnu.org; Sun, 26 Sep 2021 13:17:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:27330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUXm9-00083K-SY for qemu-devel@nongnu.org; Sun, 26 Sep 2021 13:17:22 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-342-U70WeWJKOfWNS6Jj0htP9w-1; Sun, 26 Sep 2021 13:17:15 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF626362F8 for ; Sun, 26 Sep 2021 17:17:14 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9F8914180 for ; Sun, 26 Sep 2021 17:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632676637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+i13rroVt2rgTtpIwdEPcYoWwRTUa4fiMBkYqwvyWf8=; b=EgrSf53K/3bPKt/mBD8QUH1QypFx+ZS82bAiddUASw12vmMiH+ZL3tsgHUkCFnxqkh28D6 LDnSOSNFKRKlonpFUnmRpfZudWJDzB2Lk7ZEr6TPPq+1xht4CgAoio+HKhCZYnlWPw6JbC EELOZvEywd8KZkfu+WLfmS+k6A4oOWw= X-MC-Unique: U70WeWJKOfWNS6Jj0htP9w-1 From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL v2 4/5] meson: unpack edk2 firmware even if --disable-blobs Date: Sun, 26 Sep 2021 13:17:07 -0400 Message-Id: <20210926171708.455435-5-pbonzini@redhat.com> In-Reply-To: <20210926171708.455435-1-pbonzini@redhat.com> References: <20210926171708.455435-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1632676782370100001 Content-Type: text/plain; charset="utf-8" The edk2 firmware blobs are needed to run bios-tables-test. Unpack them if any UEFI-enabled target is selected, so that the test can run. This is a bit more than is actually necessary, since bios-tables-test does not run for all UEFI-enabled targets, but it is the easiest way to write this logic. Signed-off-by: Paolo Bonzini --- meson.build | 16 ++++++++-------- pc-bios/descriptors/meson.build | 4 ++-- pc-bios/meson.build | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/meson.build b/meson.build index 3945a6cc2d..e4bd1f9a5b 100644 --- a/meson.build +++ b/meson.build @@ -95,14 +95,14 @@ if targetos !=3D 'darwin' endif =20 edk2_targets =3D [ 'arm-softmmu', 'aarch64-softmmu', 'i386-softmmu', 'x86_= 64-softmmu' ] -install_edk2_blobs =3D false -if get_option('install_blobs') - foreach target : target_dirs - install_edk2_blobs =3D install_edk2_blobs or target in edk2_targets - endforeach -endif - -bzip2 =3D find_program('bzip2', required: install_edk2_blobs) +unpack_edk2_blobs =3D false +foreach target : edk2_targets + if target in target_dirs + bzip2 =3D find_program('bzip2', required: get_option('install_blobs')) + unpack_edk2_blobs =3D bzip2.found() + break + endif +endforeach =20 ################## # Compiler flags # diff --git a/pc-bios/descriptors/meson.build b/pc-bios/descriptors/meson.bu= ild index 29efa16d99..66f85d01c4 100644 --- a/pc-bios/descriptors/meson.build +++ b/pc-bios/descriptors/meson.build @@ -1,4 +1,4 @@ -if install_edk2_blobs +if unpack_edk2_blobs and get_option('install_blobs') foreach f: [ '50-edk2-i386-secure.json', '50-edk2-x86_64-secure.json', @@ -10,7 +10,7 @@ if install_edk2_blobs configure_file(input: files(f), output: f, configuration: {'DATADIR': get_option('prefix') / qemu_= datadir}, - install: get_option('install_blobs'), + install: true, install_dir: qemu_datadir / 'firmware') endforeach endif diff --git a/pc-bios/meson.build b/pc-bios/meson.build index f2b32598af..a3b3d87891 100644 --- a/pc-bios/meson.build +++ b/pc-bios/meson.build @@ -1,4 +1,4 @@ -if install_edk2_blobs +if unpack_edk2_blobs fds =3D [ 'edk2-aarch64-code.fd', 'edk2-arm-code.fd', --=20 2.27.0