X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=contrib%2Flbuild%2Flbuild-rhel6;h=ea5f0257b9dc022cfb85919d720bd8207e79948d;hp=4f8f2ab3032350576adab6e32b996958ceedb89d;hb=363e287ac9e8d07287d117ae4e85afb1015deca0;hpb=0041b3977ec04bd74092dc7ea0e329074c9aba27 diff --git a/contrib/lbuild/lbuild-rhel6 b/contrib/lbuild/lbuild-rhel6 index 4f8f2ab..ea5f025 100644 --- a/contrib/lbuild/lbuild-rhel6 +++ b/contrib/lbuild/lbuild-rhel6 @@ -29,17 +29,15 @@ 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-%{_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'\ + -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" - return 0 } @@ -79,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/" + +}