fi
case $TARGET in
+ 3.12-sles12)
+ CANONICAL_TARGET="sles12"
+ ;;
3.10-rhel7)
CANONICAL_TARGET="rhel7"
;;
# go away and the target just specify the $RPMSMPTYPE
[ -z "$RPMSMPTYPE" ] && set_rpm_smp_type
- # CC might have been overwriten in TARGET_FILE
+ # CC might have been overwritten in TARGET_FILE
if [[ $CC != ccache\ * ]] && which "$CCACHE" &>/dev/null; then
export CCACHE && export CC="ccache $CC"
fi
targets="--target $arch $targets"
done
- local confoptions=""
-
- if $PATCHLESS; then
- confoptions="$confoptions --disable-server"
- fi
-
local rpmbuildopt='-tb'
if $NORPM; then
rpmbuildopt='-tc'
fi
RPMBUILD_DEFS="$RPMBUILD_DEFS ${FIND_REQUIRES:+--define \"__find_requires $FIND_REQUIRES\"}"
- RPMBUILD_DEFS="$RPMBUILD_DEFS --define \"configure_args $confoptions ${CONFIGURE_FLAGS}\""
+ RPMBUILD_DEFS="$RPMBUILD_DEFS --define \"configure_args ${CONFIGURE_FLAGS}\""
RPMBUILD_DEFS="$RPMBUILD_DEFS --define \"kdir $linux\""
RPMBUILD_DEFS="$RPMBUILD_DEFS ${linuxobj:+--define \"kobjdir $linuxobj\"}"
RPMBUILD_DEFS="$RPMBUILD_DEFS --define \"_tmppath $TMPDIR\""
}
+# Only zfs Lustre DKMS Server is supported
build_lustre_dkms() {
[ -n "$MPSS_VERSION" ] && return 0
local ver=$(eval echo $(awk '/LUSTRE_VERSION_STRING/ {print $3}' lustre/include/lustre_ver.h))
echo "Building Lustre DKMS RPMs for: $BUILD_ARCHS..."
./configure --enable-dist || return 255
- $RPMBUILD --define="_topdir $TOPDIR" -bs lustre-dkms.spec || return 255
- $RPMBUILD --rebuild --define="_topdir $TOPDIR" $TOPDIR/SRPMS/lustre-dkms-$ver-*.src.rpm || return 255
+
+ if $PATCHLESS; then
+ $RPMBUILD --define="_topdir $TOPDIR" --without servers -bs lustre-dkms.spec || return 255
+ $RPMBUILD --rebuild --define="_topdir $TOPDIR" --without servers $TOPDIR/SRPMS/lustre-client-dkms-$ver-*.src.rpm || return 255
+ else
+ $RPMBUILD --define="_topdir $TOPDIR" -bs lustre-dkms.spec || return 255
+ $RPMBUILD --rebuild --define="_topdir $TOPDIR" $TOPDIR/SRPMS/lustre-dkms-$ver-*.src.rpm || return 255
+ fi
return 0
}
# The spl/zfs spec files expect RPM_BUILD_ROOT to point to the root of the
# destination for the rpms
export RPM_BUILD_ROOT=$TOPDIR
- SPLZFSVER=${SPLZFSVER:-0.6.3-1.2}
+ SPLZFSVER=${SPLZFSVER:-0.6.4.2}
SPLZFSTAG=${SPLZFSTAG:-}
# The files expect a kver to be set to the kernel version .