From nobody Mon Feb 9 20:35:07 2026 Delivered-To: importer@patchew.org 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; 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=1576156576; cv=none; d=zohomail.com; s=zohoarc; b=HG/RRIOENFYLLIGuMNYUmSXSfkdeUT8VIJ40SvBdJpFb4pCWcIJ8Yq2/0s74TeIAFByRX8guuhxhb+NJ3iQ067DIf1hvJmhwZlxmL8bGsupuwVwYQ8oYsyilJuyscBCTPgTon15cqMgLVo2crohatoPK3/0ArjG1tJ5nIbZmvdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576156576; h=Content-Type:Content-Transfer-Encoding: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=HXR0svkyY3DtengHr9Una6kU9oDOnxpx+/sr/xfZFfM=; b=NAqAJSrSfo9zesAkBKVrMb23YOqETXt44uOkfTA9KcuZDqPSIB0jvUIbuVt1bRYnh6qVbtVpMsqB0RCnoCM8C4SE++XZup3AG/7g0JbSHRKNUzloEjHuuMZCztzLuGcEobm15z/gLNWFaVbRxqG8DDNWrBNUWFqeZXPbjjuVaaE= 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 1576156576494258.15106059622394; Thu, 12 Dec 2019 05:16:16 -0800 (PST) Received: from localhost ([::1]:59130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifOKE-0004K6-Qv for importer@patchew.org; Thu, 12 Dec 2019 08:16:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59367) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifNy8-00037m-GB for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifNy7-0006Fu-1m for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:24 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:33619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifNy6-0006E3-Pf for qemu-devel@nongnu.org; Thu, 12 Dec 2019 07:53:22 -0500 Received: by mail-wr1-x435.google.com with SMTP id b6so2659121wrq.0 for ; Thu, 12 Dec 2019 04:53:22 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id n189sm5193825wme.33.2019.12.12.04.53.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2019 04:53:20 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=HXR0svkyY3DtengHr9Una6kU9oDOnxpx+/sr/xfZFfM=; b=XVHMAmhdkBkblMMFlb157dveyCNuYEr9KhrnLNszlVx/7OzqlKqwm144LVYIIPoUXu bHPuPYeXdFAoFYwk0RwBb15Zt6XNBqvIXnAdFOqVat1LBjFmX8GQ5mvWGPx7NhBVea8b iZWqmQZdze/7SYL8glnxNBu7TVtjhu6HVTRqUznTXDbGgntKz3Iz9lFGZPJDx1cnZOiY a/ejM0NQR6hARkhh2NP7SgJuTiyhkZTMM62b050JLDEfIgmvYYgBegAuf1+uMSaxrKAZ NoBzXmN0BaRScr2lAhZe2Ty0hWoAQUitp9qbvVEXZ2AWM9Li/2udTvKFFdjeSvjmHjzX HtMA== 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:mime-version:content-transfer-encoding; bh=HXR0svkyY3DtengHr9Una6kU9oDOnxpx+/sr/xfZFfM=; b=fqaL+uRAb1oX+YvCCeY3yaPNzO5TKIcJkNaYY/g8TRUd4bq6h9HtqfGV9Lw6Sk/RS5 ENpdV93d+OeiCq6yu4bPur8bHf/Cm5bukqrbMqVG/jw0/8Sujs8KLvhSOPN+sNQ9P+Nv Epo//hQ9czwkOQUK657MRRpoArj7U7sO4u6KuZJxexf0JsaR9YITitOJu4v6Lh7N4MIc xZG0IU7Jf/O0kQXmD73eANr1wcGNVmzTmkHYfb8pT2mEMjBZZAFk53jSQll1oiZ/iv1C bm31gjh1agRXMOS6jb8uBT4Qh7LCaAfEAA4FZLjO9FksdyBpsgTGE7EoYp24Kq5qm9tm /SzQ== X-Gm-Message-State: APjAAAXOV8mWuImFBuqCsksyVSbhKluW9jJ4qqWNgp3aN+CrJF3xWvOa Iuz8SgsRPmXCeBr7w5tFMK9ogxnO X-Google-Smtp-Source: APXvYqwj+CIKZDwlp/uEKyMSItUN2MO8kdJtusCOimeoXlHiBdqk+AKBnZ1soo9nMQ1GgiOu70HCtQ== X-Received: by 2002:a5d:4b8f:: with SMTP id b15mr6560367wrt.100.1576155201288; Thu, 12 Dec 2019 04:53:21 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 023/132] meson: add qemu-bridge-helper Date: Thu, 12 Dec 2019 13:51:07 +0100 Message-Id: <1576155176-2464-24-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> References: <1576155176-2464-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 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) From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- Makefile | 4 ---- configure | 1 + meson.build | 12 +++++++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 328b3c3..d153186 100644 --- a/Makefile +++ b/Makefile @@ -173,8 +173,6 @@ LIBS+=3D-lz $(LIBS_TOOLS) vhost-user-json-y =3D HELPERS-y =3D =20 -HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) =3D qemu-bridge-hel= per$(EXESUF) - ifeq ($(CONFIG_LINUX)$(CONFIG_VIRGL)$(CONFIG_GBM)$(CONFIG_TOOLS),yyyy) vhost-user-json-y +=3D contrib/vhost-user-gpu/50-qemu-gpu.json endif @@ -374,8 +372,6 @@ qemu-img$(EXESUF): qemu-img.o $(authz-obj-y) $(block-ob= j-y) $(crypto-obj-y) $(io qemu-nbd$(EXESUF): qemu-nbd.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y= ) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) qemu-io$(EXESUF): qemu-io.o $(authz-obj-y) $(block-obj-y) $(crypto-obj-y) = $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS) =20 -qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o $(COMMON_LDADDS) - qemu-keymap$(EXESUF): qemu-keymap.o ui/input-keymap.o $(COMMON_LDADDS) =20 qemu-edid$(EXESUF): qemu-edid.o hw/display/edid-generate.o $(COMMON_LDADDS) diff --git a/configure b/configure index 4ed65db..9615d63 100755 --- a/configure +++ b/configure @@ -6603,6 +6603,7 @@ if test "$l2tpv3" =3D "yes" ; then fi if test "$cap_ng" =3D "yes" ; then echo "CONFIG_LIBCAP_NG=3Dy" >> $config_host_mak + echo "LIBCAP_NG_LIBS=3D$cap_libs" >> $config_host_mak fi echo "CONFIG_AUDIO_DRIVERS=3D$audio_drv_list" >> $config_host_mak for drv in $audio_drv_list; do diff --git a/meson.build b/meson.build index 7e772c1..854b1cb 100644 --- a/meson.build +++ b/meson.build @@ -56,6 +56,10 @@ if 'CONFIG_GNUTLS' in config_host endif pixman =3D declare_dependency(compile_args: config_host['PIXMAN_CFLAGS'].s= plit(), link_args: config_host['PIXMAN_LIBS'].split()) +libcap_ng =3D declare_dependency() +if 'CONFIG_LIBCAP_NG' in config_host + libcap_ng =3D declare_dependency(link_args: config_host['LIBCAP_NG_LIBS'= ].split()) +endif rt =3D cc.find_library('rt', required: false) libiscsi =3D declare_dependency() if 'CONFIG_LIBISCSI' in config_host @@ -216,7 +220,6 @@ qemuutil =3D declare_dependency(link_with: libqemuutil, sources: version_res) =20 # Other build targets - if 'CONFIG_GUEST_AGENT' in config_host subdir('qga') endif @@ -235,6 +238,13 @@ if have_tools subdir('contrib/vhost-user-scsi') endif =20 + if host_machine.system() =3D=3D 'linux' + executable('qemu-bridge-helper', files('qemu-bridge-helper.c'), + dependencies: [qemuutil, libcap_ng], + install: true, + install_dir: get_option('libexecdir')) + endif + if 'CONFIG_IVSHMEM' in config_host subdir('contrib/ivshmem-client') subdir('contrib/ivshmem-server') --=20 1.8.3.1