Gentoo Archives: gentoo-commits

From: "Joshua Kinard (kumba)" <kumba@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-kernel/mips-sources: mips-sources-3.18.5.ebuild ChangeLog mips-sources-3.18.3.ebuild
Date: Sun, 01 Feb 2015 08:13:02
Message-Id: 20150201081256.1BD7C10CF5@oystercatcher.gentoo.org
1 kumba 15/02/01 08:12:56
2
3 Modified: ChangeLog
4 Added: mips-sources-3.18.5.ebuild
5 Removed: mips-sources-3.18.3.ebuild
6 Log:
7 Update to 3.18.5, fix compile failure in IP27 RTC platform driver, update to linux-mips-git 20150130.
8
9 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D25D95E3)
10
11 Revision Changes Path
12 1.154 sys-kernel/mips-sources/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/mips-sources/ChangeLog?rev=1.154&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/mips-sources/ChangeLog?rev=1.154&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/mips-sources/ChangeLog?r1=1.153&r2=1.154
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v
21 retrieving revision 1.153
22 retrieving revision 1.154
23 diff -u -r1.153 -r1.154
24 --- ChangeLog 21 Jan 2015 02:31:16 -0000 1.153
25 +++ ChangeLog 1 Feb 2015 08:12:56 -0000 1.154
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-kernel/mips-sources
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.153 2015/01/21 02:31:16 patrick Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/ChangeLog,v 1.154 2015/02/01 08:12:56 kumba Exp $
31 +
32 +*mips-sources-3.18.5 (01 Feb 2015)
33 +
34 + 01 Feb 2015; Joshua Kinard <kumba@g.o> +mips-sources-3.18.5.ebuild,
35 + -mips-sources-3.18.3.ebuild:
36 + Update to 3.18.5, fix compile failure in IP27 RTC platform driver, update to
37 + linux-mips-git 20150130.
38
39 21 Jan 2015; Patrick Lauer <patrick@g.o> metadata.xml:
40 Remove unneded useflag description from metadata.xml
41
42
43
44 1.1 sys-kernel/mips-sources/mips-sources-3.18.5.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/mips-sources/mips-sources-3.18.5.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/mips-sources/mips-sources-3.18.5.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mips-sources-3.18.5.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/mips-sources/mips-sources-3.18.5.ebuild,v 1.1 2015/02/01 08:12:56 kumba Exp $
54
55 # EAPI Version
56 EAPI="5"
57
58 # INCLUDED:
59 # 1) linux sources from kernel.org
60 # 2) linux-mips.org GIT snapshot diff
61 # 3) Generic Fixes
62 # 4) Patch for the IOC3 Metadriver (IP27, IP30)
63 # 5) Patch for IP30 Support
64 # 6) Experimental patches (if needed)
65
66 #//------------------------------------------------------------------------------
67
68 # Version Data
69 OKV=${PV/_/-}
70 GITDATE="20150130" # Date of diff between kernel.org and lmo GIT
71 GENPATCHREV="2" # Tarball revision for patches
72
73 # Directories
74 S="${WORKDIR}/linux-${OKV}-${GITDATE}"
75 MIPS_PATCHES="${WORKDIR}/mips-patches"
76
77 # Kernel-2 Vars
78 K_SECURITY_UNSUPPORTED="1"
79 K_NOUSENAME="0"
80 K_NOUSEPR="0"
81 K_USEPV="0"
82 ETYPE="sources"
83
84 # Inherit Eclasses
85 inherit kernel-2 eutils
86 detect_version
87
88 # Version Data
89 F_KV="${PVR}"
90 BASE_KV="$(get_version_component_range 1-2).0"
91 [[ "${EXTRAVERSION}" = -rc* ]] && KVE="${EXTRAVERSION}"
92
93 # Portage Vars
94 HOMEPAGE="http://www.linux-mips.org/ http://www.gentoo.org/"
95 SLOT="${OKV}"
96 KEYWORDS="-* ~mips"
97 IUSE="cobalt ip27 ip28 ip30 ip32r10k"
98 DEPEND=">=sys-devel/gcc-4.6.0"
99 RDEPEND=""
100
101 # Machine Support Control Variables
102 DO_IP22="test" # If "yes", enable IP22 support (SGI Indy, Indigo2 R4x00)
103 DO_IP27="yes" # IP27 support (SGI Origin)
104 DO_IP28="test" # IP28 support (SGI Indigo2 Impact R10000)
105 DO_IP30="yes" # IP30 support (SGI Octane)
106 DO_IP32="yes" # IP32 support (SGI O2, R5000/RM5200 Only)
107 DO_CBLT="test" # Cobalt Support (Cobalt Microsystems)
108
109 # Machine Stable Version Variables
110 SV_IP22="" # If set && DO_IP22 == "no", indicates last "good" IP22 version
111 SV_IP27="" # DO_IP27 == "no", IP27
112 SV_IP28="" # DO_IP28 == "no", IP28
113 SV_IP30="" # DO_IP30 == "no", IP30
114 SV_IP32="" # DO_IP32 == "no", IP32
115 SV_CBLT="" # DO_CBLT == "no", Cobalt
116
117 DESCRIPTION="Linux-Mips GIT sources for MIPS-based machines, dated ${GITDATE}"
118 SRC_URI="${KERNEL_URI}
119 mirror://gentoo/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz
120 mirror://gentoo/${PN}-${BASE_KV}-patches-v${GENPATCHREV}.tar.xz"
121
122 UNIPATCH_STRICTORDER="1"
123 UNIPATCH_LIST="${DISTDIR}/mipsgit-${BASE_KV}${KVE}-${GITDATE}.diff.xz"
124
125 #//------------------------------------------------------------------------------
126
127 # Eblit Handling Functions
128 #
129 # They'll likely be superseded someday by better ideas, possibly elibs.
130
131 # eblit-core
132 # Usage: <function> [version]
133 # Main eblit engine
134 eblit-core() {
135 local e v func=$1 ver=$2
136 for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
137 e="${FILESDIR}/eblits/${func}${v}.eblit"
138 if [[ -e ${e} ]] ; then
139 . "${e}"
140 [[ ${func} == pkg_* ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
141 return 0
142 fi
143 done
144 return 1
145 }
146
147 # eblit-include
148 # Usage: [--skip] <function> [version]
149 # Includes an "eblit" -- a chunk of common code among ebuilds in a given
150 # package so that its functions can be sourced and utilized within the
151 # ebuild.
152 eblit-include() {
153 local skipable=false r=0
154 [[ $1 == "--skip" ]] && skipable=true && shift
155 [[ $1 == pkg_* ]] && skipable=true
156
157 [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
158 eblit-core $1 $2
159 r="$?"
160 ${skipable} && return 0
161 [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
162 }
163
164 # eblit-run-maybe
165 # Usage: <function>
166 # Runs a function if it is defined in an eblit
167 eblit-run-maybe() {
168 [[ $(type -t "$@") == "function" ]] && "$@"
169 }
170
171 # eblit-run
172 # Usage: <function> [version]
173 # Runs a function defined in an eblit
174 eblit-run() {
175 eblit-include --skip common "${*:2}"
176 eblit-include "$@"
177 eblit-run-maybe eblit-$1-pre
178 eblit-${PN}-$1
179 eblit-run-maybe eblit-$1-post
180 }
181
182 # eblit-pkg
183 # Usage: <phase> [version]
184 # Runs the pkg_* functions AND evals them so they're included in the binpkgs
185 eblit-pkg() {
186 [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
187 eblit-core pkg_$1 $2
188 }
189
190 #//------------------------------------------------------------------------------
191
192 load_eblit_funcs() {
193 # This is a sanity check to avoid QA issues. It prevents
194 # eblits from being referenced during metadata operations.
195 [ -n "${MIPS_SOURCES_EBLITS_LOADED}" ] && return
196
197 # All are in ${FILESDIR}/eblits
198 # If a message for a given machine needs to change,
199 # then we create a new eblit and increment the
200 # version and reference it here.
201 eblit-include err_disabled_mach v1
202 eblit-include err_only_one_mach_allowed v1
203 eblit-include show_ip22_info v3
204 eblit-include show_ip27_info v2
205 eblit-include show_ip28_info v1
206 eblit-include show_ip30_info v3
207 eblit-include show_ip32_info v3
208 eblit-include show_cobalt_info v1
209
210 # This makes sure pkg_setup & pkg_postinst gets into any binpkg.
211 # Neccessary because we can't guarantee FILESDIR is around for binpkgs.
212 eblit-pkg setup v1
213 eblit-pkg postinst v1
214
215 # Eblit load complete
216 MIPS_SOURCES_EBLITS_LOADED=1
217 }
218
219 pkg_setup() {
220 load_eblit_funcs
221 pkg_setup
222 }
223
224 src_unpack() { eblit-run src_unpack v4 ; }
225
226 #//------------------------------------------------------------------------------