Whamcloud - gitweb
LU-1513 libcfs: call cfs_alloc with proper masks
[fs/lustre-release.git] / build / lbuild-rhel5
index 1ab4b8a..473347f 100644 (file)
@@ -28,6 +28,7 @@ Patch99995: linux-%{kversion}-lustre.patch' \
            -e '/_sourcedir\/kabitool -b \./a\
     cp $RPM_BUILD_ROOT/kabi_whitelist $RPM_SOURCE_DIR/kabi_whitelist_%{_target_cpu}$Flavour' \
            -e '/^%prep$/,/^# END OF PATCH APPLICATIONS$/s/kernel-%{kversion}/%{name}-%{kversion}/g' \
+    -e 's/^\(%define signmodules \).*/\10/' \
           SPECS/$SPEC_NAME 2>&1 || \
         fatal 1 "Error while editing SPECS/$SPEC_NAME"
 
@@ -91,10 +92,26 @@ unpack_linux_devel_rpm-rhel5() {
 
     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
 
 }
+
+find_linux_rpm-rhel5() {
+    local prefix="$1"
+    local wanted_kernel="$2"
+    local pathtorpms=${3:-"${KERNELRPMSBASE}/${lnxmaj}/${DISTRO}/${TARGET_ARCH}"}
+
+    find_linux_rpm-rhel "$prefix" "$wanted_kernel" "$pathtorpms"
+}
+
+kernel_srpm_location() {
+
+    echo "http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/"
+
+}