[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 065/150] meson: qemu-pr-helper
From: |
Paolo Bonzini |
Subject: |
[PATCH 065/150] meson: qemu-pr-helper |
Date: |
Mon, 17 Aug 2020 16:35:58 +0200 |
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 | 7 +------
configure | 3 ---
meson.build | 10 ++++++++++
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index e2f64b9c8b..cd8d9a0b02 100644
--- a/Makefile
+++ b/Makefile
@@ -127,7 +127,7 @@ $(call set-vpath, $(SRC_PATH))
LIBS+=-lz $(LIBS_TOOLS)
-HELPERS-y = $(HELPERS)
+HELPERS-y =
# Sphinx does not allow building manuals into the same directory as
# the source files, so if we're doing an in-tree QEMU build we must
@@ -280,11 +280,6 @@ COMMON_LDADDS = libqemuutil.a
qemu-storage-daemon$(EXESUF): qemu-storage-daemon.o $(authz-obj-y)
$(block-obj-y) $(crypto-obj-y) $(chardev-obj-y) $(io-obj-y) $(qom-obj-y)
$(storage-daemon-obj-y) $(COMMON_LDADDS)
-scsi/qemu-pr-helper$(EXESUF): scsi/qemu-pr-helper.o scsi/utils.o
$(authz-obj-y) $(crypto-obj-y) $(io-obj-y) $(qom-obj-y) $(COMMON_LDADDS)
-ifdef CONFIG_MPATH
-scsi/qemu-pr-helper$(EXESUF): LIBS += -ludev -lmultipath -lmpathpersist
-endif
-
clean: recurse-clean ninja-clean clean-ctlist
-test -f ninjatool && ./ninjatool $(if $(V),-v,) -t clean
# avoid old build problems by removing potentially incorrect old files
diff --git a/configure b/configure
index 961436ea41..0262b7b661 100755
--- a/configure
+++ b/configure
@@ -6668,7 +6668,6 @@ if [ "$eventfd" = "yes" ]; then
fi
tools=""
-helpers=""
if test "$want_tools" = "yes" ; then
if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
tools="qemu-storage-daemon\$(EXESUF) $tools"
@@ -6692,7 +6691,6 @@ if test "$softmmu" = yes ; then
fi
mpath=no
fi
- helpers="$helpers scsi/qemu-pr-helper\$(EXESUF)"
else
if test "$virtfs" = yes; then
error_exit "VirtFS is supported only on Linux"
@@ -7770,7 +7768,6 @@ else
QEMU_INCLUDES="-iquote ${source_path}/tcg/${ARCH} $QEMU_INCLUDES"
fi
-echo "HELPERS=$helpers" >> $config_host_mak
echo "TOOLS=$tools" >> $config_host_mak
echo "ROMS=$roms" >> $config_host_mak
echo "MAKE=$make" >> $config_host_mak
diff --git a/meson.build b/meson.build
index b8f6cc49fb..92f2da51e5 100644
--- a/meson.build
+++ b/meson.build
@@ -144,6 +144,10 @@ if 'CONFIG_XKBCOMMON' in config_host
link_args:
config_host['XKBCOMMON_LIBS'].split())
endif
rt = cc.find_library('rt', required: false)
+libmpathpersist = not_found
+if config_host.has_key('CONFIG_MPATH')
+ libmpathpersist = cc.find_library('mpathpersist')
+endif
libiscsi = not_found
if 'CONFIG_LIBISCSI' in config_host
libiscsi = declare_dependency(compile_args:
config_host['LIBISCSI_CFLAGS'].split(),
@@ -629,6 +633,7 @@ foreach target : target_dirs
endforeach
# Other build targets
+
if 'CONFIG_GUEST_AGENT' in config_host
subdir('qga')
endif
@@ -670,6 +675,11 @@ if have_tools
dependencies: [qemuutil, libcap_ng],
install: true,
install_dir: get_option('libexecdir'))
+
+ executable('qemu-pr-helper', files('scsi/qemu-pr-helper.c',
'scsi/utils.c'),
+ dependencies: [authz, crypto, io, qom, qemuutil,
+ libcap_ng, libudev, libmpathpersist],
+ install: true)
endif
if 'CONFIG_IVSHMEM' in config_host
--
2.26.2
- [PATCH 048/150] meson: generate qemu-version.h, (continued)
- [PATCH 048/150] meson: generate qemu-version.h, Paolo Bonzini, 2020/08/17
- [PATCH 049/150] meson: generate shader headers, Paolo Bonzini, 2020/08/17
- [PATCH 051/150] meson: handle edk2 bios and descriptors, Paolo Bonzini, 2020/08/17
- [PATCH 050/150] meson: generate hxtool files, Paolo Bonzini, 2020/08/17
- [PATCH 054/150] meson: convert check-qapi-schema, Paolo Bonzini, 2020/08/17
- [PATCH 057/150] meson: convert crypto directory to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 058/150] meson: convert io directory to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 053/150] meson: convert tests/fp and check-softfloat, Paolo Bonzini, 2020/08/17
- [PATCH 055/150] meson: convert qom directory to Meson (tools part), Paolo Bonzini, 2020/08/17
- [PATCH 059/150] meson: convert target/s390x/gen-features.h, Paolo Bonzini, 2020/08/17
- [PATCH 065/150] meson: qemu-pr-helper,
Paolo Bonzini <=
- [PATCH 056/150] meson: convert authz directory to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 066/150] configure, Makefile; remove TOOLS and HELPERS-y variable, Paolo Bonzini, 2020/08/17
- [PATCH 064/150] meson: qemu-{img,io,nbd}, Paolo Bonzini, 2020/08/17
- [PATCH 063/150] meson: convert block, Paolo Bonzini, 2020/08/17
- [PATCH 069/150] meson: convert audio directory to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 067/150] meson: convert chardev directory to Meson (emulator part), Paolo Bonzini, 2020/08/17
- [PATCH 070/150] meson: convert ui directory to Meson, Paolo Bonzini, 2020/08/17
- [PATCH 061/150] meson: add modules infrastructure, Paolo Bonzini, 2020/08/17
- [PATCH 060/150] meson: infrastructure for building emulators, Paolo Bonzini, 2020/08/17
- [PATCH 062/150] meson: convert chardev directory to Meson (tools part), Paolo Bonzini, 2020/08/17