7 # Not sure what to put here
8 # TARGET_ARCH=$(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
13 TMPDIR=${TMPDIR:-"/var/tmp"}
24 # provided by target file
58 TOPDIR="${0%%${0##*/}}"
59 if [ "${TOPDIR}" ] ; then
60 TOPDIR=$(canon "${TOPDIR}/..")
68 while [ ! -d $retdir/BUILD ] ; do
69 retdir=$(canon "$retdir/..")
70 if [ "$retdir" = "/" ] ; then
86 [ "$2" ] && echo "${0##*/}: $2"
92 echo -n "Available targets:"
93 for target in $TOPDIR/lustre/kernel_patches/targets/*.target ; do
94 target_file=${target##*/}
95 echo -n " ${target_file%%.target}"
104 Usage: ${0##*/} [OPTION]... [-- <lustre configure options>]
109 same as --build-kernel --build-lustre --unpack-kernel
112 configure and compile lustre. Requires that --build-kernel was
116 configure and compile a kernel. Implies --depend-kernel.
117 Requires that --unpack-kernel was already run.
120 Prepares a kernel tree for building (similar to make mrproper
121 oldconfig dep). Requires that --unpack-kernel was already run.
124 Root directory to install into (like DESTDIR with auto*).
126 --extraversion=EXTRAVERSION
127 Overrides the target kernel\'s EXTRAVERSION text.
130 Display this message.
133 same as --install-kernel --install-lustre
136 run make install in the Lustre tree.
139 install the kernel image and modules.
142 This works just like the -j option to make, and is passed to make
145 --kerneldir=KERNELDIR
146 Directory containing linux source tarballs.
149 Name of the configuration to use. The available targets are
153 Specifies an architecture to use when choosing a kernel config
154 file. Default is i386.
156 --target-config=CONFIG
157 Specifies a special option (such as smp, bigsmp, bigmem, or BOOT)
158 to use when choosing a kernel config file. This also modifies the
159 kernel version and modules directory.
162 Untars and patches the kernel source.
165 Builds a Xen domX kernel.
167 The order that commands (--build-lustre, --unpack-kernel) are
168 specified on the command line is ignored; ${0##*/} will always
169 execute them in the correct order (unpack, then build, then install
180 (( $BUILD_LUSTRE || $BUILD_KERNEL || $DEPEND_KERNEL || \
181 $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS || \
182 $UNPACK_KERNEL )) || \
183 fatal 1 "No commands specified."
185 if (( $UNPACK_KERNEL )) ; then
186 [ "$KERNELDIR" ] || \
187 fatal 1 "A kernel directory must be specified with --kerneldir."
188 [ -d "$KERNELDIR" ] || \
189 fatal 1 "$KERNELDIR is not a directory."
192 if (( $INSTALL_LUSTRE || $INSTALL_KERNEL || $SAVE_HEADERS )) ; then
193 [ -z "$DESTDIR" -o -d "$DESTDIR" ] || \
194 fatal 1 "$DESTDIR is not a directory."
197 [ "$TARGET" ] || usage 1 "A target must be specified with --target."
198 TARGET_FILE="$TOPDIR/lustre/kernel_patches/targets/$TARGET.target"
199 [ -r "$TARGET_FILE" ] || \
200 fatal 1 "Target '$TARGET' was not found. Try --list-targets."
202 if [ -z "$JOBS" -o "$JOBS" -lt "1" ] ; then
206 RPMBUILD=$(which rpmbuild 2>/dev/null | head -1)
207 if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
208 RPMBUILD=$(which rpm 2>/dev/null | head -1)
209 if [ ! "$RPMBUILD" -o "$RPMBUILD" == "" ]; then
210 usage 1 "Could not find binary for making rpms (tried rpmbuild and rpm)."
217 for series in $SERIES ; do
218 SERIES_FILE="$TOPDIR/lustre/kernel_patches/series/$series"
219 lustre_patch=$(grep lustre_version "$SERIES_FILE" 2>/dev/null)
220 [ "$lustre_patch" ] && break
222 [ "$lustre_patch" ] || \
223 fatal 1 "Could not determine Lustre version from $SERIES series."
225 awk '/^\+#define LUSTRE_KERNEL_VERSION /{ print $3 }' \
226 "$TOPDIR/lustre/kernel_patches/patches/$lustre_patch" 2>/dev/null
231 EXTRA_VERSION_save="$EXTRA_VERSION"
235 # doesn't make any sense to build OFED for xen domX's
240 [ "$KERNEL" ] || fatal 1 "Target $TARGET did not specify a kernel."
241 # Suse 2.6 has our patches in already
242 # [ "$SERIES" ] || fatal 1 "Target $TARGET did not specify a patch series."
243 # [ "$CONFIG" ] || fatal 1 "Target $TARGET did not specify a kernel config."
244 [ "$VERSION" ] || fatal 1 "Target $TARGET did not specify the kernel version."
246 if [ "$KERNELDIR" ] ; then
247 KERNEL_FILE="$KERNELDIR/$KERNEL"
248 [ -r "$KERNELDIR/$KERNEL" ] || \
249 fatal 1 "Target $TARGET's kernel file $KERNEL not found in kernel directory $KERNELDIR."
252 if [ "$SERIES" ] ; then
253 for series in $SERIES ; do
254 SERIES_FILE="$TOPDIR/lustre/kernel_patches/series/$series"
255 [ -r "$SERIES_FILE" ] || \
256 fatal 1 "Target $TARGET's series $SERIES missing from $TOPDIR/lustre/kernel_patches/series."
265 TARGET_ARCH=${TARGET_ARCH:-$BASE_ARCHS}
266 CONFIG_TARGET="${TARGET}${XENPOSTFIX}-${TARGET_ARCH}${TARGET_CONFIG:+-$TARGET_CONFIG}"
267 CONFIG_FILE="$TOPDIR/lustre/kernel_patches/kernel_configs/kernel-$VERSION-$CONFIG_TARGET.config"
268 [ -r "$CONFIG_FILE" ] ||
269 fatal 1 "Target $TARGET's config file $CONFIG_FILE missing from $TOPDIR/lustre/kernel_patches/configs."
271 if [ "$EXTRA_VERSION_save" ] ; then
272 EXTRA_VERSION="$EXTRA_VERSION_save"
274 EXTRA_VERSION="${EXTRA_VERSION}_lustre.$(get_lustre_version)"
278 # do these after load_target(), which maybe export CC
279 setup_ccache_distcc()
281 # distcc can't handle ".incbin"
282 if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
283 if [ "$TARGET_ARCH" == "x86_64" ]; then
289 if [ "$CCACHE" ]; then
291 [ "$DISTCC" ] && export CCACHE_PREFIX="$DISTCC"
293 [ "$DISTCC" ] && CC="$DISTCC $CC"
301 fatal 1 "tarflags(): File name argument missing."
313 fatal 1 "tarflags(): Unrecognized tar extension in file: $1"
320 echo "Untarring ${1##*/}..."
321 tar $(tarflags $1) $1
327 (( $UNPACK_KERNEL )) || return 0
328 pushd "$TOPDIR" >/dev/null
329 if [ -d linux ] ; then
330 [ -L linux ] && rm -rf $(readlink linux)
334 [ -d linux ] || ln -sf linux* linux
340 (( $UNPACK_KERNEL )) || return 0
341 [ "$SERIES" ] || return 0
342 pushd "$TOPDIR/linux" >/dev/null
343 for series in $SERIES ; do
344 echo -n "Applying series $series:"
345 SERIES_FILE="$TOPDIR/lustre/kernel_patches/series/$series"
346 for patch in $(<"$SERIES_FILE") ; do
347 PATCH_FILE="$TOPDIR/lustre/kernel_patches/patches/$patch"
348 [ -r "$PATCH_FILE" ] || \
349 fatal 1 "Patch file not found: $patch"
351 patch -s -p1 < "$PATCH_FILE" || fatal 1 "Error applying patch $patch."
362 if [ "$TARGET_ARCH" == "ppc64" ] ; then
363 MAKE_CC="CC=$CC -m64"
368 if [ "$ARCH" ] ; then
369 MAKE_ARCH="$MAKE ARCH=$ARCH"
375 MAKE_ARCH="$MAKE ARCH=$TARGET_ARCH"
379 MAKE_J="$MAKE -j $JOBS"
393 kill -TERM -$child_pid 2>/dev/null
395 kill -KILL -$child_pid 2>/dev/null
396 echo "$1 was killed due to timeout") &
400 # status will be set to 143 if the process had to be killed due to timeout
401 status=${PIPESTATUS[0]}
408 (( $DEPEND_KERNEL )) || return 0
409 # we need to override $CC at make time, since there is no
412 pushd "$TOPDIR/linux" >/dev/null
413 echo "Overriding EXTRAVERSION in kernel..."
414 local extra_version="${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
415 if [ -n "${TARGET_CONFIG}" ]; then
416 extra_version="${extra_version}${TARGET_DELIMITER}${TARGET_CONFIG}"
418 perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = ${extra_version}/" Makefile
419 echo "Making depend in $PWD..."
420 $MAKE "$MAKE_CC" mrproper || fatal 1 "Error running make mrproper"
422 # remove localversion-* files to avoid kernel release string
423 # srewing up by the top-level Makefile
425 cp "$CONFIG_FILE" .config
426 local UPDATE_OLDCONFIG=
427 for oc in oldconfig_nonint silentoldconfig oldconfig ; do
428 if grep -q "$oc" Makefile ; then
429 timed_run 300 $MAKE "$MAKE_CC" $oc || UPDATE_OLDCONFIG=1
434 if [ "$UPDATE_OLDCONFIG" ] ; then
435 # use the expect script to "make oldconfig" and answer the questions for
436 # new items conservatively. QA will get notified on anything newly added
437 # for them to review and adjust accordingly.
438 local logfile=$(mktemp /tmp/XXXXXX)
439 #timed_run 300 $TOPDIR/build/update_oldconfig $logfile
440 #local RC=${PIPESTATUS[0]}
441 #local RC=$(strace -f -o update_oldconfig.strace bash -c "$TOPDIR/build/update_oldconfig $logfile; echo \$?")
442 $TOPDIR/build/update_oldconfig $logfile
443 local RC=${PIPESTATUS[0]}
444 #$TOPDIR/build/update_oldconfig $logfile
445 #local RC=${PIPESTATUS[0]}
446 if [ $RC -eq 143 ]; then
447 fatal 1 "update_oldconfig timed out"
448 elif [ $RC -ne 0 ]; then
452 if [ -f update_oldconfig.strace ]; then
453 cat update_oldconfig.strace
454 rm -f update_oldconfig.strace
456 fatal 1 "update_oldconfig failed: $RC. See log above."
460 # now notify if resulting .config is different than $CONFIG_FILE
461 local tmpfile=$(mktemp /tmp/XXXXXX)
462 diff -I '^#.*' -u "$CONFIG_FILE" .config >$tmpfile
463 if [ -s $tmpfile ]; then
465 To: lustre-qa-team@sun.com
466 Subject: kernel_config change
468 The result of a make oldconfig on file $CONFIG_FILE resulted in a
469 difference when compared to .config in the following way:
473 echo -e "\n\nPlease consider updating $CONFIG_FILE for version: $extra_version."
474 # not sure these are entirely useful. the above and "patch" are good
475 #echo -e "\nThe entire new .config file:\n"
477 # sadly, the build roots can't e-mail out, so we can only display this
478 # to stderr for an interested party to inspect
479 #} | sendmail -flustre-qa-team@sun.com -t
486 $MAKE "$MAKE_CC" include/asm
489 $MAKE "$MAKE_CC" symlinks
490 $MAKE "$MAKE_CC" dep || fatal 1 "Error running make dep"
493 $MAKE "$MAKE_CC" include/linux/version.h || fatal 1 "Error making include/linux/version.h"
498 (( $BUILD_KERNEL )) || return 0
500 echo "Building kernel in $PWD..."
502 $MAKE_J "$MAKE_CC" vmlinuz || fatal 1 "Error making vmlinux."
504 case "$TARGET_ARCH" in
505 i386 | i586 | i686 | athlon | x86_64)
506 $MAKE_J "$MAKE_CC" bzImage || fatal 1 "Error making bzImage."
509 $MAKE_J "$MAKE_CC" vmlinux || fatal 1 "Error making vmlinux."
512 $MAKE_J "$MAKE_CC" boot || fatal 1 "Error making boot."
516 $MAKE_J "$MAKE_CC" modules || fatal 1 "Error building modules."
523 (( $BUILD_KERNEL )) || return 0
524 # build kernel-ib{,-devel}
525 # some I/B drivers are architecture dependent and kernel-ib's configure
526 # does not figure it out for us ~sigh~
527 local configure_options=""
528 case "$TARGET_ARCH" in
530 configure_options="--with-ipath_inf-mod"
533 configure_options="--with-ipath_inf-mod --with-ehca-mod"
537 # ofed 1.3 had a bug in the rpm spec
538 if [ "$OFED_VERSION" = "1.3" ]; then
541 $RPMBUILD --rebuild --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' \
542 --define "_topdir $(lbuild_topdir)" --target ${TARGET_ARCH} \
543 --define "KVERSION ${FULL_VERSION}" \
544 --define "$K_SRC ${PWD}/linux" \
545 --define "LIB_MOD_DIR /lib/modules/${FULL_VERSION}" \
546 --define "configure_options --without-quilt --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-srp-target-mod --with-core-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --without-srp-target-mod --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" $(lbuild_topdir)/OFED/SRPMS/ofa_kernel-${OFED_VERSION}-ofed${OFED_VERSION}.src.rpm
548 if [ ${PIPESTATUS[0]} != 0 ]; then
549 fatal 1 "Error building kernel-ib"
552 pushd "$TOPDIR" >/dev/null
553 rm -rf kernel-ib-devel
554 mkdir kernel-ib-devel
556 local rpm=$(ls $(lbuild_topdir)/RPMS/*/kernel-ib-devel-${OFED_VERSION}-${FULL_VERSION//-/_}.*.rpm)
557 rpm2cpio -itv < $rpm | cpio -id
558 CONFIGURE_FLAGS="--with-o2ib=$(pwd)/usr/src/ofa_kernel ${CONFIGURE_FLAGS}"
566 (( $BUILD_LUSTRE )) || return 0
567 pushd "$TOPDIR" >/dev/null
568 [ -f Makefile ] && make -s clean
569 [ -f configure ] || sh ./autogen.sh
570 ./configure --with-linux=$PWD/linux $CONFIGURE_FLAGS || \
571 fatal 1 "Error configuring Lustre."
577 (( $BUILD_LUSTRE )) || return 0
579 pushd "$TOPDIR" >/dev/null
581 -e s^@VERSION@^${LUSTRE_VERSION}^g \
582 -e s^@LINUXRELEASE@^${FULL_VERSION}^g \
583 -e s^@RELEASE@^${FULL_VERSION//-/_}^g \
584 -e s^@ac_configure_args@^"--with-linux=${PWD}/linux ${CONFIGURE_FLAGS}"^g \
587 $RPMBUILD --target ${TARGET_ARCH} -bb lustre.spec \
588 --define "_tmppath $TMPDIR" \
589 --define "_topdir $(lbuild_topdir)" || \
590 fatal 1 "Error building Lustre rpms."
591 # $MAKE_J "$MAKE_CC" || fatal 1 "Error building Lustre."
597 (( $INSTALL_KERNEL )) || return 0
599 pushd "$TOPDIR/linux" >/dev/null
600 mkdir -p "$DESTDIR/boot"
602 install -m 644 System.map "$DESTDIR/boot/System.map-${FULL_VERSION}"
603 # install -m 644 module-info ...
604 install -m 644 "$CONFIG_FILE" "$DESTDIR/boot/config-${FULL_VERSION}"
606 mkdir -p "$DESTDIR/dev/shm"
607 mkdir -p "$DESTDIR/lib/modules/${FULL_VERSION}"
609 $MAKE "$MAKE_CC" INSTALL_MOD_PATH="$DESTDIR" KERNELRELEASE="$FULL_VERSION" \
610 -s modules_install || \
611 fatal 1 "Error installing modules."
614 cp vmlinuz "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
615 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}"
616 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
618 case "$TARGET_ARCH" in
619 i386 | i586 | i686 | athlon)
620 cp arch/i386/boot/bzImage "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
621 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
622 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
625 cp arch/x86_64/boot/bzImage "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
626 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
627 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
630 cp vmlinux "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
631 ln -sf "$DESTDIR/boot/vmlinux-${FULL_VERSION}" "../lib/modules/${FULL_VERSION}/vmlinux"
634 gzip -cfv vmlinux > vmlinuz
635 mkdir -p "$DESTDIR/boot/efi/redhat"
636 install -m 755 vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
637 install -m 755 vmlinuz "$DESTDIR/boot/efi/redhat/vmlinuz-${FULL_VERSION}"
638 ln -sf "../../../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/efi/redhat/vmlinux-${FULL_VERSION}"
639 ln -sf "efi/redhat/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
640 ln -sf "efi/redhat/vmlinuz-${FULL_VERSION}" "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
643 cp vmlinuz "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
644 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}"
645 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
649 if [ -e init/kerntypes.o ] ; then
650 cp init/kerntypes.o "$DESTDIR/boot/Kerntypes-${FULL_VERSION}"
658 (( $INSTALL_LUSTRE )) || return 0
660 KVERREL="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
661 i="$DESTDIR/lib/modules/${FULL_VERSION}"
666 if (( $LINUX26 )) ; then
667 ln -sf ../../../usr/src/linux-${KVERREL}-obj/${TARGET_ARCH}/${TARGET_CONFIG} $i/build
668 ln -sf ../../../usr/src/linux-${KVERREL} $i/source
670 ln -sf ../../../usr/src/linux-${KVERREL} $i/build
676 (( $INSTALL_LUSTRE )) || return 0
679 pushd "$TOPDIR" >/dev/null
680 $MAKE "$MAKE_CC" -s install "DESTDIR=$DESTDIR" KERNELRELEASE="$FULL_VERSION" || fatal 1 "Error installing Lustre."
686 (( $BUILD_KERNEL )) || return 0
687 (( $SUSEBUILD )) || return 0
689 mkdir -p "${TOPDIR}/modules-${FULL_VERSION}"
690 for dir in /usr/src/kernel-modules/* ; do
691 # we are replacing lustre-lite, so don't include it
692 if [ "${dir##*/}" != "lustre-lite" -a -e $dir/Makefile ]; then
693 build_dir="${TOPDIR}/modules-${FULL_VERSION}/${dir##*/}"
694 cp -a $dir $build_dir
695 # these modules are terrible, and don't all build
696 $MAKE_J "$MAKE_CC" -C $build_dir modules KERNEL_SOURCE="${TOPDIR}/linux"
703 local file=$1 name=${1%.ko}
705 | sed -ne 's,^0*\([0-9a-f]\{8\}\) A __crc_\(.*\),0x\1\t\2\t'"$name"',p'
710 (( $INSTALL_KERNEL )) || return 0
711 (( $LINUX26 )) || return 0
713 for build_dir in "${TOPDIR}/modules-${FULL_VERSION}/*" ; do
714 [ -d $build_dir ] || continue
715 # these modules are terrible, and don't all build
716 $MAKE "$MAKE_CC" -C $build_dir KERNEL_SOURCE="${TOPDIR}/linux" INSTALL_MOD_PATH="$DESTDIR"
718 local symvers_file="${DESTDIR}/boot/symvers-${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}-${TARGET_ARCH}"
719 if [ -n "$TARGET_CONFIG" ]; then
720 symvers_file="${symvers_file}${TARGET_DELIMITER}${TARGET_CONFIG}"
722 symvers_file="$symvers_file.gz"
724 moddir="${DESTDIR}/lib/modules/${FULL_VERSION}"
726 for module in $(find * -name '*.ko'); do
730 for module in $(find * -path 'kernel/*' -prune -o \
731 -name '*.ko' -print); do
734 ) | sort -u -k2 | gzip -c9 > $symvers_file
739 (( $SAVE_HEADERS )) || return 0
741 echo "Saving headers for ${TARGET_CONFIG:-up} ${TARGET_ARCH}..."
742 pushd linux >/dev/null
744 KVERREL="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
745 # deal with the kernel headers that are version specific
747 saveddir="$RPM_BUILD_ROOT/usr/src/linux-${KVERREL}/savedheaders/${TARGET_ARCH}/${TARGET_CONFIG:-up}"
749 install -m 644 include/linux/autoconf.h "$saveddir/autoconf.h"
750 install -m 644 include/linux/version.h "$saveddir/version.h"
751 mv include/linux/modules "$saveddir/"
752 echo ${TARGET_ARCH} ${TARGET_CONFIG} ../../savedheaders/${TARGET_ARCH}/${TARGET_CONFIG:-up}/ \
753 >> "$RPM_BUILD_ROOT/usr/src/linux-${KVERREL}/savedheaders/list"
759 (( $SAVE_HEADERS )) || return 0
761 for arch in $BIGMEM_ARCHS ; do
762 save_headers bigmem $arch
765 for arch in $BOOT_ARCHS ; do
766 save_headers BOOT $arch
769 for arch in $JENSEN_ARCHS ; do
770 save_headers jensen $arch
773 for arch in $SMP_ARCHS ; do
774 save_headers smp $arch
777 for arch in $BIGSMP_ARCHS ; do
778 save_headers bigsmp $arch
780 for arch in $PSERIES64_ARCHS ; do
781 save_headers pseries64 $arch
783 for arch in $UP_ARCHS ; do
784 save_headers up $arch
788 longopts="build,build-lustre,build-kernel,depend-kernel,destdir:,extraversion:"
789 longopts="$longopts,help,install,install-lustre,install-kernel,kerneldir:"
790 longopts="$longopts,save-headers,target:,target-arch:,target-config:,unpack-kernel,xen"
792 options=$(getopt -o hj: -l "$longopts" -- "$@")
794 eval set -- "$options"
883 usage 1 "Unrecognized option: $1"
890 EXTRA_VERSION_DELIMITER=${EXTRA_VERSION_DELIMITER:-"-"}
891 FULL_VERSION="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
892 if [ -n "$TARGET_CONFIG" ]; then
893 FULL_VERSION="${FULL_VERSION}${TARGET_DELIMITER}${TARGET_CONFIG}"
903 if [ -n "$OFED_VERSION" ]; then
904 if [ "$OFED_VERSION" = "inkernel" ]; then
905 CONFIGURE_FLAGS="--with-o2ib=yes ${CONFIGURE_FLAGS}"