From nobody Tue Feb 10 17:31:24 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=1693297908; cv=none; d=zohomail.com; s=zohoarc; b=DGMaryY1zEvSAVpLKHOWR5k6+LTiPk6Gx2CdC++vAQFEyFnncLqd5mrmMEJndUbuWlTaoZL8eRs4u5M/eJ6FglVgxQO+129vcNf7mUBuKAmdN1Qr/RN45Z66+wv0WPZAxCp8AARd+umo7iF9WNGIiK3fqaTbRl6Jpv8JxbD73Yo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693297908; 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=eSilZNN6uj3wE/WzxkcCaM21pA6e5Kt5kHbPfdJ/n44=; b=kJXG0nxPJky1vebuHHo0vYk69tGI0E+tobIEUk2AGQds+bIjvLrVaCKTJzH+MiklrSbCP2LnRSAjB2j7dJUycOZx+3QJTacfzLAqtZAfbYE8GzlleCuF70A1ZzAfI3aKxJVW+bMcr8X8M1lFOBErFFYRg1/ju8HwtVcsSQGm9pE= 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 1693297908632823.6977591798658; Tue, 29 Aug 2023 01:31:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qau76-0002vJ-7t; Tue, 29 Aug 2023 04:30:16 -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 1qau6j-0002kM-Da for qemu-devel@nongnu.org; Tue, 29 Aug 2023 04:29:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qau6g-0008Tk-9t for qemu-devel@nongnu.org; Tue, 29 Aug 2023 04:29:52 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-517-Mk2XbxmfNCyBcHWZNPoQDA-1; Tue, 29 Aug 2023 04:29:47 -0400 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3fee703462dso31861635e9.2 for ; Tue, 29 Aug 2023 01:29:47 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.gmail.com with ESMTPSA id t16-20020a7bc3d0000000b00401c9228bf7sm6705964wmj.18.2023.08.29.01.29.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 01:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693297789; 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=eSilZNN6uj3wE/WzxkcCaM21pA6e5Kt5kHbPfdJ/n44=; b=OMZsR3uhEV3kgRAXDHvYL7uGHSL6wQCb6H6a3wQTIOfQNvMQnUqilTp0lUfV+wPtr1cpOg OJ2NbcfeYOgKzlvbpoRfx9aaYb8Lh+CKVwuQqhXOiSWJx8meJDHXZKk4qCTsxC8V2nL/32 kS7Yj2sJtctSN2VThWoc9n6hxS3LE50= X-MC-Unique: Mk2XbxmfNCyBcHWZNPoQDA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693297786; x=1693902586; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eSilZNN6uj3wE/WzxkcCaM21pA6e5Kt5kHbPfdJ/n44=; b=io3yEytONS66Xi6P1u+oTqcgJ3D5l2V7TjuaLtZbg4AvHwjgsn2A8eW16NYEpezhTu nrSYPp2MmiVwFDl5fUpARFj7w1etud4bNMV8sGNs91BAX1Fa5MB07Q2A1HOCNcvNjWIc 39Efc0LJ1N9Tun+pGFVXo2fyjec+XGaJ6dAGvwqkr7dX4z8iH6KY0aIB+n7I9tLyTDyx HDwYnKTY9czAJnaBHg7EHQW/f5Y3F9LFZuxgRsXL2CpxnaiaIxhShyQpHE+L1NyRIPs2 2fZa/2lrL3VGt+QHEOzuGuVYR82cxSHPsSgX4+b1tUSU3C4a3TEsUmhCbNuLGQHPs1DP Pi7Q== X-Gm-Message-State: AOJu0Yzb5YNPoQkJ0WXYYUTOmHuehqbIhQ55DzoNnQHCOpJES3ErSlpD +COVrgkkuPrzlRJYbUvT0phV1EeNNRBARZrcYNpziyy0wIPg2Q/rkI8OMMkH0vhFKSyT+zVMrWO yuM6n1nQSM3Hq2xnLTfOnSSoyEUm8c3T0LEIL6S6Cn8oQb6mvQSRP0wiBRB1s6VrdtlOBr/5BVZ I= X-Received: by 2002:a1c:7302:0:b0:3fe:c7fe:206e with SMTP id d2-20020a1c7302000000b003fec7fe206emr21094133wmb.16.1693297785890; Tue, 29 Aug 2023 01:29:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERnp9Q8TnSzfYmV2yDL1jeeDLexLR6ugT/mo/T19iJQp9ajjK6JvxpO2BvCTnjG0oPgqZP/A== X-Received: by 2002:a1c:7302:0:b0:3fe:c7fe:206e with SMTP id d2-20020a1c7302000000b003fec7fe206emr21094110wmb.16.1693297785519; Tue, 29 Aug 2023 01:29:45 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 07/10] meson: do not use config_host to pick tap implementations Date: Tue, 29 Aug 2023 10:29:28 +0200 Message-ID: <20230829082931.67601-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230829082931.67601-1-pbonzini@redhat.com> References: <20230829082931.67601-1-pbonzini@redhat.com> MIME-Version: 1.0 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.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.29 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693297910877100007 Content-Type: text/plain; charset="utf-8" The target OS is invariant and does not depend on the configuration, so move away from config_host and just use unconditional rules in softmmu_ss. Signed-off-by: Paolo Bonzini Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- net/meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/net/meson.build b/net/meson.build index bdf564a57b2..d2d70634e5e 100644 --- a/net/meson.build +++ b/net/meson.build @@ -41,15 +41,17 @@ if have_vhost_net_user system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c')) endif =20 -system_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c')) -system_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c')) -system_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c')) -tap_posix =3D ['tap.c'] -if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CO= NFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS') - tap_posix +=3D 'tap-stub.c' +if targetos =3D=3D 'windows' + system_ss.add(files('tap-win32.c')) +elif targetos =3D=3D 'linux' + system_ss.add(files('tap.c', 'tap-linux.c')) +elif targetos in bsd_oses + system_ss.add(files('tap.c', 'tap-bsd.c')) +elif targetos =3D=3D 'solaris' + system_ss.add(files('tap.c', 'tap-solaris.c')) +else + system_ss.add(files('tap.c', 'tap-stub.c')) endif -system_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix)) -system_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c')) if have_vhost_net_vdpa system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'),= if_false: files('vhost-vdpa-stub.c')) system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c')) --=20 2.41.0