From nobody Tue Jan 21 07:29:30 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1737395519117374.042813426356; Mon, 20 Jan 2025 09:51:59 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 892B11A46; Mon, 20 Jan 2025 12:51:58 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id C5D761814; Mon, 20 Jan 2025 12:51:26 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 822FE17FF; Mon, 20 Jan 2025 12:51:22 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 063171755 for ; Mon, 20 Jan 2025 12:51:22 -0500 (EST) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-306-MSekiaSsM-iIyI5jf_mq4A-1; Mon, 20 Jan 2025 12:51:20 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6CAA91955F69 for ; Mon, 20 Jan 2025 17:51:19 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.224.56]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9354B19560A3 for ; Mon, 20 Jan 2025 17:51:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737395481; 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=9rhhoL/fqK1OE9EBLShZkAkoaY6CKIlRc6h/m6rYczk=; b=Up4Xj7/caLQYr83l7rZXnwWq2GGGEL0Iq/HGucyCcWk7ks5IuSuncPBzTU5nqSi+tPPNzM HFwTgdVKyefYAroyLzsuYqulxNtTibxRgSJGgWwr2Z6HTq3h2yYwJSRGx1vx0hMH91I9cL 1LhNDN3KuMEYhdZ/FMCgmbodbVb6Q/A= X-MC-Unique: MSekiaSsM-iIyI5jf_mq4A-1 X-Mimecast-MFC-AGG-ID: MSekiaSsM-iIyI5jf_mq4A From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: devel@lists.libvirt.org Subject: [libvirt PATCH v2 1/2] meson: error out when ch driver is requested but unsupported Date: Mon, 20 Jan 2025 18:49:49 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: CGISuNGnLbPBWSw7Ns5p41xdAr-_LkjSjuvGSuAXUpI_1737395479 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: NOZJVYNPHMHYMHM3P7HU67ACDR5ZGWMH X-Message-ID-Hash: NOZJVYNPHMHYMHM3P7HU67ACDR5ZGWMH X-MailFrom: jtomko@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1737395521393019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: J=C3=A1n Tomko --- meson.build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 16ec3ba7e2..1b0b717901 100644 --- a/meson.build +++ b/meson.build @@ -1582,8 +1582,15 @@ elif get_option('driver_lxc').enabled() error('linux and remote_driver are required for LXC') endif =20 -if not get_option('driver_ch').disabled() and host_machine.system() =3D=3D= 'linux' and (host_machine.cpu_family() =3D=3D 'x86_64' or host_machine.cpu= _family() =3D=3D 'aarch64') - use_ch =3D true +if not get_option('driver_ch').disabled() + if host_machine.system() =3D=3D 'linux' and (host_machine.cpu_family() = =3D=3D 'x86_64' or host_machine.cpu_family() =3D=3D 'aarch64') + use_ch =3D true + else + use_ch =3D false + if get_option('driver_ch').enabled() + error('linux on x86_64 or aarch64 is required to build Cloud-Hypervi= sor driver') + endif + endif =20 if not conf.has('WITH_LIBVIRTD') use_ch =3D false --=20 2.47.0