EXTERNAL_PATCHES=
EXTRA_VERSION=
STAGEDIR=
+TMPDIR=${TMPDIR:-"/var/tmp"}
# from target file
KERNEL=
if [ "$EXTRA_VERSION_save" ] ; then
EXTRA_VERSION="$EXTRA_VERSION_save"
elif ! (( $RELEASE )) ; then
- #remove the @VERSION@ (lustre version)
- EXTRA_VERSION=$(echo $EXTRA_VERSION | sed -e "s/\(.*_lustre\)\..*/\1/")
- EXTRA_VERSION="${EXTRA_VERSION}-${TAG}.${TIMESTAMP}"
+ # if there is no patch series, then this is not a lustre specific
+ # kernel. don't make it look like one
+ if [ -n "$SERIES" ]; then
+ #remove the @VERSION@ (lustre version)
+ EXTRA_VERSION=$(echo $EXTRA_VERSION | sed -e "s/\(.*_lustre\)\..*/\1/")
+ EXTRA_VERSION="${EXTRA_VERSION}-${TAG}.${TIMESTAMP}"
+ fi
fi
# EXTRA_VERSION=${EXTRA_VERSION//-/_}
DIRNAME="lustre-$TAG-$TIMESTAMP"
if [ "$LUSTRE" ] ; then
untar "$LUSTRE"
- [ -d lustre ] || ln -sf lustre* lustre
+ [ -d lustre ] || ln -sf lustre-[0-9].[0-9]* lustre
else
if [ "$USE_DATESTAMP" ]; then
DATESTAMP="-D '$DATE'"
done
$RPMBUILD $targets -bb lustre-kernel-2.4.spec \
+ --define "_tmpdir $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building rpms for $BUILD_ARCHS."
if (( $DO_SRC )) ; then
$RPMBUILD -bs lustre-kernel-2.4.spec \
+ --define "_tmpdir $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building .src.rpm."
fi
./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS}
$RPMBUILD $targets -bb build/lustre.spec \
+ --define "_tmpdir $TMPDIR" \
--define "_topdir $TOPDIR" || \
fatal 1 "Error building rpms for $BUILD_ARCHS."