Whamcloud - gitweb
LU-1305 build: support for osd-zfs
[fs/lustre-release.git] / build / lbuild-rhel5
index 1ab4b8a..111f816 100644 (file)
@@ -7,6 +7,10 @@
 # distributions, update the BUILD_GEN variable in build/lbuild)
 BUILD_GEN+=".0"
 
+# This distro does not support zfs, so define ZFSNOTSUPPORTED
+# use words that make the bash log readable.
+ZFSNOTSUPPORTED="Zfs Not Supported"
+
 source ${0%/*}/lbuild-rhel
 
 SPEC_NAME="kernel-2.6.spec"
@@ -28,6 +32,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 +96,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/"
+
+}