From nobody Mon Feb 9 19:54:12 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1580235584625159.9047374230073; Tue, 28 Jan 2020 10:19:44 -0800 (PST) Received: from localhost ([::1]:35040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwVSh-0005nL-1p for importer@patchew.org; Tue, 28 Jan 2020 13:19:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58453) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwV4Y-00075P-IY for qemu-devel@nongnu.org; Tue, 28 Jan 2020 12:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwV4W-0000MD-9V for qemu-devel@nongnu.org; Tue, 28 Jan 2020 12:54:45 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:39937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwV4W-0000Jf-2Y for qemu-devel@nongnu.org; Tue, 28 Jan 2020 12:54:44 -0500 Received: by mail-wr1-x430.google.com with SMTP id j104so1193427wrj.7 for ; Tue, 28 Jan 2020 09:54:44 -0800 (PST) Received: from localhost.localdomain (93-36-56-206.ip58.fastwebnet.it. [93.36.56.206]) by smtp.gmail.com with ESMTPSA id o4sm27046968wrx.25.2020.01.28.09.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2020 09:54:42 -0800 (PST) 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=e6DA9mr38ESVjvtg3ifwRo8CjKVJ17mRZERMj+nppdE=; b=hCfYrrm14tjUmvQt8yRWkPjYKWkdHlFIEf1iAqjUYpIK6oiQYuVVHOn1fkjU+JcLHR 2mHLdZsD7rsgqsnsn+yP8yCvTCEzR5u/np0PLISF4EfaIjdJsp1kHFQDzOxTEbfvGxZW ghbDIAF/8MnFo0bQD1IBuuWQH6jNnw4Nre4TQqTocF9+TPJrCkOdDJVYdT+uoeIUDO2x JkO4nwn1R9ah3j7idQY9bAMVJ414qY5PtM0dD/+hexuhMSN9UqMp0lJCp+bLcTihbYaL v7r2D7LDw6v2ZpTn011hdKKwaZvSfU3Trn3CjfZUkWm4/nq0zlFpuh5iGK5hLcayaJri WJKA== 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=e6DA9mr38ESVjvtg3ifwRo8CjKVJ17mRZERMj+nppdE=; b=AU78V2TcPf3GDNIajOpePZct4lsgpEd6/T2Rfhx0XhR1jytG+F4v1HEDMP0hD2YTqi FSOxEMpE/sQW2CAEXNcQBcUArjbBjLICuOX3oLTPE+yQmPTlRk7R3tosmsnyxcIm4Y42 OPp7BBjUTI9gIMpKbWuPc/6EVwHZORrb1ReWV5U8GGs4E3lY42rk7KY3GRSwjGfxmWbo F2EgQUNMSbnvGVmsxzcz44CnCfZub0L5iUncV+LA6jr4A3yLkR1/HXfWR2YVJiZyXgGF TC/4otAoYO5UOyZ5LTK5uVdyFj1GOHhyt03qDEMBxs8C5s4vOmZW4Gx/nJqidYUq8hMX 1rVg== X-Gm-Message-State: APjAAAWIpIxT3CEZDq2psCLetxRTdxcq2sxjtc8T3xSjsGet1yLBQOwt caYzunm8qh/aVO9/iVrtbCWxRv8e X-Google-Smtp-Source: APXvYqzJ0h+boB/iSNUnqJ2VRkK33ED1lVPpOsDjibBwQAvF8OTekGm6u0vd+1RTAvkrvIJECv5Z7w== X-Received: by 2002:adf:ed83:: with SMTP id c3mr29046095wro.51.1580234082920; Tue, 28 Jan 2020 09:54:42 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 023/142] contrib/elf2dmp: convert to meson Date: Tue, 28 Jan 2020 18:51:43 +0100 Message-Id: <20200128175342.9066-24-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200128175342.9066-1-pbonzini@redhat.com> References: <20200128175342.9066-1-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::430 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) From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Paolo Bonzini --- Makefile | 4 ---- Makefile.objs | 6 ------ configure | 3 --- contrib/elf2dmp/Makefile.objs | 4 ---- contrib/elf2dmp/meson.build | 4 ++++ meson.build | 6 ++++++ 6 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 contrib/elf2dmp/Makefile.objs create mode 100644 contrib/elf2dmp/meson.build diff --git a/Makefile b/Makefile index c0e62d8053..1ee3e8cb06 100644 --- a/Makefile +++ b/Makefile @@ -285,7 +285,6 @@ dummy :=3D $(call unnest-vars,, \ authz-obj-y \ chardev-obj-y \ qga-obj-y \ - elf2dmp-obj-y \ qga-vss-dll-obj-y \ block-obj-y \ block-obj-m \ @@ -483,9 +482,6 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif =20 -elf2dmp$(EXESUF): $(elf2dmp-obj-y) - $(call LINK, $^) - module_block.h: $(SRC_PATH)/scripts/modules/module_block.py config-host.mak $(call quiet-command,$(PYTHON) $< $@ \ $(addprefix $(SRC_PATH)/,$(patsubst %.mo,%.c,$(block-obj-m))), \ diff --git a/Makefile.objs b/Makefile.objs index 92dc309fd7..4ffe38c7b1 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -102,9 +102,3 @@ util-obj-y +=3D trace/ # extracted into a QAPI schema module, or perhaps a separate schema. qga-obj-y =3D qga/ qga-vss-dll-obj-y =3D qga/ - -###################################################################### -# contrib -elf2dmp-obj-y =3D contrib/elf2dmp/ - -###################################################################### diff --git a/configure b/configure index 52269b4ca6..6e107521d9 100755 --- a/configure +++ b/configure @@ -6209,9 +6209,6 @@ if test "$want_tools" =3D "yes" ; then if [ "$linux" =3D "yes" -o "$bsd" =3D "yes" -o "$solaris" =3D "yes" ] ; = then tools=3D"qemu-nbd\$(EXESUF) $tools" fi - if [ "$curl" =3D "yes" ]; then - tools=3D"elf2dmp\$(EXESUF) $tools" - fi fi if test "$softmmu" =3D yes ; then if test "$linux" =3D yes; then diff --git a/contrib/elf2dmp/Makefile.objs b/contrib/elf2dmp/Makefile.objs deleted file mode 100644 index 1505716916..0000000000 --- a/contrib/elf2dmp/Makefile.objs +++ /dev/null @@ -1,4 +0,0 @@ -elf2dmp-obj-y =3D main.o addrspace.o download.o pdb.o qemu_elf.o - -download.o-cflags :=3D $(CURL_CFLAGS) -download.o-libs :=3D $(CURL_LIBS) diff --git a/contrib/elf2dmp/meson.build b/contrib/elf2dmp/meson.build new file mode 100644 index 0000000000..b9e51996e5 --- /dev/null +++ b/contrib/elf2dmp/meson.build @@ -0,0 +1,4 @@ +if 'CONFIG_CURL' in config_host + executable('elf2dmp', files('main.c', 'addrspace.c', 'download.c', 'pdb.= c', 'qemu_elf.c'), + dependencies: [glib, curl]) +endif diff --git a/meson.build b/meson.build index 53e453026c..979e7f091d 100644 --- a/meson.build +++ b/meson.build @@ -70,6 +70,11 @@ if 'CONFIG_VIRGL' in config_host virgl =3D declare_dependency(compile_args: config_host['VIRGL_CFLAGS'].s= plit(), link_args: config_host['VIRGL_LIBS'].split()) endif +curl =3D declare_dependency() +if 'CONFIG_CURL' in config_host + curl =3D declare_dependency(compile_args: config_host['CURL_CFLAGS'].spl= it(), + link_args: config_host['CURL_LIBS'].split()) +endif =20 target_dirs =3D config_host['TARGET_DIRS'].split() have_user =3D false @@ -210,6 +215,7 @@ qemuutil =3D declare_dependency(link_with: libqemuutil, =20 if have_tools subdir('contrib/rdmacm-mux') + subdir('contrib/elf2dmp') =20 if 'CONFIG_VHOST_USER' in config_host subdir('contrib/libvhost-user') --=20 2.21.0