***SPAM*** Re: ***SPAM*** [ofa-general][CONFIG SCRIPT] compiling OFED-1.2 with RHEL5.1

Devesh Sharma devesh28 at gmail.com
Tue Feb 3 06:14:42 PST 2009


This configuration script has to be run before following normal
compiling procedure. It must be run from Top Level OFED-1.2 directory
with both the patches in the same directory.

#!/bin/bash
ofed_top_dir=$(pwd)
package_name=ofa_kernel
package=ofa_kernel-1.2
package_rel=0

echo Installing ${package_name} source rpm:
if ! ( set -x && rpm -i --define "_topdir $(pwd)"
SRPMS/${package}-${package_rel}.src.rpm && set +x ); then
        echo "Failed to install ${package}-${package_rel}.src.rpm"
        exit 1
fi

cd SOURCES
tar zxf ofa_kernel-1.2.tgz

cd ofa_kernel-1.2
patch -p1<${ofed_top_dir}/OFED-1.2_RHEL5.1_fix.patch
cp ${ofed_top_dir}/kmem_cache_create_fix.patch
${ofed_top_dir}/SOURCES/ofa_kernel-1.2/kernel_patches/backport/2.6.18-EL5.1/
cd -

tar zcf ofa_kernel-1.2.tgz ofa_kernel-1.2
cd ${ofed_top_dir}

echo Rebuilding ${package_name} source rpm:
if ! ( set -x && rpmbuild -bs --define "_topdir $(pwd)"
SPECS/${package_name}.spec && set +x ); then
        echo Failed to create ${package}-${package_rel}.src.rpm
        exit 1
fi

rm -rf SOURCES/${package}*

-regards
Devesh Sharma



More information about the general mailing list