Whamcloud - gitweb
LU-12282 build: export IB_OPTIONS before build 28/34928/2
authorMinh Diep <mdiep@whamcloud.com>
Fri, 10 May 2019 03:45:51 +0000 (20:45 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Jun 2019 02:33:28 +0000 (02:33 +0000)
We need to export any option before dpkg-buildpackage

Test-Parameters: trivial

Lustre-change: https://review.whamcloud.com/34843
Lustre-commit: eb70bc0b63a6aae50c7b9ab9fc84b6b0e090428d

Change-Id: I683080e1872c8818ae9c391f5971b5e4488147a6
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34928
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
autoMakefile.am
debian/rules

index 92aa7c4..a542e12 100644 (file)
@@ -264,6 +264,16 @@ debs: undef.h
        echo "Enabled Build Profiles: $${DEB_BUILD_PROFILES}"; \
        echo "Kernel Source: $${KERNEL_SRC}"; \
        echo "Kernel Object: $${KERNEL_OBJ}"; \
+       if test "x@ENABLEO2IB@" = "xno"; then \
+               export IB_OPTIONS="--with-o2ib=no"; \
+       else \
+               if test "x@ENABLEO2IB@" != "xyes" && \
+                  test -n "@O2IBPATH@"; then \
+                       export IB_OPTIONS="--with-o2ib=@O2IBPATH@"; \
+               else \
+                       export IB_OPTIONS="--with-o2ib=yes"; \
+               fi; \
+       fi; \
        dpkg-buildpackage -us -uc -I.git -I\*.out[0-9]\* -I\*.swp || { \
                rc=$${PIPESTATUS[0]}; \
                [ $${rc} -gt 1 ] && exit $${rc}; \
@@ -284,16 +294,6 @@ debs: undef.h
        echo "lustre" > usr_share_modass/compliant.list && \
        export MA_DIR=$$(pwd)/usr_share_modass && \
        KVERS=$${KVERS:-$(LINUXRELEASE)} && \
-       if test "x@ENABLEO2IB@" = "xno"; then \
-               export IB_OPTIONS="--with-o2ib=no"; \
-       else \
-               if test "x@ENABLEO2IB@" != "xyes" && \
-                  test -n "@O2IBPATH@"; then \
-                       export IB_OPTIONS="--with-o2ib=@O2IBPATH@"; \
-               else \
-                       export IB_OPTIONS="--with-o2ib=yes"; \
-               fi; \
-       fi; \
        export KSRC_TREE=$(LINUX) && \
        KSRC=$${KSRC:-$(LINUX_OBJ)} && \
        m-a build $${KSRC:+-k $$KSRC} $${KVERS:+-l $$KVERS} -i -u $$(pwd) lustre && \
index 8194f73..dbae257 100755 (executable)
@@ -185,6 +185,7 @@ configure-stamp: autogen-stamp debian/control.main debian/control.modules.in
                        --disable-snmp \
                        --enable-quota \
                        $${EXTRAFLAGS} \
+                       $(EXTRA_OPTIONS) \
        ); \
        touch $@