From nobody Sun Feb 8 21:27:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555594806; cv=none; d=zoho.com; s=zohoarc; b=Ch935ASPE8Kf9+IYeotMiZ9pMEA/RZg6kyNUTjrvmxjRPUAeSiV1wmFjMMmoOHJi/VAcz8DInpqt/tqv7kUS0O8mdopdNl5Mop1n/T/GfX0lTl9vogM7MUwpK2vnnIwLcqpCgvab29NhShSd2Fx5ByAeScYV+ii4LmpJwanRfGI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555594806; 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:ARC-Authentication-Results; bh=yKeqSXYMMwakORdx8BCJyBaLuDD81BdpJr4puW9AwrY=; b=Q1x7y3CCAcm2Y6xEk0DvzHQ4y6g/Ft4yaYxCooa73mwXFzJQEaHV/+LBuvbUGKm7c5QEb7qPwe/hK0EAUXpVYG4BUZEPpOhUio/ilrr8ko29HZE1Tzv+Nmc44Rf2E06OpBQ5n7vuO1pWAjXm1jBl4PeKRAsxcC9u9g/IURBGP1E= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555594806849237.34193150261171; Thu, 18 Apr 2019 06:40:06 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8DD0EC067C0A; Thu, 18 Apr 2019 13:39:59 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BB7BA5C206; Thu, 18 Apr 2019 13:39:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7C1743FB13; Thu, 18 Apr 2019 13:39:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3IDdml0005608 for ; Thu, 18 Apr 2019 09:39:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id 985516014E; Thu, 18 Apr 2019 13:39:48 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-59.ams2.redhat.com [10.36.112.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id D808B600C1; Thu, 18 Apr 2019 13:39:47 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Thu, 18 Apr 2019 14:39:40 +0100 Message-Id: <20190418133942.8551-2-berrange@redhat.com> In-Reply-To: <20190418133942.8551-1-berrange@redhat.com> References: <20190418133942.8551-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/3] m4: allow default firmware list to be empty X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 18 Apr 2019 13:40:05 +0000 (UTC) Currently behaviour of --with-loader-nvram is as follows * No arg given -> use built-in default * --with-loader-nvram=3DSTRING -> use STRING instead of built-in default * --with-loader-nvram=3D -> use built-in default * --without-loader-nvram -> use built-in default IOW, there is no way to disable the built-in default. We thus change the behaviour to * No arg given -> use built-in default * --with-loader-nvram=3DSTRING -> use STRING instead of built-in default * --with-loader-nvram=3D -> disable built-in default * --without-loader-nvram -> disable built-in default Signed-off-by: Daniel P. Berrang=C3=A9 --- m4/virt-loader-nvram.m4 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/m4/virt-loader-nvram.m4 b/m4/virt-loader-nvram.m4 index 0eb77fa923..9089a16f82 100644 --- a/m4/virt-loader-nvram.m4 +++ b/m4/virt-loader-nvram.m4 @@ -21,15 +21,19 @@ AC_DEFUN([LIBVIRT_ARG_LOADER_NVRAM], [ LIBVIRT_ARG_WITH([LOADER_NVRAM], [Pass list of pairs of : paths. Both pairs and list items are separated by a colon.], - ['']) + ['builtin']) ]) =20 AC_DEFUN([LIBVIRT_CHECK_LOADER_NVRAM], [ - if test "x$with_loader_nvram" !=3D "xno" && \ - test "x$with_loader_nvram" !=3D "x" ; then - l=3D$(echo $with_loader_nvram | tr ':' '\n' | wc -l) - if test $(expr $l % 2) -ne 0 ; then - AC_MSG_ERROR([Malformed --with-loader-nvram argument]) + if test "x$with_loader_nvram" !=3D "xbuiltin" ; then + if test "x$with_loader_nvram" =3D "xno" ; then + with_loader_nvram=3D + fi + if test "x$with_loader_nvram" !=3D "x" ; then + l=3D$(echo $with_loader_nvram | tr ':' '\n' | wc -l) + if test $(expr $l % 2) -ne 0 ; then + AC_MSG_ERROR([Malformed --with-loader-nvram argument string '$with= _loader_nvram']) + fi fi AC_DEFINE_UNQUOTED([DEFAULT_LOADER_NVRAM], ["$with_loader_nvram"], [List of loader:nvram pairs]) --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list