From nobody Tue Jan 21 04:04:50 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 1737364634811917.6337795609745; Mon, 20 Jan 2025 01:17:14 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 2E7C01929; Mon, 20 Jan 2025 04:17:14 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 72F3518D2; Mon, 20 Jan 2025 04:16:57 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8B3C81770; Mon, 20 Jan 2025 04:16:54 -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 0A160BD4 for ; Mon, 20 Jan 2025 04:16:54 -0500 (EST) Received: from mx-prod-mc-03.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-418-LtTLivIMOwaS6WePKLmqHA-1; Mon, 20 Jan 2025 04:16:51 -0500 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AC26119560BB for ; Mon, 20 Jan 2025 09:16:50 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.45.225.119]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B966619560BF for ; Mon, 20 Jan 2025 09:16:49 +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=1737364613; 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; bh=L2jnC9O+cnnoQjxfMhgriwaAdJ+tVBDVfR39SW7uyJ4=; b=MqHzUX93+XuFjH2VFWiwN0ufyVUs8oKB4U02+2QXJ9H5oKs5Jnhr0PQGjmw6snyMno7eIz wpj4wMb+pcoHQgo1w2SQJMBHD0fwiNylTtXFkZ9yxjGabTDcYxe1vfDMhawe2Phyx4rw8B Vjo95k/TPCxfUN2aE9kb1WysGjtMR7k= X-MC-Unique: LtTLivIMOwaS6WePKLmqHA-1 X-Mimecast-MFC-AGG-ID: LtTLivIMOwaS6WePKLmqHA From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: devel@lists.libvirt.org Subject: [libvirt PATCH] meson: error out when ch driver is requested but unsupported Date: Mon, 20 Jan 2025 10:16:25 +0100 Message-ID: <6c395a22ac6fd76dd3580b22b01e66bc433fa140.1737364585.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: VteyH2a4syjgsUN9gEkVAmVUfUojI1vYsin68VsnJLE_1737364610 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: CGM2UKBW4L74M2KYSLFJJTIMZPECPD4P X-Message-ID-Hash: CGM2UKBW4L74M2KYSLFJJTIMZPECPD4P 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: 1737364637061019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: J=C3=A1n Tomko Reviewed-by: Daniel P. Berrang=C3=A9 --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 16ec3ba7e2..326d9dd0f9 100644 --- a/meson.build +++ b/meson.build @@ -1582,8 +1582,12 @@ 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 + elif get_option('driver_ch').enabled() + error('linux on x86_64 or aarch64 is required to build Cloud-Hyperviso= r driver') + endif =20 if not conf.has('WITH_LIBVIRTD') use_ch =3D false --=20 2.47.0