From nobody Sat Feb 7 07:15:12 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; dkim=fail; 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 ARC-Seal: i=1; a=rsa-sha256; t=1560165587; cv=none; d=zoho.com; s=zohoarc; b=KdT5Pnn0sZc8d9zvLWlXf+Hz16zS19gRAziPraV0FAKZ/JccgZYGS+nCVIBSrXaUEDVAjG+ssu6/gOzX4IxcRCibcTlceGdip6rbQaQwHRCQdgr5IWyfBl1wBFvFL9nvW4qsFxNAcWEhYLXpFpPNlY4Q7CNe3FpQyATidkgUQJM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560165587; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=3rDTeC3Zw+Hw1sj7S+oSbSBKIxPHg3b0TKg/3EFDzXo=; b=HKCH0SBxo/s7raNGCLMc0/k1kDHVu7gg48f8HCAgA3RIrmXvC7llGuNOcwMsUOEH0scXZK6yanC1e0NemZyXyh41tbBBMfl8rFfEDqqMzO9Yb6BPs0+97/Xd1+BIyzdrPpeB80BP/wkM9boyLX1OINlM2x6a5gnXzCDZ2Tx4/Cc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; 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 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 1560165587413496.4824244139288; Mon, 10 Jun 2019 04:19:47 -0700 (PDT) Received: from localhost ([::1]:44544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haIKy-0001OI-8q for importer@patchew.org; Mon, 10 Jun 2019 07:19:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43084) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haIGf-00078b-CP for qemu-devel@nongnu.org; Mon, 10 Jun 2019 07:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haIGe-0000Zu-43 for qemu-devel@nongnu.org; Mon, 10 Jun 2019 07:15:13 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:37396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1haIGd-0000YJ-Sz for qemu-devel@nongnu.org; Mon, 10 Jun 2019 07:15:12 -0400 Received: by mail-wr1-x441.google.com with SMTP id v14so8744140wrr.4 for ; Mon, 10 Jun 2019 04:15:11 -0700 (PDT) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u13sm11934414wrq.62.2019.06.10.04.15.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 04:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=3rDTeC3Zw+Hw1sj7S+oSbSBKIxPHg3b0TKg/3EFDzXo=; b=r0cLEwzGba/WaEp6d0gFnLMaeVU60yjeIM61HpLGWV8O5b3QcLdXbmnC3aSm9Zsrdl VGDXS7h8lfwIo/MuSKFPbOeb1wYaLVF69LGlWKY+2KtmltJLBYXfl8XnCS15ti61qy4j 25An/RU72JAU08Pg87uwDT/RZ7JzhgIWWLWSRG5AcqUoDruZGsjMDIGyqc6yc7yX7+on WOc9LtD3Xr3eoH/5Gmw1vAdhLd5I3aFpCpnYIT/10/04k4YPBhj5G1rg0HeOT5QWxTcX cydJk5unBb/Sw+gVV2WDetlLUkj/tqLbePm1Y3o23ohEtht9OY7er4Ml89Xuxd8OWabr gQ7Q== 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:subject:date:message-id :in-reply-to:references; bh=3rDTeC3Zw+Hw1sj7S+oSbSBKIxPHg3b0TKg/3EFDzXo=; b=EC1x9kRtbTh36B9l9hM+cAfsYkzU57MR7q0/f/jRaUVZQkWcki8LmUajVXiXGAJ2RN UF2KdFQiqpKjxuywEwLDaHb5kZDGM4aM+PwhIOG8xXuOs1UkNe4arIxDjdGLyTenoy9d PLpUQWoddG4FwNGudn4+JX7rzS83J/24gwicHyhbzxbw7gdOQsm+lXvf483/LKok+eHS Yb+Tl9/fU3BqxlXWP6BaaNqAG/6On/P/3mKKX8AS5jkflTiCo2NEwaoqn4aQwLhH2uKJ /5WDn+SQCrJLubMKx9tCaQP7dYbIPAMHmvaqiK65Y5eLoAfcdRwfZMNdDlcaqbrJRrKI 3IbA== X-Gm-Message-State: APjAAAUKeCxoKX047W2Y1hH2qEU6qDW2qN1gA6HV3ypUud8LmqkRQI3y HMmaHnaKKJzWVj8lZR5gM+Ht+OE/ X-Google-Smtp-Source: APXvYqyX9e+xCRLViUCy/AIvH+iQQBxMG1iUQIPkEDNUR/H1qmPcJ/Xn7YN4H0B9s7+wmJLdeRy90g== X-Received: by 2002:adf:e485:: with SMTP id i5mr8912317wrm.75.1560165310664; Mon, 10 Jun 2019 04:15:10 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 10 Jun 2019 13:15:00 +0200 Message-Id: <1560165301-39026-7-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1560165301-39026-1-git-send-email-pbonzini@redhat.com> References: <1560165301-39026-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH 6/7] vhost-user-scsi: convert to Meson 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The libiscsi pkg-config information is extracted from config-host.mak and used to link vhost-user-blk. Signed-off-by: Paolo Bonzini --- .gitignore | 2 +- Makefile | 3 --- Makefile.objs | 3 --- contrib/vhost-user-scsi/Makefile.objs | 1 - contrib/vhost-user-scsi/meson.build | 3 +++ meson.build | 3 +++ 6 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 contrib/vhost-user-scsi/Makefile.objs create mode 100644 contrib/vhost-user-scsi/meson.build diff --git a/.gitignore b/.gitignore index 20637a1..3934eff 100644 --- a/.gitignore +++ b/.gitignore @@ -63,7 +63,7 @@ /qemu-version.h.tmp /module_block.h /scsi/qemu-pr-helper -/vhost-user-scsi +/contrib/vhost-user-scsi/vhost-user-scsi /contrib/vhost-user-blk/vhost-user-blk /fsdev/virtfs-proxy-helper *.tmp diff --git a/Makefile b/Makefile index da290fa..bff097c 100644 --- a/Makefile +++ b/Makefile @@ -426,7 +426,6 @@ dummy :=3D $(call unnest-vars,, \ ivshmem-client-obj-y \ ivshmem-server-obj-y \ rdmacm-mux-obj-y \ - vhost-user-scsi-obj-y \ vhost-user-input-obj-y \ vhost-user-gpu-obj-y \ qga-vss-dll-obj-y \ @@ -629,8 +628,6 @@ ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMM= ON_LDADDS) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) endif -vhost-user-scsi$(EXESUF): $(vhost-user-scsi-obj-y) contrib/libvhost-user/l= ibvhost-user.a - $(call LINK, $^) =20 rdmacm-mux$(EXESUF): LIBS +=3D "-libumad" rdmacm-mux$(EXESUF): $(rdmacm-mux-obj-y) $(COMMON_LDADDS) diff --git a/Makefile.objs b/Makefile.objs index 644e2bd..adf2f92 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -116,9 +116,6 @@ qga-vss-dll-obj-y =3D qga/ elf2dmp-obj-y =3D contrib/elf2dmp/ ivshmem-client-obj-$(CONFIG_IVSHMEM) =3D contrib/ivshmem-client/ ivshmem-server-obj-$(CONFIG_IVSHMEM) =3D contrib/ivshmem-server/ -vhost-user-scsi.o-cflags :=3D $(LIBISCSI_CFLAGS) -vhost-user-scsi.o-libs :=3D $(LIBISCSI_LIBS) -vhost-user-scsi-obj-y =3D contrib/vhost-user-scsi/ rdmacm-mux-obj-y =3D contrib/rdmacm-mux/ vhost-user-input-obj-y =3D contrib/vhost-user-input/ vhost-user-gpu-obj-y =3D contrib/vhost-user-gpu/ diff --git a/contrib/vhost-user-scsi/Makefile.objs b/contrib/vhost-user-scs= i/Makefile.objs deleted file mode 100644 index e83a38a..0000000 --- a/contrib/vhost-user-scsi/Makefile.objs +++ /dev/null @@ -1 +0,0 @@ -vhost-user-scsi-obj-y =3D vhost-user-scsi.o diff --git a/contrib/vhost-user-scsi/meson.build b/contrib/vhost-user-scsi/= meson.build new file mode 100644 index 0000000..b80398c --- /dev/null +++ b/contrib/vhost-user-scsi/meson.build @@ -0,0 +1,3 @@ +executable('vhost-user-scsi', files('vhost-user-scsi.c'), + link_with: libvhost_user, + dependencies: [glib, libiscsi]) diff --git a/meson.build b/meson.build index c4cad8f..bc7fbea 100644 --- a/meson.build +++ b/meson.build @@ -10,6 +10,9 @@ add_project_arguments(config_host['QEMU_INCLUDES'].split(= ), =20 glib =3D declare_dependency(compile_args: config_host['GLIB_CFLAGS'].split= (), link_args: config_host['GLIB_LIBS'].split()) +libiscsi =3D declare_dependency(compile_args: config_host['LIBISCSI_CFLAGS= '].split(), + link_args: config_host['LIBISCSI_LIBS'].split()) =20 subdir('contrib/libvhost-user') subdir('contrib/vhost-user-blk') +subdir('contrib/vhost-user-scsi') --=20 1.8.3.1