From nobody Mon Feb 9 04:46:16 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=1596742905; cv=none; d=zohomail.com; s=zohoarc; b=GMTv6Fav+TurSQejdlUKiS0S10M7X4d3RqKZV6kWL/PLhVugwe4oJlK3eG80/txfmo0pGlN4k1cdgJiSx/BhNPcuDCWov61t5Mp9fTZeCchqEJp+XMD5kqoXyA3xfoU4TiMK862UDjdIYU2iDDU12TiXZlWS7i5rmhZ048EBXFM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1596742905; 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=t/k3UkNGT9Wot5ElY3TeJZALJgra5Hl7re5NpJ/VnXo=; b=gifnekv6qZdovlCPkSYxdZHi3R5CIuUhCWkm5/yT1ME+jBrDtwamFqVKYYr6GOUuLKBJ7zqzyHpXUPO9OEZKMr3w/qBsA1AVyy3yDbYuC10aadfseR2bBjT2H0wkztT+FBT9GRyt23HTshnu/GGIiEXGms6Mbbpi0dW64yOrx9Q= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1596742905107923.7357166678628; Thu, 6 Aug 2020 12:41:45 -0700 (PDT) Received: from localhost ([::1]:41142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3lln-0005Ch-Rd for importer@patchew.org; Thu, 06 Aug 2020 15:41:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3lPF-0006ef-FP for qemu-devel@nongnu.org; Thu, 06 Aug 2020 15:18:25 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:36202 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1k3lPD-0006bF-6Q for qemu-devel@nongnu.org; Thu, 06 Aug 2020 15:18:25 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-XqH4nGJwPJW6JswQ5YB1uw-1; Thu, 06 Aug 2020 15:18:20 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E1013100AA25 for ; Thu, 6 Aug 2020 19:18:19 +0000 (UTC) Received: from 640k.localdomain.com (unknown [10.36.110.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id F20C069314; Thu, 6 Aug 2020 19:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596741502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t/k3UkNGT9Wot5ElY3TeJZALJgra5Hl7re5NpJ/VnXo=; b=SnbphKaoGb1MuT52jC04ro/rTaL2WBuoXpkuOR+Nd9R69wrpVWH3afGf9xnHEbujMKVRsc N5SaQpTBAJli3C59UwBvcQclFefmRqLgZe2yX6VxfzUHbj/GG99GzxfXf5GwAaU5kGXbLH aXOIbiweIeSMH7BHjRf2hrutHgl38wA= X-MC-Unique: XqH4nGJwPJW6JswQ5YB1uw-1 From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 066/143] meson: convert root directory to Meson Date: Thu, 6 Aug 2020 21:15:02 +0200 Message-Id: <1596741379-12902-67-git-send-email-pbonzini@redhat.com> In-Reply-To: <1596741379-12902-1-git-send-email-pbonzini@redhat.com> References: <1596741379-12902-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=207.211.31.81; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/06 05:03:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham 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: pass (identity @redhat.com) Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- Makefile.objs | 21 ++------------------- Makefile.target | 2 +- configure | 2 ++ meson.build | 30 ++++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+), 20 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 2463df8..a5c919d 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -47,17 +47,10 @@ 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 block/ - -common-obj-y +=3D bootdevice.o iothread.o +common-obj-y =3D block/ common-obj-y +=3D dump/ -common-obj-y +=3D job-qmp.o 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 16f1e78..5f926e5 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 c1bc16b..508aa60 100755 --- a/configure +++ b/configure @@ -7305,6 +7305,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 9b0aa18..266ff64 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', @@ -276,6 +278,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') @@ -435,6 +442,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() @@ -588,6 +596,28 @@ subdir('nbd') subdir('scsi') subdir('block') =20 +blockdev_ss.add(files( + 'blockdev.c', + 'blockdev-nbd.c', + 'iothread.c', + 'job-qmp.c', +), sdl) +blockdev_ss.add(when: 'CONFIG_WIN32', if_true: [files('os-win32.c')]) +blockdev_ss.add(when: 'CONFIG_POSIX', if_true: files('os-posix.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 1.8.3.1