| suse-2.4.21-2 \
| rh-2.4 \
| rhel-2.4 \
- | sles-2.4)
+ | sles-2.4 \
+ | 2.6-patchless)
CANONICAL_TARGET="$TARGET"
;;
esac
. "$TARGET_FILE"
[ "$KERNEL" ] || fatal 1 "Target $TARGET did not specify a kernel."
-# [ "$SERIES" ] || fatal 1 "Target $TARGET did not specify a kernel patch series."
-# [ "$CONFIG" ] || fatal 1 "Target $TARGET did not specify a kernel config."
[ "$VERSION" ] || fatal 1 "Target $TARGET did not specify a kernel version."
if [ "$KERNELDIR" ] ; then
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//-/_}
# prep_build needs the .spec.in from the lustre source
if [ -z "$LINUX" ] ; then
load_target
-
if (( $DO_SRC )) ; then
unpack_linux
patch_linux