From nobody Mon Feb 9 19:54:15 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; spf=pass (zoho.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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553172778889356.3771792701075; Thu, 21 Mar 2019 05:52:58 -0700 (PDT) Received: from localhost ([127.0.0.1]:36781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6xBn-00028b-Ss for importer@patchew.org; Thu, 21 Mar 2019 08:52:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6x6k-0007Xv-Ia for qemu-devel@nongnu.org; Thu, 21 Mar 2019 08:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6x6g-0005OM-5m for qemu-devel@nongnu.org; Thu, 21 Mar 2019 08:47:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59782) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h6x6d-00056j-Ls for qemu-devel@nongnu.org; Thu, 21 Mar 2019 08:47:36 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 80995308FC20 for ; Thu, 21 Mar 2019 12:47:16 +0000 (UTC) Received: from thinkpad.redhat.com (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id CC7F55D9D2; Thu, 21 Mar 2019 12:47:04 +0000 (UTC) From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 21 Mar 2019 13:46:24 +0100 Message-Id: <20190321124624.26131-5-lvivier@redhat.com> In-Reply-To: <20190321124624.26131-1-lvivier@redhat.com> References: <20190321124624.26131-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 21 Mar 2019 12:47:16 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 4/4] build: don't build hardware objects with linux-user X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Thomas Huth , Gerd Hoffmann , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Some objects are only needed for system emulation and tools. We can ignore them for the user mode case Update tests to run accordingly. Signed-off-by: Laurent Vivier --- Makefile.objs | 33 ++++++++++++++++----------------- tests/Makefile.include | 26 +++++++++++++++----------- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 3538789808af..5d4585c8e2f5 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -5,6 +5,12 @@ util-obj-y =3D util/ qobject/ qapi/ =20 chardev-obj-y =3D chardev/ =20 +qom-obj-y =3D qom/ + +crypto-obj-y =3D crypto/ +crypto-aes-obj-y =3D crypto/ + +ifneq ($(CONFIG_USER_ONLY),y) ####################################################################### # authz-obj-y is code used by both qemu system emulation and qemu-img =20 @@ -21,21 +27,11 @@ block-obj-$(CONFIG_REPLICATION) +=3D replication.o =20 block-obj-m =3D block/ =20 -####################################################################### -# crypto-obj-y is code used by both qemu system emulation and qemu-img - -crypto-obj-y =3D crypto/ -crypto-aes-obj-y =3D crypto/ - -####################################################################### -# qom-obj-y is code used by both qemu system emulation and qemu-img - -qom-obj-y =3D qom/ - ####################################################################### # io-obj-y is code used by both qemu system emulation and qemu-img =20 io-obj-y =3D io/ +endif =20 ###################################################################### # Target independent part of system emulation. The long term path is to @@ -132,10 +128,18 @@ rdmacm-mux-obj-y =3D contrib/rdmacm-mux/ trace-events-subdirs =3D trace-events-subdirs +=3D accel/kvm trace-events-subdirs +=3D accel/tcg +ifeq ($(CONFIG_USER_ONLY),y) +trace-events-subdirs +=3D linux-user +else trace-events-subdirs +=3D authz +trace-events-subdirs +=3D nbd trace-events-subdirs +=3D block -trace-events-subdirs +=3D chardev +trace-events-subdirs +=3D scsi +trace-events-subdirs +=3D io +trace-events-subdirs +=3D hw/display # needed by qemu-edid +endif trace-events-subdirs +=3D crypto +trace-events-subdirs +=3D chardev ifeq ($(CONFIG_SOFTMMU),y) trace-events-subdirs +=3D audio trace-events-subdirs +=3D hw/9pfs @@ -146,7 +150,6 @@ trace-events-subdirs +=3D hw/audio trace-events-subdirs +=3D hw/block trace-events-subdirs +=3D hw/block/dataplane trace-events-subdirs +=3D hw/char -trace-events-subdirs +=3D hw/display trace-events-subdirs +=3D hw/dma trace-events-subdirs +=3D hw/hppa trace-events-subdirs +=3D hw/i2c @@ -183,12 +186,8 @@ trace-events-subdirs +=3D migration trace-events-subdirs +=3D net trace-events-subdirs +=3D ui endif -trace-events-subdirs +=3D io -trace-events-subdirs +=3D linux-user -trace-events-subdirs +=3D nbd trace-events-subdirs +=3D qapi trace-events-subdirs +=3D qom -trace-events-subdirs +=3D scsi trace-events-subdirs +=3D target/arm trace-events-subdirs +=3D target/hppa trace-events-subdirs +=3D target/i386 diff --git a/tests/Makefile.include b/tests/Makefile.include index 852f17b8c79c..c147182fb052 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -45,7 +45,6 @@ SYSEMU_TARGET_LIST :=3D $(subst -softmmu.mak,,$(notdir \ =20 check-unit-y +=3D tests/check-qdict$(EXESUF) check-unit-y +=3D tests/check-block-qdict$(EXESUF) -check-unit-y +=3D tests/test-char$(EXESUF) check-unit-y +=3D tests/check-qnum$(EXESUF) check-unit-y +=3D tests/check-qstring$(EXESUF) check-unit-y +=3D tests/check-qlist$(EXESUF) @@ -61,9 +60,12 @@ check-unit-y +=3D tests/test-string-input-visitor$(EXESU= F) check-unit-y +=3D tests/test-string-output-visitor$(EXESUF) check-unit-y +=3D tests/test-qmp-event$(EXESUF) check-unit-y +=3D tests/test-opts-visitor$(EXESUF) -check-unit-y +=3D tests/test-coroutine$(EXESUF) check-unit-y +=3D tests/test-visitor-serialization$(EXESUF) check-unit-y +=3D tests/test-iov$(EXESUF) +check-unit-y +=3D tests/test-x86-cpuid$(EXESUF) +ifneq ($(CONFIG_USER_ONLY),y) +check-unit-y +=3D tests/test-char$(EXESUF) +check-unit-y +=3D tests/test-coroutine$(EXESUF) check-unit-y +=3D tests/test-aio$(EXESUF) check-unit-y +=3D tests/test-aio-multithread$(EXESUF) check-unit-y +=3D tests/test-throttle$(EXESUF) @@ -76,7 +78,7 @@ check-unit-y +=3D tests/test-blockjob-txn$(EXESUF) check-unit-y +=3D tests/test-block-backend$(EXESUF) check-unit-y +=3D tests/test-block-iothread$(EXESUF) check-unit-y +=3D tests/test-image-locking$(EXESUF) -check-unit-y +=3D tests/test-x86-cpuid$(EXESUF) +endif # all code tested by test-x86-cpuid is inside topology.h ifeq ($(CONFIG_SOFTMMU),y) check-unit-y +=3D tests/test-xbzrle$(EXESUF) @@ -101,6 +103,14 @@ check-unit-y +=3D tests/check-qom-interface$(EXESUF) check-unit-y +=3D tests/check-qom-proplist$(EXESUF) check-unit-y +=3D tests/test-qemu-opts$(EXESUF) check-unit-y +=3D tests/test-keyval$(EXESUF) +ifneq (,$(findstring qemu-ga,$(TOOLS))) +check-unit-$(call land,$(CONFIG_LINUX),$(CONFIG_VIRTIO_SERIAL)) +=3D tests= /test-qga$(EXESUF) +endif +check-unit-y +=3D tests/test-timed-average$(EXESUF) +check-unit-$(CONFIG_INOTIFY1) +=3D tests/test-util-filemonitor$(EXESUF) +check-unit-y +=3D tests/test-util-sockets$(EXESUF) +check-unit-y +=3D tests/test-base64$(EXESUF) +ifneq ($(CONFIG_USER_ONLY),y) check-unit-y +=3D tests/test-write-threshold$(EXESUF) check-unit-y +=3D tests/test-crypto-hash$(EXESUF) check-speed-y +=3D tests/benchmark-crypto-hash$(EXESUF) @@ -111,12 +121,6 @@ check-speed-y +=3D tests/benchmark-crypto-cipher$(EXES= UF) check-unit-y +=3D tests/test-crypto-secret$(EXESUF) check-unit-$(CONFIG_GNUTLS) +=3D tests/test-crypto-tlscredsx509$(EXESUF) check-unit-$(CONFIG_GNUTLS) +=3D tests/test-crypto-tlssession$(EXESUF) -ifneq (,$(findstring qemu-ga,$(TOOLS))) -check-unit-$(call land,$(CONFIG_LINUX),$(CONFIG_VIRTIO_SERIAL)) +=3D tests= /test-qga$(EXESUF) -endif -check-unit-y +=3D tests/test-timed-average$(EXESUF) -check-unit-$(CONFIG_INOTIFY1) +=3D tests/test-util-filemonitor$(EXESUF) -check-unit-y +=3D tests/test-util-sockets$(EXESUF) check-unit-y +=3D tests/test-authz-simple$(EXESUF) check-unit-y +=3D tests/test-authz-list$(EXESUF) check-unit-y +=3D tests/test-authz-listfile$(EXESUF) @@ -127,14 +131,14 @@ check-unit-y +=3D tests/test-io-channel-file$(EXESUF) check-unit-$(CONFIG_GNUTLS) +=3D tests/test-io-channel-tls$(EXESUF) check-unit-y +=3D tests/test-io-channel-command$(EXESUF) check-unit-y +=3D tests/test-io-channel-buffer$(EXESUF) -check-unit-y +=3D tests/test-base64$(EXESUF) check-unit-$(if $(CONFIG_NETTLE),y,$(CONFIG_GCRYPT)) +=3D tests/test-crypt= o-pbkdf$(EXESUF) check-unit-y +=3D tests/test-crypto-ivgen$(EXESUF) check-unit-y +=3D tests/test-crypto-afsplit$(EXESUF) check-unit-y +=3D tests/test-crypto-xts$(EXESUF) check-unit-y +=3D tests/test-crypto-block$(EXESUF) -check-unit-y +=3D tests/test-logging$(EXESUF) check-unit-$(CONFIG_REPLICATION) +=3D tests/test-replication$(EXESUF) +endif +check-unit-y +=3D tests/test-logging$(EXESUF) check-unit-y +=3D tests/test-bufferiszero$(EXESUF) check-unit-y +=3D tests/test-uuid$(EXESUF) check-unit-y +=3D tests/ptimer-test$(EXESUF) --=20 2.20.1