1 # vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
3 # increment this if you have made a change that should force a new kernel
4 # to be built for this release of this distribution (only -- if you want to
5 # force a kernel build on all releases of this distribution, update the BUILD_GEN
6 # variable in build/lbuild-rhel and if you want to force kernel bulid for all
7 # distributions, update the BUILD_GEN variable in build/lbuild)
9 #BUILD_GEN+=".1" # added --with firmware to rpmbuild for rhel6
10 BUILD_GEN+=".0" # TT-107: don't cache the BUILD dir (reset major to 5)
12 source ${0%/*}/lbuild-rhel
14 SPEC_NAME="kernel.spec"
15 DEVEL_PATH_ARCH_DELIMETER="."
20 # edit the SPEC with our changes
21 patch_spec_common "$buildid"
22 sed -i -e '/^# empty final patch file to facilitate testing of kernel patches/i\
23 # adds Lustre patches\
24 Patch99995: linux-%{version}-lustre.patch' \
25 -e '/^ApplyOptionalPatch linux-kernel-test.patch/i\
28 ApplyOptionalPatch linux-%{version}-lustre.patch\
30 SPECS/$SPEC_NAME 2>&1 || \
31 fatal 1 "Error while editing SPECS/$SPEC_NAME"
38 unpack_linux_devel_rpm-rhel6() {
39 local callers_rpm="$1"
41 unpack_linux_devel_rpm-rhel "$callers_rpm"
50 if $KERNEL_LUSTRE_NAMING; then
51 echo -e "--define \"variant -lustre\" \c"
53 echo "--with firmware"
59 find_linux_rpm-rhel6() {
61 local wanted_kernel="$2"
62 local pathtorpms=${3:-"${KERNELRPMSBASE}/${lnxmaj}/${DISTRO}/${TARGET_ARCH}"}
64 find_linux_rpm-rhel "$prefix" "$wanted_kernel" "$pathtorpms"
68 kernel_srpm_location() {
70 echo "ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/"