We have a small patch to lbuild to build against Mellanox 1.5.3-3.  One
patch is to allow specifying of OFED build trees by name rather than
version, the second patch is to build with the mellanox ofed.

These are from 2.1.2 on RHEL6 but they apply elsewhere as well.

Ashley.

On Wed, 2012-05-30 at 12:54 -0700, Michael Shuey wrote:
> We're using 1.8.7.80-wc1 here.  It's basically 1.8.7-wc1, but with a
> few fixes pulled in from git a few months back to build on rhel6.2.
> It's built on top of Mellanox's OFED 1.5.3-3.0.0, and is working just
> fine on our FDR14 cluster.
> 
> --
> Mike Shuey
> 
> 
> On Wed, May 30, 2012 at 3:41 PM, John White <[email protected]> wrote:
> > Does anyone know of Lustre version that can build against an ofed that 
> > supports FDR14 (1.5.4+, by my understanding)?  Or is this still in the 
> > pipes?
> >
> > The compat matrix on the Whamcloud site only talks of support up to 1.5.3.1 
> > (confirmed to build but doesn't support FDR14).
> > ----------------
> > John White
> > HPC Systems Engineer
> > (510) 486-7307
> > One Cyclotron Rd, MS: 50C-3209C
> > Lawrence Berkeley National Lab
> > Berkeley, CA 94720
> >
> > _______________________________________________
> > Lustre-discuss mailing list
> > [email protected]
> > http://lists.lustre.org/mailman/listinfo/lustre-discuss
> _______________________________________________
> Lustre-discuss mailing list
> [email protected]
> http://lists.lustre.org/mailman/listinfo/lustre-discuss

diff -r 7d5dec13571e lustre/kernel_patches/targets/2.6-rhel6.target.in
--- a/lustre/kernel_patches/targets/2.6-rhel6.target.in	Tue May 22 12:32:58 2012 +0100
+++ b/lustre/kernel_patches/targets/2.6-rhel6.target.in	Tue May 22 12:37:20 2012 +0100
@@ -7,7 +7,8 @@
 LUSTRE_VERSION=@VERSION@
 
 DEVEL_PATH_ARCH_DELIMETER="."
-OFED_VERSION=inkernel
+OFED_VERSION=1.5.3
+OFED_TARBALL=MLNX_OFED_SRC-1.5.3-3.0.0.tgz
 
 BASE_ARCHS="i686 x86_64 ia64 ppc64"
 BIGMEM_ARCHS=""

diff -r 7121b6da363f build/lbuild
--- a/build/lbuild	Tue May 22 12:46:07 2012 +0100
+++ b/build/lbuild	Tue May 22 12:47:05 2012 +0100
@@ -531,6 +531,15 @@
         return 0
     fi
 
+    # If a full filename has been provided instead of just a version
+    # then use that.
+    if [ -n ${OFED_TARBALL} ]; then
+        if [ -f ${KERNELDIR}/${OFED_TARBALL} ]; then
+            return 0
+        fi
+        fatal 1 "${OFED_TARBALL} not found in ${KERNELDIR}"
+    fi
+
     local OFED_BASE_VERSION=$OFED_VERSION
     if [[ $OFED_VERSION = *.*.*.* ]]; then
         OFED_BASE_VERSION=${OFED_VERSION%.*}
@@ -692,10 +701,17 @@
 
 unpack_ofed() {
 
-    if ! untar "$KERNELDIR/OFED-${OFED_VERSION}.tgz"; then
-        return 1
+    if [ -n "${OFED_TARBALL}" ]; then
+        if ! untar "$KERNELDIR/${OFED_TARBALL}"; then
+            return 1
+        fi
+    else
+        if ! untar "$KERNELDIR/OFED-${OFED_VERSION}.tgz"; then
+            return 1
+        fi
     fi
     [ -d OFED ] || ln -sf OFED-[0-9].[0-9]* OFED
+    [ -d OFED ] || ln -sf *OFED_SRC-[0-9].[0-9]* OFED
 
 }
 

_______________________________________________
Lustre-discuss mailing list
[email protected]
http://lists.lustre.org/mailman/listinfo/lustre-discuss

Reply via email to