From: Vladimir Sokolovsky Date: Sun, 14 Dec 2014 11:00:35 +0000 (+0200) Subject: configure: Added '--skip-autoconf' parameter X-Git-Tag: vofed-3.18~68 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a05fd293b4a44e1f96df7277e9d8e305c2b80e54;p=~aditr%2Fcompat-rdma.git configure: Added '--skip-autoconf' parameter 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 --- diff --git a/configure b/configure index f81645f..84d3a36 100755 --- 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 $@