From nobody Mon Feb 9 23:03:28 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1597686832; cv=none; d=zohomail.com; s=zohoarc; b=Huj8IaChTEmTerQvvcmgg3ARrwJA+hjd+LWybUaeaK0DWFwzSefBVEeOjq87OQi4kwjwpcaltlRxgRJCqXoTQtKlYFG1OBTbbJDr8jKYVizUWmiOyy6VZ+0PnmdNOLczReGznh3aCBpbVIhS1RG8RyFSNbCG7YQ/4n9Jm7TjIyI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597686832; h=Content-Type:Content-Transfer-Encoding:Cc: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=cvvT2/vw466fLHIR+D+5HdwpIyUGKe8k5YxqXSy62yI=; b=UqL+BeVWqArNofQD/3ciAxZbwSJcDSH3EQfN0fVgaUTDafXEuFFES6kQdw7K1vp3RRgOx2zo77g3YCiSrOxRWRvq3qcnrI9aWc5DsEN+wvbaTcX7iKngPvR15yDGo8L0JJwXqenfiUiU6YeA8Rb1dHOL3oZptmHZILtq7sPmOMo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1597686832819427.26659479676005; Mon, 17 Aug 2020 10:53:52 -0700 (PDT) Received: from localhost ([::1]:53454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7gkV-000750-H4 for importer@patchew.org; Mon, 17 Aug 2020 11:08:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gHZ-0005DD-3R for qemu-devel@nongnu.org; Mon, 17 Aug 2020 10:38:41 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7gHW-0006Eb-Cu for qemu-devel@nongnu.org; Mon, 17 Aug 2020 10:38:40 -0400 Received: by mail-wm1-x330.google.com with SMTP id k8so14102535wma.2 for ; Mon, 17 Aug 2020 07:38:37 -0700 (PDT) Received: from donizetti.redhat.com ([2001:b07:6468:f312:a0d1:fc42:c610:f977]) by smtp.gmail.com with ESMTPSA id i22sm34966603wrb.45.2020.08.17.07.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 07:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cvvT2/vw466fLHIR+D+5HdwpIyUGKe8k5YxqXSy62yI=; b=Rt71JZwECrVE04j9ayhj/2pg2s2bMFLDbKTpI8G2bvDz0/OE0rDolB0Y8KHY+XtwbM 3/MWS45rf2gd2PHHG6fjbl2tSJF7e+qZRNw+ut/GggRHwkUQEkpUd79V6EiO9tSgEyMi eHPuhBtRuvBoHY87fRdJLPnllw9sj2+z4opXdoixL5OCwb4X0cJkLwr+OuLyFHstCAMb CRi7rlqsx6693Tb2HtUO9tDL7YfeD7S0N10y/ISjhVwRuaMCpRcZcZcPg8APgYAqz5WU lIUp+UvmaK3o84jMvjpJdpKUy2RowdBSHsNym+9uODsqAmNshT6wEOf50HD4aAj6Mjpn 2E7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cvvT2/vw466fLHIR+D+5HdwpIyUGKe8k5YxqXSy62yI=; b=T58cOmzfFgq9p8K845m3Q1Ete+c6iyHi8PVr+UfpTvp8xiIHO3WBIwGX1erRgahanF iWY9A+n6kshda75xOLLuGOeQedBAXHsbXCNkijEy/QSK8dXh7pistw1lHtjOOxY3FWwd +55IjetLfgWLciZzFat4y/z9HMWQ4QabyDNLumwoALgSzgaadBkthajiEYMdPn9Ntoiz Eroj2gSC8ASf9m7ZNoldQXMNh7rmeXS1aKad08up2XURVWjmU/R/AD/wKGWM7JJlwCmG gMGED0YjAh43h1Dw01cR7HDDVitpbyIL4MkvEh3SimF1fVDQvE9rgtTOMKcuLNhDXtjt Rjmg== X-Gm-Message-State: AOAM532p8NGhcCZQTMwTkez5ns8/X8InUKr4kTXACr6Yr7WTekwuQOgS A8nP55TAISMKrKWRyNH4LOWXOduxiOY= X-Google-Smtp-Source: ABdhPJxZwphPDh2Z6u3wj+Kcb+9NAmXwMm/rWSFdK2722VgAzPrJG/r9TrHSMcOlXMSNfrwN0KMczg== X-Received: by 2002:a1c:e008:: with SMTP id x8mr14678369wmg.75.1597675116250; Mon, 17 Aug 2020 07:38:36 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 071/150] meson: convert root directory to Meson Date: Mon, 17 Aug 2020 16:36:04 +0200 Message-Id: <20200817143723.343284-72-pbonzini@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200817143723.343284-1-pbonzini@redhat.com> References: <20200817143723.343284-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::330; envelope-from=paolo.bonzini@gmail.com; helo=mail-wm1-x330.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 21 ++------------------- Makefile.target | 2 +- configure | 2 ++ meson.build | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 20 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 72e935023d..ec15ebc4b4 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -48,16 +48,9 @@ storage-daemon-obj-$(CONFIG_POSIX) +=3D os-posix.o # single QEMU executable should support all CPUs and machines. =20 ifeq ($(CONFIG_SOFTMMU),y) -common-obj-y =3D blockdev.o blockdev-nbd.o -common-obj-y +=3D bootdevice.o iothread.o -common-obj-y +=3D dump/ -common-obj-y +=3D job-qmp.o +common-obj-y =3D dump/ common-obj-y +=3D monitor/ common-obj-y +=3D net/ -common-obj-y +=3D qdev-monitor.o -common-obj-$(CONFIG_WIN32) +=3D os-win32.o -common-obj-$(CONFIG_POSIX) +=3D os-posix.o - common-obj-$(CONFIG_LINUX) +=3D fsdev/ =20 common-obj-y +=3D accel/ @@ -87,25 +80,15 @@ common-obj-y +=3D hw/ common-obj-m +=3D hw/ =20 common-obj-y +=3D replay/ - -common-obj-y +=3D dma-helpers.o -common-obj-$(CONFIG_TPM) +=3D tpm.o - common-obj-y +=3D backends/ =20 -common-obj-$(CONFIG_SECCOMP) +=3D qemu-seccomp.o -qemu-seccomp.o-cflags :=3D $(SECCOMP_CFLAGS) -qemu-seccomp.o-libs :=3D $(SECCOMP_LIBS) - -common-obj-$(CONFIG_FDT) +=3D device_tree.o - common-obj-y +=3D qapi/ =20 endif # CONFIG_SOFTMMU =20 ####################################################################### # Target-independent parts used in system and user emulation -common-obj-y +=3D cpus-common.o + common-obj-y +=3D hw/ common-obj-y +=3D qom/ common-obj-y +=3D disas/ diff --git a/Makefile.target b/Makefile.target index 16f1e781e9..5f926e5bfa 100644 --- a/Makefile.target +++ b/Makefile.target @@ -169,7 +169,7 @@ ifneq ($(CONFIG_MODULES),y) LIBS :=3D $(LIBS) $(ALSA_LIBS) $(OSS_LIBS) $(PULSE_LIBS) $(SDL_LIBS) LIBS :=3D $(LIBS) $(GTK_LIBS) $(VTE_LIBS) $(X11_LIBS) $(CURSES_LIBS) $(ICO= NV_LIBS) $(GIO_LIBS) endif -LIBS :=3D $(LIBS) $(BRLAPI_LIBS) $(SDL_LIBS) $(SPICE_LIBS) $(OPENGL_LIBS) +LIBS :=3D $(LIBS) $(BRLAPI_LIBS) $(SDL_LIBS) $(SPICE_LIBS) $(OPENGL_LIBS) = $(SECCOMP_LIBS) LIBS :=3D $(LIBS) $(COREAUDIO_LIBS) $(DSOUND_LIBS) =20 # Hardware support diff --git a/configure b/configure index 9ff9502621..8711e33f21 100755 --- a/configure +++ b/configure @@ -7331,6 +7331,8 @@ if test "$preadv" =3D "yes" ; then fi if test "$fdt" !=3D "no" ; then echo "CONFIG_FDT=3Dy" >> $config_host_mak + echo "FDT_CFLAGS=3D$fdt_cflags" >> $config_host_mak + echo "FDT_LIBS=3D$fdt_ldflags $fdt_libs" >> $config_host_mak fi if test "$membarrier" =3D "yes" ; then echo "CONFIG_MEMBARRIER=3Dy" >> $config_host_mak diff --git a/meson.build b/meson.build index 899826f611..a9e52e56c7 100644 --- a/meson.build +++ b/meson.build @@ -47,6 +47,7 @@ targetos =3D host_machine.system() =20 m =3D cc.find_library('m', required: false) util =3D cc.find_library('util', required: false) +winmm =3D [] socket =3D [] version_res =3D [] coref =3D [] @@ -55,6 +56,7 @@ cocoa =3D [] hvf =3D [] if host_machine.system() =3D=3D 'windows' socket =3D cc.find_library('ws2_32') + winmm =3D cc.find_library('winmm') =20 win =3D import('windows') version_res =3D win.compile_resources('version.rc', @@ -289,6 +291,11 @@ if 'CONFIG_VNC_SASL' in config_host sasl =3D declare_dependency(compile_args: config_host['SASL_CFLAGS'].spl= it(), link_args: config_host['SASL_LIBS'].split()) endif +fdt =3D not_found +if 'CONFIG_FDT' in config_host + fdt =3D declare_dependency(compile_args: config_host['FDT_CFLAGS'].split= (), + link_args: config_host['FDT_LIBS'].split()) +endif =20 create_config =3D find_program('scripts/create_config') minikconf =3D find_program('scripts/minikconf.py') @@ -455,6 +462,7 @@ util_ss =3D ss.source_set() stub_ss =3D ss.source_set() trace_ss =3D ss.source_set() block_ss =3D ss.source_set() +blockdev_ss =3D ss.source_set() common_ss =3D ss.source_set() softmmu_ss =3D ss.source_set() user_ss =3D ss.source_set() @@ -608,6 +616,31 @@ subdir('nbd') subdir('scsi') subdir('block') =20 +blockdev_ss.add(files( + 'blockdev.c', + 'blockdev-nbd.c', + 'iothread.c', + 'job-qmp.c', +), sdl) + +# os-posix.c contains POSIX-specific functions used by qemu-storage-daemon, +# os-win32.c does not +blockdev_ss.add(when: 'CONFIG_POSIX', if_true: files('os-posix.c')) +softmmu_ss.add(when: 'CONFIG_WIN32', if_true: [files('os-win32.c')]) + +softmmu_ss.add_all(blockdev_ss) +softmmu_ss.add(files( + 'bootdevice.c', + 'dma-helpers.c', + 'qdev-monitor.c', +), sdl) + +softmmu_ss.add(when: 'CONFIG_TPM', if_true: files('tpm.c')) +softmmu_ss.add(when: 'CONFIG_SECCOMP', if_true: [files('qemu-seccomp.c'), = seccomp]) +softmmu_ss.add(when: ['CONFIG_FDT', fdt], if_true: [files('device_tree.c'= )]) + +common_ss.add(files('cpus-common.c')) + # needed for fuzzing binaries subdir('tests/qtest/libqos') =20 --=20 2.26.2