Contents of /smage/branches/alx-0_6_0/core/kernel26-alx/kernel26-alx-3.10.84-r1.smage2
Parent Directory | Revision Log
Revision 6795 -
(show annotations)
(download)
Wed Jul 22 09:28:53 2015 UTC (9 years, 2 months ago) by niro
File size: 12474 byte(s)
Wed Jul 22 09:28:53 2015 UTC (9 years, 2 months ago) by niro
File size: 12474 byte(s)
-fixed SRCFILE and removed a PCATEGORIE typo
1 | # $Id$ |
2 | |
3 | # base alx kernel: |
4 | # using linux-3.10.84 |
5 | |
6 | # what type are we building (sources or image) ? |
7 | KERNEL_TYPE="image" |
8 | COMPRESS_MODULES="gzip" |
9 | LINUX_FIRMWARE="20150629" |
10 | |
11 | # which branch we're using |
12 | BRANCH="alx" |
13 | |
14 | PNAME="kernel26-${BRANCH}" |
15 | |
16 | # 2.6.x.x subver style |
17 | PSUBVER="" |
18 | |
19 | PVER="3.10.84${PSUBVER}" |
20 | PBUILD="r1" |
21 | |
22 | # set the right tarball version |
23 | TARBALLPVER="${PVER%.*}" |
24 | |
25 | PCATEGORIE="sys-kernel" |
26 | |
27 | DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support." |
28 | HOMEPAGE="http://magellan-linux.net" |
29 | |
30 | DEPEND=">= sys-apps/module-init-tools-3.12 |
31 | >= sys-fs/udev-166 |
32 | >= sys-apps/mkinitrd-6.3.5 |
33 | >= virtual/initscripts" |
34 | |
35 | SDEPEND=">= sys-dev/bc-1.06" |
36 | |
37 | PROVIDE="virtual/kernel |
38 | virtual/alsa-drivers" |
39 | |
40 | SRCFILE="linux-${TARBALLPVER}.tar.bz2" |
41 | SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" |
42 | |
43 | # include global kernel26 functions |
44 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
45 | sminclude kernel26 mtools alx |
46 | |
47 | # --- extra drivers included in this kernel: --- |
48 | # we do not bundle ati-drivers and nvidia-glx drivers anymore |
49 | # use our new module builders! |
50 | # --- eot extra drivers --- |
51 | |
52 | SRC_URI=( |
53 | http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1).x/${SRCFILE} |
54 | mirror://kernel26-${BRANCH}/${SRCFILE} |
55 | mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 |
56 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0100-3.10.1-all-fixes.patch |
57 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0101-3.10.2-all-fixes.patch |
58 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0102-3.10.3-all-fixes.patch |
59 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0103-3.10.4-all-fixes.patch |
60 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0104-3.10.5-all-fixes.patch |
61 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0105-3.10.6-all-fixes.patch |
62 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0106-3.10.7-all-fixes.patch |
63 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0107-3.10.8-all-fixes.patch |
64 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0108-3.10.9-all-fixes.patch |
65 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0109-3.10.10-all-fixes.patch |
66 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0110-3.10.11-all-fixes.patch |
67 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0111-3.10.12-all-fixes.patch |
68 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0112-3.10.13-all-fixes.patch |
69 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0113-3.10.14-all-fixes.patch |
70 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0114-3.10.15-all-fixes.patch |
71 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0115-3.10.16-all-fixes.patch |
72 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0116-3.10.17-all-fixes.patch |
73 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0117-3.10.18-all-fixes.patch |
74 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0118-3.10.19-all-fixes.patch |
75 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0119-3.10.20-all-fixes.patch |
76 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0120-3.10.21-all-fixes.patch |
77 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0121-3.10.22-all-fixes.patch |
78 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0122-3.10.23-all-fixes.patch |
79 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0123-3.10.24-all-fixes.patch |
80 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0124-3.10.25-all-fixes.patch |
81 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0125-3.10.26-all-fixes.patch |
82 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0126-3.10.27-all-fixes.patch |
83 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0127-3.10.28-all-fixes.patch |
84 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0128-3.10.29-all-fixes.patch |
85 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0129-3.10.30-all-fixes.patch |
86 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0130-3.10.31-all-fixes.patch |
87 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0131-3.10.32-all-fixes.patch |
88 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0132-3.10.33-all-fixes.patch |
89 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0133-3.10.34-all-fixes.patch |
90 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0134-3.10.35-all-fixes.patch |
91 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0135-3.10.36-all-fixes.patch |
92 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0136-3.10.37-all-fixes.patch |
93 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0137-3.10.38-all-fixes.patch |
94 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0138-3.10.39-all-fixes.patch |
95 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0139-3.10.40-all-fixes.patch |
96 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0140-3.10.41-all-fixes.patch |
97 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0141-3.10.42-all-fixes.patch |
98 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0142-3.10.43-all-fixes.patch |
99 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0143-3.10.44-all-fixes.patch |
100 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0144-3.10.45-all-fixes.patch |
101 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0145-3.10.46-all-fixes.patch |
102 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0146-3.10.47-all-fixes.patch |
103 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0147-3.10.48-all-fixes.patch |
104 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0148-3.10.49-all-fixes.patch |
105 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0149-3.10.50-all-fixes.patch |
106 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0150-3.10.51-all-fixes.patch |
107 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0151-3.10.52-all-fixes.patch |
108 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0152-3.10.53-all-fixes.patch |
109 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0153-3.10.54-all-fixes.patch |
110 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0154-3.10.55-all-fixes.patch |
111 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0155-3.10.56-all-fixes.patch |
112 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0156-3.10.57-all-fixes.patch |
113 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0157-3.10.58-all-fixes.patch |
114 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0158-3.10.59-all-fixes.patch |
115 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0159-3.10.60-all-fixes.patch |
116 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0160-3.10.61-all-fixes.patch |
117 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0161-3.10.62-all-fixes.patch |
118 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0162-3.10.63-all-fixes.patch |
119 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0163-3.10.64-all-fixes.patch |
120 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0164-3.10.65-all-fixes.patch |
121 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0165-3.10.66-all-fixes.patch |
122 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0166-3.10.67-all-fixes.patch |
123 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0167-3.10.68-all-fixes.patch |
124 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0168-3.10.69-all-fixes.patch |
125 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0169-3.10.70-all-fixes.patch |
126 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0170-3.10.71-all-fixes.patch |
127 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0171-3.10.72-all-fixes.patch |
128 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0172-3.10.73-all-fixes.patch |
129 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0173-3.10.74-all-fixes.patch |
130 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0174-3.10.75-all-fixes.patch |
131 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0175-3.10.76-all-fixes.patch |
132 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0176-3.10.77-all-fixes.patch |
133 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0177-3.10.78-all-fixes.patch |
134 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0178-3.10.79-all-fixes.patch |
135 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0179-3.10.80-all-fixes.patch |
136 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0180-3.10.81-all-fixes.patch |
137 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0181-3.10.82-all-fixes.patch |
138 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0182-3.10.83-all-fixes.patch |
139 | mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0183-3.10.84-all-fixes.patch |
140 | ) |
141 | |
142 | UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" |
143 | |
144 | kernel_apply_patches() |
145 | { |
146 | cd ${SRCDIR} |
147 | |
148 | # 001-100 - ck patches (deprecated atm) |
149 | # 100-150 - official updates |
150 | mpatch 0100-3.10.1-all-fixes.patch || die |
151 | mpatch 0101-3.10.2-all-fixes.patch || die |
152 | mpatch 0102-3.10.3-all-fixes.patch || die |
153 | mpatch 0103-3.10.4-all-fixes.patch || die |
154 | mpatch 0104-3.10.5-all-fixes.patch || die |
155 | mpatch 0105-3.10.6-all-fixes.patch || die |
156 | mpatch 0106-3.10.7-all-fixes.patch || die |
157 | mpatch 0107-3.10.8-all-fixes.patch || die |
158 | mpatch 0108-3.10.9-all-fixes.patch || die |
159 | mpatch 0109-3.10.10-all-fixes.patch || die |
160 | mpatch 0110-3.10.11-all-fixes.patch || die |
161 | mpatch 0111-3.10.12-all-fixes.patch || die |
162 | mpatch 0112-3.10.13-all-fixes.patch || die |
163 | mpatch 0113-3.10.14-all-fixes.patch || die |
164 | mpatch 0114-3.10.15-all-fixes.patch || die |
165 | mpatch 0115-3.10.16-all-fixes.patch || die |
166 | mpatch 0116-3.10.17-all-fixes.patch || die |
167 | mpatch 0117-3.10.18-all-fixes.patch || die |
168 | mpatch 0118-3.10.19-all-fixes.patch || die |
169 | mpatch 0119-3.10.20-all-fixes.patch || die |
170 | mpatch 0120-3.10.21-all-fixes.patch || die |
171 | mpatch 0121-3.10.22-all-fixes.patch || die |
172 | mpatch 0122-3.10.23-all-fixes.patch || die |
173 | mpatch 0123-3.10.24-all-fixes.patch || die |
174 | mpatch 0124-3.10.25-all-fixes.patch || die |
175 | mpatch 0125-3.10.26-all-fixes.patch || die |
176 | mpatch 0126-3.10.27-all-fixes.patch || die |
177 | mpatch 0127-3.10.28-all-fixes.patch || die |
178 | mpatch 0128-3.10.29-all-fixes.patch || die |
179 | mpatch 0129-3.10.30-all-fixes.patch || die |
180 | mpatch 0130-3.10.31-all-fixes.patch || die |
181 | mpatch 0131-3.10.32-all-fixes.patch || die |
182 | mpatch 0132-3.10.33-all-fixes.patch || die |
183 | mpatch 0133-3.10.34-all-fixes.patch || die |
184 | mpatch 0134-3.10.35-all-fixes.patch || die |
185 | mpatch 0135-3.10.36-all-fixes.patch || die |
186 | mpatch 0136-3.10.37-all-fixes.patch || die |
187 | mpatch 0137-3.10.38-all-fixes.patch || die |
188 | mpatch 0138-3.10.39-all-fixes.patch || die |
189 | mpatch 0139-3.10.40-all-fixes.patch || die |
190 | mpatch 0140-3.10.41-all-fixes.patch || die |
191 | mpatch 0141-3.10.42-all-fixes.patch || die |
192 | mpatch 0142-3.10.43-all-fixes.patch || die |
193 | mpatch 0143-3.10.44-all-fixes.patch || die |
194 | mpatch 0144-3.10.45-all-fixes.patch || die |
195 | mpatch 0145-3.10.46-all-fixes.patch || die |
196 | mpatch 0146-3.10.47-all-fixes.patch || die |
197 | mpatch 0147-3.10.48-all-fixes.patch || die |
198 | mpatch 0148-3.10.49-all-fixes.patch || die |
199 | mpatch 0149-3.10.50-all-fixes.patch || die |
200 | mpatch 0150-3.10.51-all-fixes.patch || die |
201 | mpatch 0151-3.10.52-all-fixes.patch || die |
202 | mpatch 0152-3.10.53-all-fixes.patch || die |
203 | mpatch 0153-3.10.54-all-fixes.patch || die |
204 | mpatch 0154-3.10.55-all-fixes.patch || die |
205 | mpatch 0155-3.10.56-all-fixes.patch || die |
206 | mpatch 0156-3.10.57-all-fixes.patch || die |
207 | mpatch 0157-3.10.58-all-fixes.patch || die |
208 | mpatch 0158-3.10.59-all-fixes.patch || die |
209 | mpatch 0159-3.10.60-all-fixes.patch || die |
210 | mpatch 0160-3.10.61-all-fixes.patch || die |
211 | mpatch 0161-3.10.62-all-fixes.patch || die |
212 | mpatch 0162-3.10.63-all-fixes.patch || die |
213 | mpatch 0163-3.10.64-all-fixes.patch || die |
214 | mpatch 0164-3.10.65-all-fixes.patch || die |
215 | mpatch 0165-3.10.66-all-fixes.patch || die |
216 | mpatch 0166-3.10.67-all-fixes.patch || die |
217 | mpatch 0167-3.10.68-all-fixes.patch || die |
218 | mpatch 0168-3.10.69-all-fixes.patch || die |
219 | mpatch 0169-3.10.70-all-fixes.patch || die |
220 | mpatch 0170-3.10.71-all-fixes.patch || die |
221 | mpatch 0171-3.10.72-all-fixes.patch || die |
222 | mpatch 0172-3.10.73-all-fixes.patch || die |
223 | mpatch 0173-3.10.74-all-fixes.patch || die |
224 | mpatch 0174-3.10.75-all-fixes.patch || die |
225 | mpatch 0175-3.10.76-all-fixes.patch || die |
226 | mpatch 0176-3.10.77-all-fixes.patch || die |
227 | mpatch 0177-3.10.78-all-fixes.patch || die |
228 | mpatch 0178-3.10.79-all-fixes.patch || die |
229 | mpatch 0179-3.10.80-all-fixes.patch || die |
230 | mpatch 0180-3.10.81-all-fixes.patch || die |
231 | mpatch 0181-3.10.82-all-fixes.patch || die |
232 | mpatch 0182-3.10.83-all-fixes.patch || die |
233 | mpatch 0183-3.10.84-all-fixes.patch || die |
234 | # 150-300 - magellan patches, driver updates etc |
235 | # 300-400 - compilations fixes and other |
236 | } |
237 | |
238 | postinstall() |
239 | { |
240 | local kernel_image |
241 | local kernel_description |
242 | |
243 | kernel26_image_postinstall |
244 | |
245 | kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" |
246 | kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" |
247 | alx_grub_update ${kernel_image} ${kernel_description} |
248 | |
249 | # upgrade modprobe.conf |
250 | if [[ -x ${MROOT}/sbin/modules-update ]] |
251 | then |
252 | ${MROOT}/sbin/modules-update --assume-kernel=${KPVER}-${KBRANCH}-${KPBUILD} |
253 | fi |
254 | |
255 | alx_postinstall |
256 | } |
257 | |
258 | postremove() |
259 | { |
260 | local kernel_image |
261 | local kernel_description |
262 | |
263 | kernel26_image_postremove |
264 | |
265 | kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" |
266 | kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" |
267 | alx_grub_update ${kernel_image} ${kernel_description} |
268 | } |