/[gentoo-x86]/eclass/openib.eclass
Gentoo

Diff of /eclass/openib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.4 2012/04/18 16:47:30 alexxy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.5 2012/04/18 18:16:12 alexxy Exp $
4 4
5# @ECLASS: openib.eclass 5# @ECLASS: openib.eclass
6# @AUTHOR: 6# @AUTHOR:
7# Original Author: Alexey Shvetsov <alexxy@gentoo.org> 7# Original Author: Alexey Shvetsov <alexxy@gentoo.org>
8# @BLURB: Simplify working with OFED packages 8# @BLURB: Simplify working with OFED packages
26# @DESCRIPTION: 26# @DESCRIPTION:
27# Defines if src tarball is git snapshot 27# Defines if src tarball is git snapshot
28 28
29SLOT="${OFED_VER}" 29SLOT="${OFED_VER}"
30 30
31# @ECLASS-VARIABLE: OFED_VERSIONS
32# @DESCRIPTION:
33# Defines array of ofed version supported by eclass
34
31OFED_VERSIONS=( 35OFED_VERSIONS=(
32 "1.5.1" 36 "1.5.1"
33 "1.5.2" 37 "1.5.2"
34 "1.5.3" 38 "1.5.3"
35 "1.5.3.1" 39 "1.5.3.1"
37 "1.5.4" 41 "1.5.4"
38 "1.5.4.1" 42 "1.5.4.1"
39 "3.2" 43 "3.2"
40 ) 44 )
41 45
46# @FUNCTION: block_other_ofed_versions
47# @DESCRIPTION:
48# function that creates blockers list for ofed
42block_other_ofed_versions() { 49block_other_ofed_versions() {
43 local slot 50 local slot
44 RDEPEND+=" !sys-infiniband/${PN}:0" 51 RDEPEND+=" !sys-infiniband/${PN}:0"
45 for slot in ${OFED_VERSIONS[@]}; do 52 for slot in ${OFED_VERSIONS[@]}; do
46 if [[ ${slot} != ${SLOT} ]]; then 53 if [[ ${slot} != ${SLOT} ]]; then
50} 57}
51 58
52OFED_BASE_VER=$(get_version_component_range 1-3 ${OFED_VER}) 59OFED_BASE_VER=$(get_version_component_range 1-3 ${OFED_VER})
53 60
54SRC_URI="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VER}/OFED-${OFED_VER}.tgz" 61SRC_URI="http://www.openfabrics.org/downloads/OFED/ofed-${OFED_BASE_VER}/OFED-${OFED_VER}.tgz"
55
56DOCS=( AUTHORS ChangeLog README TODO )
57 62
58case ${PN} in 63case ${PN} in
59 ofed) 64 ofed)
60 MY_PN="ofa_kernel" 65 MY_PN="ofa_kernel"
61 ;; 66 ;;
80 *) 85 *)
81 EXT="tar.gz" 86 EXT="tar.gz"
82 ;; 87 ;;
83esac 88esac
84 89
85# if its snapshot then S may be different
86if [ -z ${OFED_SNAPSHOT} ]; then 90if [ -z ${OFED_SRC_SNAPSHOT} ]; then
87 S="${WORKDIR}/${MY_PN}-${MY_PV}" 91 S="${WORKDIR}/${MY_PN}-${MY_PV}"
88else 92else
89 S="${WORKDIR}/${MY_PN}-${MY_PV}-${OFED_SUFFIX}" 93 S="${WORKDIR}/${MY_PN}-${MY_PV}-${OFED_SUFFIX}"
90fi 94fi
95
91 96
92# @FUNCTION: openib_src_unpack 97# @FUNCTION: openib_src_unpack
93# @DESCRIPTION: 98# @DESCRIPTION:
94# This function will unpack OFED packages 99# This function will unpack OFED packages
95openib_src_unpack() { 100openib_src_unpack() {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20