Whamcloud - gitweb
LU-6323 build: fix debian to compile with external IB 49/13949/2
authorWang Shilong <wshilong@ddn.com>
Mon, 2 Mar 2015 09:47:34 +0000 (17:47 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 May 2015 03:28:43 +0000 (03:28 +0000)
Debian seems compiling with fixed configurations, if users
want to make debian package with external IB, it won't work.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: I0ecb5c79d5948c0e8ab821c175ca89afee9cb97d
Reviewed-on: http://review.whamcloud.com/13949
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Blake Caldwell <blakec@ornl.gov>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
autoMakefile.am
debian/rules
lnet/autoconf/lustre-lnet.m4

index 1a61ae7..c6aff1f 100644 (file)
@@ -141,6 +141,8 @@ debs:
        echo "lustre" > usr_share_modass/compliant.list && \
        export MA_DIR=$$(pwd)/usr_share_modass && \
        KVERS=$${KVERS:-$(LINUXRELEASE)} && \
        echo "lustre" > usr_share_modass/compliant.list && \
        export MA_DIR=$$(pwd)/usr_share_modass && \
        KVERS=$${KVERS:-$(LINUXRELEASE)} && \
+       [ "x@ENABLEO2IB@" != "x" ] && \
+       export IB_OPTIONS="--with-o2ib=@O2IBPATHS@" && \
        export KSRC_TREE=$(LINUX) && \
        KSRC=$${KSRC:-$(LINUX_OBJ)} && \
        m-a build $${KSRC:+-k $$KSRC} $${KVERS:+-l $$KVERS} -i -u $$(pwd) lustre && \
        export KSRC_TREE=$(LINUX) && \
        KSRC=$${KSRC:-$(LINUX_OBJ)} && \
        m-a build $${KSRC:+-k $$KSRC} $${KVERS:+-l $$KVERS} -i -u $$(pwd) lustre && \
index bef0c49..f9df441 100755 (executable)
@@ -54,6 +54,7 @@ KVER?=$(LINUXRELEASE)
 KVERS?=$(KVER)
 KSRC?=$(LINUX_OBJ)
 KSRC_TREE?=$(LINUX)
 KVERS?=$(KVER)
 KSRC?=$(LINUX_OBJ)
 KSRC_TREE?=$(LINUX)
+IB_OPTIONS?=""
 
 # Packages
 PATCH_PKG=linux-patch-lustre
 
 # Packages
 PATCH_PKG=linux-patch-lustre
@@ -344,7 +345,8 @@ kdist_config: prep-deb-files patch-stamp
                    --disable-iokit \
                    --disable-snmp \
                    --disable-tests \
                    --disable-iokit \
                    --disable-snmp \
                    --disable-tests \
-                   --enable-quota
+                   --enable-quota \
+                   $(IB_OPTIONS)
 
 kdist_configure: kdist_config
 
 
 kdist_configure: kdist_config
 
index b35d3a7..2d2c2f0 100644 (file)
@@ -325,6 +325,8 @@ directory which is likely in ${O2IBPATH%-*}
 ])
 AC_SUBST(EXTRA_OFED_INCLUDE)
 AC_SUBST(O2IBLND)
 ])
 AC_SUBST(EXTRA_OFED_INCLUDE)
 AC_SUBST(O2IBLND)
+AC_SUBST(O2IBPATHS)
+AC_SUBST(ENABLEO2IB)
 
 # In RHEL 6.2, rdma_create_id() takes the queue-pair type as a fourth argument
 AS_IF([test $ENABLEO2IB != "no"], [
 
 # In RHEL 6.2, rdma_create_id() takes the queue-pair type as a fourth argument
 AS_IF([test $ENABLEO2IB != "no"], [