return 1
fi
[ -d OFED ] || ln -sf MLNX_OFED_SRC-[0-9].[0-9]* OFED
+ [ -d OFED_RPMS ] || ln -sf ${file}/RPMS OFED_RPMS
;;
ifs)
file="IntelIB-Basic.$(echo ${distro_name%%.*} | tr '[:lower:]' '[:upper:]')-${arch}.${ofed_version}"
${SOURCE} 2>&1; then
fatal 1 "Error building ${kib_rpm}"
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-libs*}.${TARGET_ARCH}.rpm \
+ ${TOPDIR}/RPMS/${TARGET_ARCH} || \
+ fatal 1 "Failed to copy MOFED rpms"
;;
esac