source ${0%/*}/lbuild-rhel
-SPEC_NAME="kernel-2.6.spec"
+SPEC_NAME="kernel.spec"
patch_spec() {
local buildid="$1"
patch_spec_common "$buildid"
sed -i -e '/^# empty final patch file to facilitate testing of kernel patches/i\
# adds Lustre patches\
-Patch99995: linux-%{kversion}-lustre.patch' \
+Patch99995: linux-%{version}-lustre.patch' \
-e '/^# conditionally applied test patch for debugging convenience/i\
# lustre patch\
%patch99995 -p1\
unpack_linux_devel_rpm-rhel "$callers_rpm"
- if [ ! -f usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-$TARGET_ARCH/symsets-${lnxmaj}${lnxmin}-${lnxrel}.tar.gz ]; then
- fatal 1 "cannot build modules: the Kernel's symsets is missing."
+ if $USE_KABI; then
+ if [ ! -f usr/src/kernels/${lnxmaj}${lnxmin}-${lnxrel}-$TARGET_ARCH/symsets-${lnxmaj}${lnxmin}-${lnxrel}.tar.gz ]; then
+ fatal 1 "cannot build modules: the Kernel's symsets is missing."
+ fi
fi
return 0
kernel_srpm_location() {
- echo "http://mirror.centos.org/centos-5/5/updates/SRPMS/"
+ echo "http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/"
}