[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v4 6/8] blockdev: Modularize nfs block driver
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PULL v4 6/8] blockdev: Modularize nfs block driver |
Date: |
Tue, 20 Sep 2016 22:43:59 +0200 |
From: Colin Lord <address@hidden>
Modularizes the nfs block driver so that it gets dynamically loaded.
Signed-off-by: Colin Lord <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Reviewed-by: Max Reitz <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
---
block/Makefile.objs | 1 +
configure | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/block/Makefile.objs b/block/Makefile.objs
index 3da471e..cb158e9 100644
--- a/block/Makefile.objs
+++ b/block/Makefile.objs
@@ -29,6 +29,7 @@ block-obj-y += crypto.o
common-obj-y += stream.o
+nfs.o-libs := $(LIBNFS_LIBS)
iscsi.o-cflags := $(LIBISCSI_CFLAGS)
iscsi.o-libs := $(LIBISCSI_LIBS)
curl.o-cflags := $(CURL_CFLAGS)
diff --git a/configure b/configure
index 7d083bd..2efc338 100755
--- a/configure
+++ b/configure
@@ -4578,7 +4578,6 @@ if test "$libnfs" != "no" ; then
if $pkg_config --atleast-version=1.9.3 libnfs; then
libnfs="yes"
libnfs_libs=$($pkg_config --libs libnfs)
- LIBS="$LIBS $libnfs_libs"
else
if test "$libnfs" = "yes" ; then
feature_not_found "libnfs" "Install libnfs devel >= 1.9.3"
@@ -5351,7 +5350,8 @@ if test "$libiscsi" = "yes" ; then
fi
if test "$libnfs" = "yes" ; then
- echo "CONFIG_LIBNFS=y" >> $config_host_mak
+ echo "CONFIG_LIBNFS=m" >> $config_host_mak
+ echo "LIBNFS_LIBS=$libnfs_libs" >> $config_host_mak
fi
if test "$seccomp" = "yes"; then
--
2.9.3
- [Qemu-devel] [PULL v4 0/8] Block layer patches, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 2/8] qemu-img: add skip option to dd, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 3/8] blockdev: prepare iSCSI block driver for dynamic loading, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 1/8] qemu-img: add the 'dd' subcommand, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 6/8] blockdev: Modularize nfs block driver,
Max Reitz <=
- [Qemu-devel] [PULL v4 4/8] blockdev: Add dynamic generation of module_block.h, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 5/8] blockdev: Add dynamic module loading for block drivers, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 7/8] commit: get the overlay node before manipulating the backing chain, Max Reitz, 2016/09/20
- [Qemu-devel] [PULL v4 8/8] iotest 055: refactor and speed up, Max Reitz, 2016/09/20
- Re: [Qemu-devel] [PULL v4 0/8] Block layer patches, Peter Maydell, 2016/09/22