aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/openib.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index 2e7ccde04..70ed99616 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -55,6 +55,15 @@ case ${PV} in
;;
esac
+case ${MY_PN} in
+ ofa_kernel)
+ EXT="tgz"
+ ;;
+ *)
+ EXT="tar.gz"
+ ;;
+esac
+
S="${WORKDIR}/${MY_PN}-${MY_PV}"
# @FUNCTION: openib_src_unpack
@@ -63,5 +72,5 @@ S="${WORKDIR}/${MY_PN}-${MY_PV}"
openib_src_unpack() {
unpack ${A}
rpm_unpack "OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
- unpack ./${MY_PN}-${MY_PV}.tar.gz
+ unpack ./${MY_PN}-${MY_PV}.${EXT}
}