From nobody Wed Nov 27 00:30:19 2024 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=1703179315; cv=none; d=zohomail.com; s=zohoarc; b=LVVBaIaV2vB5Hl6mqONfhFLbVlS2YSUZ3iPu9NM+Bvo2FngP1wRUlENr39LjAsUvSlkokqjfIXGv71Hkr1RtpXl6XUbbqH3l0vQ3H/5vSu9bCO5Dhh27NgRUPH9XZOzElkWog16KY5aadzddMwsSi3aIVt25XpqqsK5o1FhUrrk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703179315; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=gTLf0x62GiI5BxwPBdezIXmvFXtexutkeWtRBMmG4JA=; b=E//KD2ksl7gxL9pH7qLZDALbGaPfN2oXgTdTgC00/tLyPrzWNvehjd4LwopW5i2fCu2wgkwoW7BT65XqHivBk+07FAIqQFCXm7GK4KoISsdFsKN+6HKhAlXJ3dHghOBKQPo838FxA4tLfWk7dlFp2iSqzMlcUV83B5MfS8skJaE= 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 1703179315581304.9923420163508; Thu, 21 Dec 2023 09:21:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGMih-0007ac-BR; Thu, 21 Dec 2023 12:20:27 -0500 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 1rGMif-0007aO-EB for qemu-devel@nongnu.org; Thu, 21 Dec 2023 12:20:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGMid-0004V1-HR for qemu-devel@nongnu.org; Thu, 21 Dec 2023 12:20:25 -0500 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-iZ0TaIJMPtOgwaxiEoSUNA-1; Thu, 21 Dec 2023 12:20:21 -0500 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-3368abe10c5so474613f8f.0 for ; Thu, 21 Dec 2023 09:20:20 -0800 (PST) Received: from [192.168.10.118] ([2001:b07:6468:f312:4783:a68:c1ee:15c5]) by smtp.gmail.com with ESMTPSA id e4-20020a5d6d04000000b003367433118bsm2474452wrq.78.2023.12.21.09.20.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 09:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703179222; 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=gTLf0x62GiI5BxwPBdezIXmvFXtexutkeWtRBMmG4JA=; b=IJN4zIxeNpbyGTa3XDckYNfjBeaewjvVkmZt1YW3qRztrdZ1T11pnNs9G5PyX3vvQEBh8E 2DlfdGb9vGELrFZ6pLNqV0ACVZmdeyXLjVqcezxEfGaN1BVXyE/UaJOSJ5jxOvlRQ4bs/K uUS7/XFDRjFs7O06UR9WSzt8fWUCw6U= X-MC-Unique: iZ0TaIJMPtOgwaxiEoSUNA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703179219; x=1703784019; 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=gTLf0x62GiI5BxwPBdezIXmvFXtexutkeWtRBMmG4JA=; b=BgzK33imWZ25QQHK9Sv4RUI7giQLqbdwxyk07EIURQYScAfqYGqc2cM266Aw4LANWS 3tH2nrG4bQ57XnmaOxGmoUSEghytaVCRluDj9d/O8nmm01lqhbm0+lvd/k8GoC+xWkxT T3JaUQ/0i1HU5i4r50jQdMdqKoTWVDEQMRYvuKulAE0PkxUO8JYTE2nmbCgxaPUslh3h K1Aamgqk6UdjRwi7HavLbgAbn4VXbgwZJ6oBmnldpF7YWA2wbBAXC3zbvMSTua4SE/MC rmMKOf25X47gHIaMtmCHpqcGlcghPRHdULYxwGYJY7j9Ev6P436Bm8OK7a3RBfiwn+Wh 9r1Q== X-Gm-Message-State: AOJu0YywL+yhn5BjaMoZTfWxDnGbXIwNOr5LpSmjhtGjp14UTJBgt5kZ 37h5+UJWfyaOGWSq8NpWiefodHA+4DREo/3lV7Fa9siRWgaMtZC0+GSnFyGYdkw2u8ZGODOLbCS VeW6wlPnvEnpZWtDYu09FcuX/7IcbHEvyd0K4l/PzuVpWGe3GBROw/4zC6B+SfyFBt5WGNxydLo WSGmV1T3M= X-Received: by 2002:adf:ed46:0:b0:336:841c:c358 with SMTP id u6-20020adfed46000000b00336841cc358mr42785wro.155.1703179219535; Thu, 21 Dec 2023 09:20:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHE/LMW6oTzMZc1EnwJMYW/1RsxXDrQE+LEM6s4PDlQ846WtjBU2cKdo3ZW7n2HcFRQ7aJx9g== X-Received: by 2002:adf:ed46:0:b0:336:841c:c358 with SMTP id u6-20020adfed46000000b00336841cc358mr42778wro.155.1703179219138; Thu, 21 Dec 2023 09:20:19 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 10/21] meson: remove config_targetos Date: Thu, 21 Dec 2023 18:19:47 +0100 Message-ID: <20231221171958.59350-11-pbonzini@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221171958.59350-1-pbonzini@redhat.com> References: <20231221171958.59350-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.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.061, 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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: 1703179317706100001 Content-Type: text/plain; charset="utf-8" config_targetos is now empty and can be removed; its use in sourcesets that do not involve target-specific files can be replaced with an empty dictionary. In fact, at this point *all* sourcesets that do not involve target-specific files are just glorified mutable arrays. Enforce that they never test for symbols in "when:" by computing the set of files without "strict: false". Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- chardev/meson.build | 2 +- gdbstub/meson.build | 4 ++-- meson.build | 24 ++++++++++-------------- qga/meson.build | 2 +- storage-daemon/meson.build | 2 +- tcg/meson.build | 2 +- tests/qtest/meson.build | 2 +- 7 files changed, 17 insertions(+), 21 deletions(-) diff --git a/chardev/meson.build b/chardev/meson.build index 9564ace868b..db6840b71af 100644 --- a/chardev/meson.build +++ b/chardev/meson.build @@ -28,7 +28,7 @@ else endif endif =20 -chardev_ss =3D chardev_ss.apply(config_targetos, strict: false) +chardev_ss =3D chardev_ss.apply({}) =20 system_ss.add(files( 'char-hmp-cmds.c', diff --git a/gdbstub/meson.build b/gdbstub/meson.build index e5bccba34e5..da5721d8452 100644 --- a/gdbstub/meson.build +++ b/gdbstub/meson.build @@ -14,8 +14,8 @@ gdb_system_ss =3D ss.source_set() gdb_user_ss.add(files('gdbstub.c', 'user.c')) gdb_system_ss.add(files('gdbstub.c', 'system.c')) =20 -gdb_user_ss =3D gdb_user_ss.apply(config_targetos, strict: false) -gdb_system_ss =3D gdb_system_ss.apply(config_targetos, strict: false) +gdb_user_ss =3D gdb_user_ss.apply({}) +gdb_system_ss =3D gdb_system_ss.apply({}) =20 libgdb_user =3D static_library('gdb_user', gdb_user_ss.sources() + genh, diff --git a/meson.build b/meson.build index 0a0c68050e7..48d619e0611 100644 --- a/meson.build +++ b/meson.build @@ -2840,7 +2840,6 @@ endif ######################## =20 minikconf =3D find_program('scripts/minikconf.py') -config_targetos =3D {} =20 config_all =3D {} config_all_devices =3D {} @@ -3039,7 +3038,6 @@ target_dirs =3D actual_target_dirs # pseudo symbol replaces it. =20 config_all +=3D config_all_devices -config_all +=3D config_targetos config_all +=3D config_all_disas config_all +=3D { 'CONFIG_XEN': xen.found(), @@ -3389,7 +3387,7 @@ if enable_modules modulecommon =3D declare_dependency(link_whole: libmodulecommon, compile= _args: '-DBUILD_DSO') endif =20 -qom_ss =3D qom_ss.apply(config_targetos, strict: false) +qom_ss =3D qom_ss.apply({}) libqom =3D static_library('qom', qom_ss.sources() + genh, dependencies: [qom_ss.dependencies()], name_suffix: 'fa', @@ -3404,10 +3402,10 @@ event_loop_base =3D static_library('event-loop-base= ', event_loop_base =3D declare_dependency(link_whole: event_loop_base, dependencies: [qom]) =20 -stub_ss =3D stub_ss.apply(config_all, strict: false) +stub_ss =3D stub_ss.apply({}) =20 util_ss.add_all(trace_ss) -util_ss =3D util_ss.apply(config_all, strict: false) +util_ss =3D util_ss.apply({}) libqemuutil =3D static_library('qemuutil', build_by_default: false, sources: util_ss.sources() + stub_ss.sources(= ) + genh, @@ -3570,7 +3568,6 @@ foreach d, list : target_modules foreach target : target_dirs if target.endswith('-softmmu') config_target =3D config_target_mak[target] - config_target +=3D config_targetos target_inc =3D [include_directories('target' / config_target['TA= RGET_BASE_ARCH'])] c_args =3D ['-DNEED_CPU_H', '-DCONFIG_TARGET=3D"@0@-config-target.h"'.format(targe= t), @@ -3631,7 +3628,7 @@ qemu_syms =3D custom_target('qemu.syms', output: 'qem= u.syms', capture: true, command: [undefsym, nm, '@INPUT@']) =20 -authz_ss =3D authz_ss.apply(config_targetos, strict: false) +authz_ss =3D authz_ss.apply({}) libauthz =3D static_library('authz', authz_ss.sources() + genh, dependencies: [authz_ss.dependencies()], name_suffix: 'fa', @@ -3640,7 +3637,7 @@ libauthz =3D static_library('authz', authz_ss.sources= () + genh, authz =3D declare_dependency(link_whole: libauthz, dependencies: qom) =20 -crypto_ss =3D crypto_ss.apply(config_targetos, strict: false) +crypto_ss =3D crypto_ss.apply({}) libcrypto =3D static_library('crypto', crypto_ss.sources() + genh, dependencies: [crypto_ss.dependencies()], name_suffix: 'fa', @@ -3649,7 +3646,7 @@ libcrypto =3D static_library('crypto', crypto_ss.sour= ces() + genh, crypto =3D declare_dependency(link_whole: libcrypto, dependencies: [authz, qom]) =20 -io_ss =3D io_ss.apply(config_targetos, strict: false) +io_ss =3D io_ss.apply({}) libio =3D static_library('io', io_ss.sources() + genh, dependencies: [io_ss.dependencies()], link_with: libqemuutil, @@ -3665,7 +3662,7 @@ migration =3D declare_dependency(link_with: libmigrat= ion, dependencies: [zlib, qom, io]) system_ss.add(migration) =20 -block_ss =3D block_ss.apply(config_targetos, strict: false) +block_ss =3D block_ss.apply({}) libblock =3D static_library('block', block_ss.sources() + genh, dependencies: block_ss.dependencies(), link_depends: block_syms, @@ -3676,7 +3673,7 @@ block =3D declare_dependency(link_whole: [libblock], link_args: '@block.syms', dependencies: [crypto, io]) =20 -blockdev_ss =3D blockdev_ss.apply(config_targetos, strict: false) +blockdev_ss =3D blockdev_ss.apply({}) libblockdev =3D static_library('blockdev', blockdev_ss.sources() + genh, dependencies: blockdev_ss.dependencies(), name_suffix: 'fa', @@ -3685,7 +3682,7 @@ libblockdev =3D static_library('blockdev', blockdev_s= s.sources() + genh, blockdev =3D declare_dependency(link_whole: [libblockdev], dependencies: [block, event_loop_base]) =20 -qmp_ss =3D qmp_ss.apply(config_targetos, strict: false) +qmp_ss =3D qmp_ss.apply({}) libqmp =3D static_library('qmp', qmp_ss.sources() + genh, dependencies: qmp_ss.dependencies(), name_suffix: 'fa', @@ -3700,7 +3697,7 @@ libchardev =3D static_library('chardev', chardev_ss.s= ources() + genh, =20 chardev =3D declare_dependency(link_whole: libchardev) =20 -hwcore_ss =3D hwcore_ss.apply(config_targetos, strict: false) +hwcore_ss =3D hwcore_ss.apply({}) libhwcore =3D static_library('hwcore', sources: hwcore_ss.sources() + genh, name_suffix: 'fa', build_by_default: false) @@ -3757,7 +3754,6 @@ foreach target : target_dirs '-DCONFIG_DEVICES=3D"@0@-config-devices.h"'.format(target)] link_args =3D emulator_link_args =20 - config_target +=3D config_targetos target_inc =3D [include_directories('target' / config_target['TARGET_BAS= E_ARCH'])] if targetos =3D=3D 'linux' target_inc +=3D include_directories('linux-headers', is_system: true) diff --git a/qga/meson.build b/qga/meson.build index 1113e7c7fae..66c0f1e56f8 100644 --- a/qga/meson.build +++ b/qga/meson.build @@ -87,7 +87,7 @@ else endif endif =20 -qga_ss =3D qga_ss.apply(config_targetos, strict: false) +qga_ss =3D qga_ss.apply({}) =20 gen_tlb =3D [] qga_libs =3D [] diff --git a/storage-daemon/meson.build b/storage-daemon/meson.build index 5e90cd32b40..46267b63e72 100644 --- a/storage-daemon/meson.build +++ b/storage-daemon/meson.build @@ -5,7 +5,7 @@ qsd_ss.add(blockdev, chardev, qmp, qom, qemuutil, gnutls) subdir('qapi') =20 if have_tools - qsd_ss =3D qsd_ss.apply(config_targetos, strict: false) + qsd_ss =3D qsd_ss.apply({}) qsd =3D executable('qemu-storage-daemon', qsd_ss.sources(), dependencies: qsd_ss.dependencies(), diff --git a/tcg/meson.build b/tcg/meson.build index 895a11d3fa2..5afdec1e1ae 100644 --- a/tcg/meson.build +++ b/tcg/meson.build @@ -22,7 +22,7 @@ if get_option('tcg_interpreter') tcg_ss.add(files('tci.c')) endif =20 -tcg_ss =3D tcg_ss.apply(config_targetos, strict: false) +tcg_ss =3D tcg_ss.apply({}) =20 libtcg_user =3D static_library('tcg_user', tcg_ss.sources() + genh, diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build index 47dabf91d04..40a8bb043e4 100644 --- a/tests/qtest/meson.build +++ b/tests/qtest/meson.build @@ -310,7 +310,7 @@ qtests =3D { 'ivshmem-test': [rt, '../../contrib/ivshmem-server/ivshmem-server.c'], 'migration-test': migration_files, 'pxe-test': files('boot-sector.c'), - 'qos-test': [chardev, io, qos_test_ss.apply(config_targetos, strict: fal= se).sources()], + 'qos-test': [chardev, io, qos_test_ss.apply({}).sources()], 'tpm-crb-swtpm-test': [io, tpmemu_files], 'tpm-crb-test': [io, tpmemu_files], 'tpm-tis-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'], --=20 2.43.0