X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=contrib%2Flbuild%2Flbuild-rhel6;h=ea5f0257b9dc022cfb85919d720bd8207e79948d;hb=ccabce23bd9e366c345c852f565766a799f61238;hp=5f42ae224433ad91daae15b370436366d8ff131e;hpb=1ba98baf8be1622464faca80ffaeec7a01a04978;p=fs%2Flustre-release.git diff --git a/contrib/lbuild/lbuild-rhel6 b/contrib/lbuild/lbuild-rhel6 index 5f42ae2..ea5f025 100644 --- a/contrib/lbuild/lbuild-rhel6 +++ b/contrib/lbuild/lbuild-rhel6 @@ -16,27 +16,11 @@ SPEC_NAME="kernel.spec" DEVEL_PATH_ARCH_DELIMETER="." USE_KABI=true -patch_spec_6_5() { - sed -i -e '/^# empty final patch file to facilitate testing of kernel patches/i\ -# adds Lustre patches\ -Patch99995: linux-%{version}-lustre.patch' \ - -e '/^ApplyOptionalPatch linux-kernel-test.patch/i\ -\ -# lustre patch\ -ApplyOptionalPatch linux-%{version}-lustre.patch\ -' \ - -e '/rm -f include\/generated\/kernel.cross/i\ - # lustre kernel config.\ - if [ -f %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-2.6-rhel6-%{_target_cpu}.config ]; then\ - echo "# $Arch" > configs/kernel-%{version}-%{_target_cpu}.config\ - cat %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-2.6-rhel6-%{_target_cpu}.config >> configs/kernel-%{version}-%{_target_cpu}.config\ - fi'\ - -e '/^# Dynamically generate kernel/a echo "CONFIG_BH_LRU_SIZE=16" >> config-generic'\ - SPECS/$SPEC_NAME 2>&1 || \ - fatal 1 "Error while editing SPECS/$SPEC_NAME" -} +patch_spec() { + local buildid="$1" -patch_spec_6_6() { + # edit the SPEC with our changes + patch_spec_common "$buildid" sed -i -e '/^# empty final patch file to facilitate testing of kernel patches/i\ # adds Lustre patches\ Patch99995: linux-%{version}-lustre.patch' \ @@ -45,28 +29,14 @@ Patch99995: linux-%{version}-lustre.patch' \ # lustre patch\ ApplyOptionalPatch linux-%{version}-lustre.patch\ ' \ - -e '/rm -f include\/generated\/kernel.cross/i\ - # lustre kernel config.\ - if [ -f %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-2.6-rhel6.6-%{_target_cpu}.config ]; then\ - echo "# $Arch" > configs/kernel-%{version}-%{_target_cpu}.config\ - cat %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-2.6-rhel6.6-%{_target_cpu}.config >> configs/kernel-%{version}-%{_target_cpu}.config\ - fi'\ - -e '/^# Dynamically generate kernel/a echo "CONFIG_BH_LRU_SIZE=16" >> config-generic'\ + -e "/rm -f include\/generated\/kernel.cross/i\\ + # lustre kernel config.\\ + if [ -f %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-$TARGET-%{_target_cpu}.config ]; then\\ + echo \"# \$Arch\" > configs/kernel-%{version}-%{_target_cpu}.config\\ + cat %{_topdir}/lustre/lustre/kernel_patches/kernel_configs/kernel-%{version}-$TARGET-%{_target_cpu}.config >> configs/kernel-%{version}-%{_target_cpu}.config\\ + fi"\ SPECS/$SPEC_NAME 2>&1 || \ fatal 1 "Error while editing SPECS/$SPEC_NAME" -} - -patch_spec() { - local buildid="$1" - - # edit the SPEC with our changes - patch_spec_common "$buildid" - if [ "$TARGET" = "2.6-rhel6.6" ] - then - patch_spec_6_6 - else - patch_spec_6_5 - fi return 0 @@ -107,3 +77,9 @@ kernel_srpm_location() { echo "http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/" } + +kernel_debuginfo_location() { + + echo "http://debuginfo.centos.org/6/x86_64/" + +}