# vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
# increment this if you have made a change that should force a new kernel
-# to build built
-# BUILD_GEN=1
-#BUILD_GEN=2 # bz19952: remove -lustre tag from kernel RPM names
-BUILD_GEN=3 # bz19975 enable the building of src.rpms by default
+# to build built for this distribution (only -- if you want to force a kernel
+# build on all distributions, update the BUILD_GEN variable in build/lbuild)
+BUILD_GEN+=".0"
source ${0%/*}/lbuild-sles
fatal 1 "Unpack error for $kernelrpm"
fi
+ if ! kernelrpm=$(find_rpm "$rpmdir" provides "^kernel-(lustre-)?default-devel = $wanted_kernel"); then
+ fatal 1 "Could not find the kernel-default-devel in $rpmdir/"
+ fi
+
+ if ! rpm2cpio < "$rpmdir/$kernelrpm" | cpio -id > /dev/null 2>&1; then
+ fatal 1 "Unpack error for $kernelrpm"
+ fi
+
+}
+
+find_linux_rpm-sles11() {
+ local prefix="$1"
+ local wanted_kernel="$2"
+ local pathtorpms=${3:-"${KERNELRPMSBASE}/${lnxmaj}/${DISTRO}/${TARGET_ARCH}"}
+
+ # what, oh what, do we do for sles11?
+ # if anyone knows how we get an arbitrary (kernel-source and
+ # kernel-default-base in this case) from the Suse update mechanism,
+ # please feel free to fix this
+
+ fatal 1 "I don't know how to get packages for SLES11"
+
+ return 0
+
}