Contents of /smage/branches/alx-0_6_0/core/kernel26-alx/kernel26-alx-2.6.37-r4.smage2
Parent Directory | Revision Log
Revision 4891 -
(show annotations)
(download)
Tue May 28 12:41:19 2013 UTC (11 years, 3 months ago) by niro
File size: 3987 byte(s)
Tue May 28 12:41:19 2013 UTC (11 years, 3 months ago) by niro
File size: 3987 byte(s)
-rev bump to 2.6.37-r4, enabled modules to support Philips SpeechMike II/III
1 | # $Id$ |
2 | |
3 | # base alx kernel: |
4 | # using linux-2.6.37.6 |
5 | # using fbcondecor-0.9.6 (http://dev.gentoo.org/~spock/projects/fbcondecor/) |
6 | # using unionfs-2.5.7 (http://www.filesystems.org/project-unionfs.html) |
7 | # enabled support for large block devices to be able to mount ext4 filesystems |
8 | # enabled usbserial device drivers |
9 | # enabled nouveau drm driver (staging) |
10 | # enabled usbip drivers (staging) |
11 | # enabled x86 platform drivers and notebook extras |
12 | # enabled usb-audio for Philips SpeechMike III |
13 | # enabled joystick-interface for Philips SpeechMike III |
14 | |
15 | # what type are we building (sources or image) ? |
16 | KERNEL_TYPE="image" |
17 | COMPRESS_MODULES="gzip" |
18 | LINUX_FIRMWARE="20120304" |
19 | |
20 | # which branch we're using |
21 | BRANCH="alx" |
22 | |
23 | PNAME="kernel26-${BRANCH}" |
24 | |
25 | # 2.6.x.x subver style |
26 | PSUBVER="" |
27 | |
28 | PVER="2.6.37${PSUBVER}" |
29 | PBUILD="r4" |
30 | |
31 | PCATEGORIE="sys-kernel" |
32 | |
33 | DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support." |
34 | HOMEPAGE="http://magellan-linux.net" |
35 | |
36 | DEPEND=">= sys-apps/module-init-tools-3.12 |
37 | >= sys-fs/udev-166 |
38 | >= sys-apps/mkinitrd-6.3.5 |
39 | >= virtual/initscripts" |
40 | |
41 | PROVIDE="virtual/kernel |
42 | virtual/alsa-drivers" |
43 | |
44 | SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2" |
45 | SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" |
46 | |
47 | # include global kernel26 functions |
48 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
49 | sminclude kernel26 mtools alx |
50 | |
51 | # --- extra drivers included in this kernel: --- |
52 | # we do not bundle ati-drivers and nvidia-glx drivers anymore |
53 | # use our new module builders! |
54 | # --- eot extra drivers --- |
55 | |
56 | SRC_URI=( |
57 | http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE} |
58 | mirror://kernel26-${BRANCH}/${SRCFILE} |
59 | mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 |
60 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0100-2.6.37.1-all-fixes.patch patches-${PVER}" |
61 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0101-2.6.37.2-all-fixes.patch patches-${PVER}" |
62 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0102-2.6.37.3-all-fixes.patch patches-${PVER}" |
63 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0103-2.6.37.4-all-fixes.patch patches-${PVER}" |
64 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0104-2.6.37.5-all-fixes.patch patches-${PVER}" |
65 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0105-2.6.37.6-all-fixes.patch patches-${PVER}" |
66 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0150-2.6.37-fbcondecor-0.9.6.patch patches-${PVER}" |
67 | "mirror://kernel26-${BRANCH}/patches-${PVER}/0153-2.6.37-unionfs-2.5.7.patch patches-${PVER}" |
68 | ) |
69 | |
70 | UP2PVER="${PVER}.6" |
71 | UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" |
72 | |
73 | src_prepare() |
74 | { |
75 | kernel26_src_prepare || die |
76 | |
77 | # 001-100 - ck patches (deprecated atm) |
78 | # 100-150 - official updates |
79 | mpatch patches-${PVER}/0100-2.6.37.1-all-fixes.patch || die |
80 | mpatch patches-${PVER}/0101-2.6.37.2-all-fixes.patch || die |
81 | mpatch patches-${PVER}/0102-2.6.37.3-all-fixes.patch || die |
82 | mpatch patches-${PVER}/0103-2.6.37.4-all-fixes.patch || die |
83 | mpatch patches-${PVER}/0104-2.6.37.5-all-fixes.patch || die |
84 | mpatch patches-${PVER}/0105-2.6.37.6-all-fixes.patch || die |
85 | # 150-300 - magellan patches, driver updates etc |
86 | mpatch patches-${PVER}/0150-2.6.37-fbcondecor-0.9.6.patch || die |
87 | mpatch patches-${PVER}/0153-2.6.37-unionfs-2.5.7.patch || die |
88 | # 300-400 - compilations fixes and other |
89 | } |
90 | |
91 | postinstall() |
92 | { |
93 | local kernel_image |
94 | local kernel_description |
95 | |
96 | kernel26_image_postinstall |
97 | |
98 | kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" |
99 | kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" |
100 | alx_grub_update ${kernel_image} ${kernel_description} |
101 | |
102 | # upgrade modprobe.conf |
103 | if [[ -x ${MROOT}/sbin/modules-update ]] |
104 | then |
105 | ${MROOT}/sbin/modules-update --assume-kernel=${KPVER}-${KBRANCH}-${KPBUILD} |
106 | fi |
107 | |
108 | alx_postinstall |
109 | } |
110 | |
111 | postremove() |
112 | { |
113 | local kernel_image |
114 | local kernel_description |
115 | |
116 | kernel26_image_postremove |
117 | |
118 | kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" |
119 | kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" |
120 | alx_grub_update ${kernel_image} ${kernel_description} |
121 | } |