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
290 [[ $CC != ccache\ * ]] && CC="$CCACHE $CC"
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)
333 untar "$KERNEL_FILE" || fatal 1 "Error unpacking Linux tarball"
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 sed -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 --with-rds-mod --with-iser-mod --with-qlgc_vnic-mod --with-madeye-mod $configure_options" $(lbuild_topdir)/OFED/SRPMS/ofa_kernel-*.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-*-${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 ${PATCHLESS:+--define "lustre_name lustre-client"} \
589 --define "_tmppath $TMPDIR" \
590 --define "_topdir $(lbuild_topdir)" || \
591 fatal 1 "Error building Lustre rpms."
592 # $MAKE_J "$MAKE_CC" || fatal 1 "Error building Lustre."
598 (( $INSTALL_KERNEL )) || return 0
600 pushd "$TOPDIR/linux" >/dev/null
601 mkdir -p "$DESTDIR/boot"
603 install -m 644 System.map "$DESTDIR/boot/System.map-${FULL_VERSION}"
604 # install -m 644 module-info ...
605 install -m 644 "$CONFIG_FILE" "$DESTDIR/boot/config-${FULL_VERSION}"
607 mkdir -p "$DESTDIR/dev/shm"
608 mkdir -p "$DESTDIR/lib/modules/${FULL_VERSION}"
610 $MAKE "$MAKE_CC" INSTALL_MOD_PATH="$DESTDIR" KERNELRELEASE="$FULL_VERSION" \
611 -s modules_install || \
612 fatal 1 "Error installing modules."
615 cp vmlinuz "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
616 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}"
617 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
619 case "$TARGET_ARCH" in
620 i386 | i586 | i686 | athlon)
621 cp arch/i386/boot/bzImage "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
622 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
623 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
626 cp arch/x86_64/boot/bzImage "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
627 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
628 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
631 cp vmlinux "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
632 ln -sf "$DESTDIR/boot/vmlinux-${FULL_VERSION}" "../lib/modules/${FULL_VERSION}/vmlinux"
635 gzip -cfv vmlinux > vmlinuz
636 mkdir -p "$DESTDIR/boot/efi/redhat"
637 install -m 755 vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/"
638 install -m 755 vmlinuz "$DESTDIR/boot/efi/redhat/vmlinuz-${FULL_VERSION}"
639 ln -sf "../../../lib/modules/${FULL_VERSION}/vmlinux" "$DESTDIR/boot/efi/redhat/vmlinux-${FULL_VERSION}"
640 ln -sf "efi/redhat/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
641 ln -sf "efi/redhat/vmlinuz-${FULL_VERSION}" "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
644 cp vmlinuz "$DESTDIR/boot/vmlinuz-${FULL_VERSION}"
645 cp vmlinux "$DESTDIR/lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}"
646 ln -sf "../lib/modules/${FULL_VERSION}/vmlinux-${FULL_VERSION}" "$DESTDIR/boot/vmlinux-${FULL_VERSION}"
650 if [ -e init/kerntypes.o ] ; then
651 cp init/kerntypes.o "$DESTDIR/boot/Kerntypes-${FULL_VERSION}"
659 (( $INSTALL_LUSTRE )) || return 0
661 KVERREL="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
662 i="$DESTDIR/lib/modules/${FULL_VERSION}"
667 if (( $LINUX26 )) ; then
668 ln -sf ../../../usr/src/linux-${KVERREL}-obj/${TARGET_ARCH}/${TARGET_CONFIG} $i/build
669 ln -sf ../../../usr/src/linux-${KVERREL} $i/source
671 ln -sf ../../../usr/src/linux-${KVERREL} $i/build
677 (( $INSTALL_LUSTRE )) || return 0
680 pushd "$TOPDIR" >/dev/null
681 $MAKE "$MAKE_CC" -s install "DESTDIR=$DESTDIR" KERNELRELEASE="$FULL_VERSION" || fatal 1 "Error installing Lustre."
687 (( $BUILD_KERNEL )) || return 0
688 (( $SUSEBUILD )) || return 0
690 mkdir -p "${TOPDIR}/modules-${FULL_VERSION}"
691 for dir in /usr/src/kernel-modules/* ; do
692 # we are replacing lustre-lite, so don't include it
693 if [ "${dir##*/}" != "lustre-lite" -a -e $dir/Makefile ]; then
694 build_dir="${TOPDIR}/modules-${FULL_VERSION}/${dir##*/}"
695 cp -a $dir $build_dir
696 # these modules are terrible, and don't all build
697 $MAKE_J "$MAKE_CC" -C $build_dir modules KERNEL_SOURCE="${TOPDIR}/linux"
704 local file=$1 name=${1%.ko}
706 | sed -ne 's,^0*\([0-9a-f]\{8\}\) A __crc_\(.*\),0x\1\t\2\t'"$name"',p'
711 (( $INSTALL_KERNEL )) || return 0
712 (( $LINUX26 )) || return 0
714 for build_dir in "${TOPDIR}/modules-${FULL_VERSION}/*" ; do
715 [ -d $build_dir ] || continue
716 # these modules are terrible, and don't all build
717 $MAKE "$MAKE_CC" -C $build_dir KERNEL_SOURCE="${TOPDIR}/linux" INSTALL_MOD_PATH="$DESTDIR"
719 local symvers_file="${DESTDIR}/boot/symvers-${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}-${TARGET_ARCH}"
720 if [ -n "$TARGET_CONFIG" ]; then
721 symvers_file="${symvers_file}${TARGET_DELIMITER}${TARGET_CONFIG}"
723 symvers_file="$symvers_file.gz"
725 moddir="${DESTDIR}/lib/modules/${FULL_VERSION}"
727 for module in $(find * -name '*.ko'); do
731 for module in $(find * -path 'kernel/*' -prune -o \
732 -name '*.ko' -print); do
735 ) | sort -u -k2 | gzip -c9 > $symvers_file
740 (( $SAVE_HEADERS )) || return 0
742 echo "Saving headers for ${TARGET_CONFIG:-up} ${TARGET_ARCH}..."
743 pushd linux >/dev/null
745 KVERREL="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
746 # deal with the kernel headers that are version specific
748 saveddir="$RPM_BUILD_ROOT/usr/src/linux-${KVERREL}/savedheaders/${TARGET_ARCH}/${TARGET_CONFIG:-up}"
750 install -m 644 include/linux/autoconf.h "$saveddir/autoconf.h"
751 install -m 644 include/linux/version.h "$saveddir/version.h"
752 mv include/linux/modules "$saveddir/"
753 echo ${TARGET_ARCH} ${TARGET_CONFIG} ../../savedheaders/${TARGET_ARCH}/${TARGET_CONFIG:-up}/ \
754 >> "$RPM_BUILD_ROOT/usr/src/linux-${KVERREL}/savedheaders/list"
760 (( $SAVE_HEADERS )) || return 0
762 for arch in $BIGMEM_ARCHS ; do
763 save_headers bigmem $arch
766 for arch in $BOOT_ARCHS ; do
767 save_headers BOOT $arch
770 for arch in $JENSEN_ARCHS ; do
771 save_headers jensen $arch
774 for arch in $SMP_ARCHS ; do
775 save_headers smp $arch
778 for arch in $BIGSMP_ARCHS ; do
779 save_headers bigsmp $arch
781 for arch in $PSERIES64_ARCHS ; do
782 save_headers pseries64 $arch
784 for arch in $UP_ARCHS ; do
785 save_headers up $arch
789 longopts="build,build-lustre,build-kernel,depend-kernel,destdir:,extraversion:"
790 longopts="$longopts,help,install,install-lustre,install-kernel,kerneldir:"
791 longopts="$longopts,save-headers,target:,target-arch:,target-config:,unpack-kernel,xen"
793 options=$(getopt -o hj: -l "$longopts" -- "$@")
795 eval set -- "$options"
884 usage 1 "Unrecognized option: $1"
891 EXTRA_VERSION_DELIMITER=${EXTRA_VERSION_DELIMITER:-"-"}
892 FULL_VERSION="${VERSION}${EXTRA_VERSION_DELIMITER}${EXTRA_VERSION}"
893 if [ -n "$TARGET_CONFIG" ]; then
894 FULL_VERSION="${FULL_VERSION}${TARGET_DELIMITER}${TARGET_CONFIG}"
904 if [ -n "$OFED_VERSION" ]; then
905 if [ "$OFED_VERSION" = "inkernel" ]; then
906 CONFIGURE_FLAGS="--with-o2ib=yes ${CONFIGURE_FLAGS}"