summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2012-10-12 13:20:56 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2012-10-12 13:20:56 +0000
commitce6e164e1a56b958a0eca66a093dd65a92bd78be (patch)
tree99d4659d57c646a1a7f8ddbea9b1be2a1a129cce /eclass/openib.eclass
parent[sys-infiniband] OFED 3.5 rc2 update (diff)
downloadgentoo-2-ce6e164e1a56b958a0eca66a093dd65a92bd78be.tar.gz
gentoo-2-ce6e164e1a56b958a0eca66a093dd65a92bd78be.tar.bz2
gentoo-2-ce6e164e1a56b958a0eca66a093dd65a92bd78be.zip
[eclass] update openib
Diffstat (limited to 'eclass/openib.eclass')
-rw-r--r--eclass/openib.eclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index eba4f799208e..abb846cce5d7 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.6 2012/10/12 11:44:23 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.7 2012/10/12 13:20:56 alexxy Exp $
# @ECLASS: openib.eclass
# @AUTHOR:
@@ -56,13 +56,20 @@ block_other_ofed_versions() {
done
}
-OFED_BASE_VER=$(get_version_component_range 1-3 ${OFED_VER})
+OFED_BASE_VER=$(get_version_component_range 1 '-' $(get_version_component_range 1-3 ${OFED_VER}))
SRC_URI="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VER}/OFED-${OFED_VER}.tgz"
case ${PN} in
ofed)
- MY_PN="ofa_kernel"
+ case ${PV} in
+ 1.5.*|1.5.*.*)
+ MY_PN="ofa_kernel"
+ ;;
+ *)
+ MY_PN="compat-rdma"
+ ;;
+ esac
;;
*)
MY_PN="${PN}"