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