Starting MOFED 5.1, rdma-core is required for libib*mad
Test-Parameters: trivial
Change-Id: Id26f3cdb0552933577e1b27384ac82f9f48e2b3a
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40254
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
return 1
fi
[ -d OFED ] || ln -sf MLNX_OFED_SRC-[0-9].[0-9]* OFED
return 1
fi
[ -d OFED ] || ln -sf MLNX_OFED_SRC-[0-9].[0-9]* OFED
- if compare_version $ofed_version 4.7; then
+ if compare_version $ofed_version 4.7 ||
+ compare_version 5.1 $ofed_version; then
[ -d OFED_RPMS ] || ln -sf ${file}/RPMS OFED_RPMS
else
[ -d OFED_RPMS ] || ln -sf ${file}/RPMS/MLNX_LIBS OFED_RPMS
[ -d OFED_RPMS ] || ln -sf ${file}/RPMS OFED_RPMS
else
[ -d OFED_RPMS ] || ln -sf ${file}/RPMS/MLNX_LIBS OFED_RPMS
fi
# now that we have the kernel rpms, we need to lib rpms too
# we don't have to rebuild since MOFED include the binaries
fi
# now that we have the kernel rpms, we need to lib rpms too
# we don't have to rebuild since MOFED include the binaries
- cp -f OFED_RPMS/{libibmad-*,libibverbs-*,libibumad-*,librdmacm*,ibutils*,opensm-*}.${TARGET_ARCH}.rpm \
+ # Starting from MOFED 5.1, rdma-core is required for libib*
+ if compare_version 5.1 $ofed_version; then
+ cp -f OFED_RPMS/rdma-core-*.${TARGET_ARCH}.rpm \
+ ${TOPDIR}/RPMS/${TARGET_ARCH} || \
+ fatal 1 "Failed to copy MOFED rpms"
+ fi
+ cp -f OFED_RPMS/{libib*,librdmacm*,ibutils*,opensm-*,infiniband-diags*}.${TARGET_ARCH}.rpm \
${TOPDIR}/RPMS/${TARGET_ARCH} || \
fatal 1 "Failed to copy MOFED rpms"
;;
${TOPDIR}/RPMS/${TARGET_ARCH} || \
fatal 1 "Failed to copy MOFED rpms"
;;
create_rpmbuild_dirs
fi
# build it
create_rpmbuild_dirs
fi
# build it
- build_kernel_ib "${linux}" "${pre_prefix}${kib_prefix}" "${kib_rpm}" "${ofed_type}"
+ build_kernel_ib "${linux}" "${pre_prefix}${kib_prefix}" "${kib_rpm}" \
+ "${ofed_type}" "${ofed_version}"
if [ -z "$REUSE_SIGNATURE" ]; then
echo "No reuse signature was caculated so not storing the built ofed"
if [ -z "$REUSE_SIGNATURE" ]; then
echo "No reuse signature was caculated so not storing the built ofed"