[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v8 038/152] contrib/elf2dmp: convert to meson
From: |
Paolo Bonzini |
Subject: |
[PULL v8 038/152] contrib/elf2dmp: convert to meson |
Date: |
Fri, 21 Aug 2020 06:21:35 -0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile | 4 ----
Makefile.objs | 6 ------
configure | 3 ---
contrib/elf2dmp/Makefile.objs | 4 ----
contrib/elf2dmp/meson.build | 5 +++++
meson.build | 6 ++++++
6 files changed, 11 insertions(+), 17 deletions(-)
delete mode 100644 contrib/elf2dmp/Makefile.objs
create mode 100644 contrib/elf2dmp/meson.build
diff --git a/Makefile b/Makefile
index e16cbe6191..91602ad51e 100644
--- a/Makefile
+++ b/Makefile
@@ -302,7 +302,6 @@ dummy := $(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 \
@@ -512,9 +511,6 @@ ifneq ($(EXESUF),)
qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI)
endif
-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 336a684ff3..1486254a2c 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -100,9 +100,3 @@ version-obj-$(CONFIG_WIN32) += $(BUILD_DIR)/version.o
# extracted into a QAPI schema module, or perhaps a separate schema.
qga-obj-y = qga/
qga-vss-dll-obj-y = qga/
-
-######################################################################
-# contrib
-elf2dmp-obj-y = contrib/elf2dmp/
-
-######################################################################
diff --git a/configure b/configure
index 1d00af339c..dc27877932 100755
--- a/configure
+++ b/configure
@@ -6725,9 +6725,6 @@ if test "$want_tools" = "yes" ; then
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-nbd\$(EXESUF) qemu-storage-daemon\$(EXESUF) $tools"
fi
- if [ "$curl" = "yes" ]; then
- tools="elf2dmp\$(EXESUF) $tools"
- fi
fi
if test "$softmmu" = yes ; then
if test "$linux" = 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 = main.o addrspace.o download.o pdb.o qemu_elf.o
-
-download.o-cflags := $(CURL_CFLAGS)
-download.o-libs := $(CURL_LIBS)
diff --git a/contrib/elf2dmp/meson.build b/contrib/elf2dmp/meson.build
new file mode 100644
index 0000000000..b3de173316
--- /dev/null
+++ b/contrib/elf2dmp/meson.build
@@ -0,0 +1,5 @@
+if 'CONFIG_CURL' in config_host
+ executable('elf2dmp', files('main.c', 'addrspace.c', 'download.c', 'pdb.c',
'qemu_elf.c'),
+ dependencies: [glib, curl],
+ install: true)
+endif
diff --git a/meson.build b/meson.build
index c1078b6759..59ac2f05d9 100644
--- a/meson.build
+++ b/meson.build
@@ -110,6 +110,11 @@ if 'CONFIG_VIRGL' in config_host
virgl = declare_dependency(compile_args: config_host['VIRGL_CFLAGS'].split(),
link_args: config_host['VIRGL_LIBS'].split())
endif
+curl = not_found
+if 'CONFIG_CURL' in config_host
+ curl = declare_dependency(compile_args: config_host['CURL_CFLAGS'].split(),
+ link_args: config_host['CURL_LIBS'].split())
+endif
target_dirs = config_host['TARGET_DIRS'].split()
have_user = false
@@ -274,6 +279,7 @@ qemuutil = declare_dependency(link_with: libqemuutil,
if have_tools
subdir('contrib/rdmacm-mux')
+ subdir('contrib/elf2dmp')
if 'CONFIG_VHOST_USER' in config_host
subdir('contrib/libvhost-user')
--
2.26.2
- [PULL v8 027/152] meson: add remaining generated tcg trace helpers, (continued)
- [PULL v8 027/152] meson: add remaining generated tcg trace helpers, Paolo Bonzini, 2020/08/21
- [PULL v8 029/152] contrib/libvhost-user: convert to Meson, Paolo Bonzini, 2020/08/21
- [PULL v8 017/152] configure: integrate Meson in the build system, Paolo Bonzini, 2020/08/21
- [PULL v8 031/152] contrib/vhost-user-blk: convert to Meson, Paolo Bonzini, 2020/08/21
- [PULL v8 026/152] libqemuutil, qapi, trace: convert to meson, Paolo Bonzini, 2020/08/21
- [PULL v8 030/152] tools/virtiofsd: convert to Meson, Paolo Bonzini, 2020/08/21
- [PULL v8 032/152] vhost-user-scsi: add compatibility for libiscsi 1.9.0, Paolo Bonzini, 2020/08/21
- [PULL v8 033/152] contrib/vhost-user-scsi: convert to Meson, Paolo Bonzini, 2020/08/21
- [PULL v8 037/152] contrib/ivshmem: convert to meson, Paolo Bonzini, 2020/08/21
- [PULL v8 035/152] contrib/vhost-user-input: convert to meson, Paolo Bonzini, 2020/08/21
- [PULL v8 038/152] contrib/elf2dmp: convert to meson,
Paolo Bonzini <=
- [PULL v8 040/152] meson: add solaris and Haiku libraries, Paolo Bonzini, 2020/08/21
- [PULL v8 039/152] meson: add macos dependencies, Paolo Bonzini, 2020/08/21
- [PULL v8 045/152] meson: add qemu-bridge-helper, Paolo Bonzini, 2020/08/21
- [PULL v8 044/152] meson: convert dummy Windows qga/qemu-ga target, Paolo Bonzini, 2020/08/21
- [PULL v8 042/152] meson: convert vss-win32, Paolo Bonzini, 2020/08/21
- [PULL v8 046/152] meson: add qemu-keymap, Paolo Bonzini, 2020/08/21
- [PULL v8 034/152] contrib/rdmacm-mux: convert to Meson, Paolo Bonzini, 2020/08/21
- [PULL v8 036/152] contrib/vhost-user-gpu: convert to meson, Paolo Bonzini, 2020/08/21
- [PULL v8 043/152] meson: add msi generation, Paolo Bonzini, 2020/08/21
- [PULL v8 041/152] meson: convert qemu-ga, Paolo Bonzini, 2020/08/21