X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild-rhel5;h=111f816a9b854cb70b9a93dba9219a79d2f8921b;hp=1ab4b8a8d285fef3fddf48d85f206f09f50e63e1;hb=945a97dbc2f0323352950d3b54beda9f7ab799a7;hpb=8fd9914d125989b924fc6c0e1d50dfd193a73438 diff --git a/build/lbuild-rhel5 b/build/lbuild-rhel5 index 1ab4b8a..111f816 100644 --- a/build/lbuild-rhel5 +++ b/build/lbuild-rhel5 @@ -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/" + +}