]> git.openfabrics.org - ~aditr/compat-rdma.git/commitdiff
configure: Added '--skip-autoconf' parameter
authorVladimir Sokolovsky <vlad@mellanox.com>
Sun, 14 Dec 2014 11:00:35 +0000 (13:00 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Sun, 14 Dec 2014 13:53:41 +0000 (15:53 +0200)
This parameter can be used to avoid running autogen.sh which can be
useful after configure executed autogen.sh once and, now, we just want to
change the set of modules to be compiled,

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
configure

index f81645f9ebb24481e0134940290cc2c312ad0be9..84d3a36557e5ce4af83626af5f9b8a8c05cec492 100755 (executable)
--- a/configure
+++ b/configure
@@ -42,6 +42,7 @@ Usage:  `basename $0` [options]
     --kernel-sources=DIR  make for this kernel [/lib/modules/$(uname -r)/source]
     --with-linux=DIR  kernel sources directory [/lib/modules/$(uname -r)/source]
     --with-linux-obj=DIR  kernel obj directory [/lib/modules/$(uname -r)/build]
+    --skip-autoconf
 
     Kernel modules configuration:
 
@@ -273,6 +274,9 @@ main()
                         -modules-dir=* | --modules-dir=* | --mod-dir=*)
                                 MODULES_DIR=`expr "x$1" : 'x[^=]*=\(.*\)'`
                         ;;
+                        --skip-autoconf)
+                        SKIP_AUTOCONF=1
+                        ;;
                         -kernel-sources | --kernel-sources | --kernel-src | --kern-src | --ker-src)
                                 shift
                                 KSRC=$1
@@ -714,6 +718,7 @@ if [ $ARCH != "x86_64" ]; then
     CONFIG_INFINIBAND_QIB=
 fi
 
+SKIP_AUTOCONF=${SKIP_AUTOCONF:-0}
 CONFIG_MEMTRACK=${CONFIG_MEMTRACK:-''}
 CONFIG_DEBUG_INFO=${CONFIG_DEBUG_INFO:-'y'}
 CONFIG_INFINIBAND=${CONFIG_INFINIBAND:-''}
@@ -1527,9 +1532,11 @@ EOFAUTOCONF
             exit 0
         fi
 
-        cd compat
-        ex ./autogen.sh
-        ex ./configure --with-linux-obj=$KSRC_OBJ --with-linux=$KSRC
+       if [ $SKIP_AUTOCONF -eq 0 ]; then
+               cd compat
+               ex ./autogen.sh
+               ex ./configure --with-linux-obj=$KSRC_OBJ --with-linux=$KSRC
+       fi
 }
 
 main $@