Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/kernel26-alx/kernel26-alx-2.6.37-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2113 - (show annotations) (download)
Thu May 12 20:03:07 2011 UTC (13 years ago) by niro
File size: 3976 byte(s)
-update modprobe.conf with modules-update
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
10 # what type are we building (sources or image) ?
11 KERNEL_TYPE="image"
12
13 # which branch we're using
14 BRANCH="alx"
15
16 PNAME="kernel26-${BRANCH}"
17
18 # 2.6.x.x subver style
19 PSUBVER=""
20
21 PVER="2.6.37${PSUBVER}"
22 PBUILD="r1"
23
24 PCATEGORIE="sys-kernel"
25 STATE="unstable"
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 >= virtual/initscripts"
33
34 PROVIDE="virtual/kernel
35 virtual/alsa-drivers"
36
37 SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2"
38 SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"
39
40 # include global kernel26 functions
41 REMOVE_DEPRECATED_MAGE_TARGETS=1
42 sminclude kernel26 mtools alx
43
44 # --- extra drivers included in this kernel: ---
45 # we do not bundle ati-drivers and nvidia-glx drivers anymore
46 # use our new module builders!
47 # --- eot extra drivers ---
48
49 SRC_URI=(
50 http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE}
51 mirror://kernel26-${BRANCH}/${SRCFILE}
52 mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486
53 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0100-2.6.37.1-all-fixes.patch patches-${PVER}-${PBUILD}"
54 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0101-2.6.37.2-all-fixes.patch patches-${PVER}-${PBUILD}"
55 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0102-2.6.37.3-all-fixes.patch patches-${PVER}-${PBUILD}"
56 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0103-2.6.37.4-all-fixes.patch patches-${PVER}-${PBUILD}"
57 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0104-2.6.37.5-all-fixes.patch patches-${PVER}-${PBUILD}"
58 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0105-2.6.37.6-all-fixes.patch patches-${PVER}-${PBUILD}"
59 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0150-2.6.37-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}"
60 "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch patches-${PVER}-${PBUILD}"
61 )
62
63 UP2PVER="${PVER}.6"
64 UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'"
65
66 src_prepare()
67 {
68 kernel26_src_prepare || die
69
70 # 001-100 - ck patches (deprecated atm)
71 # 100-150 - official updates
72 mpatch patches-${PVER}-${PBUILD}/0100-2.6.37.1-all-fixes.patch || die
73 mpatch patches-${PVER}-${PBUILD}/0101-2.6.37.2-all-fixes.patch || die
74 mpatch patches-${PVER}-${PBUILD}/0102-2.6.37.3-all-fixes.patch || die
75 mpatch patches-${PVER}-${PBUILD}/0103-2.6.37.4-all-fixes.patch || die
76 mpatch patches-${PVER}-${PBUILD}/0104-2.6.37.5-all-fixes.patch || die
77 mpatch patches-${PVER}-${PBUILD}/0105-2.6.37.6-all-fixes.patch || die
78 # 150-300 - magellan patches, driver updates etc
79 mpatch patches-${PVER}-${PBUILD}/0150-2.6.37-fbcondecor-0.9.6.patch || die
80 mpatch patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch || die
81 # 300-400 - compilations fixes and other
82 }
83
84 src_install()
85 {
86 kernel26_src_install || die
87
88 # compress all kernel modules
89 find ${BINDIR} -name \*.ko | xargs gzip -9 || die
90 }
91
92 postinstall()
93 {
94 local kernel_image
95 local kernel_description
96
97 # fixes an annoying warning
98 new-kernel-pkg() { true; }
99
100 kernel26_image_postinstall
101
102 kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}"
103 kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}"
104 alx_grub_update ${kernel_image} ${kernel_description}
105
106 # upgrade modprobe.conf
107 if [[ -x ${MROOT}/sbin/modules-update ]]
108 then
109 ${MROOT}/sbin/modules-update --assume-kernel=${KPVER}-${KBRANCH}-${KPBUILD}
110 fi
111
112 alx_postinstall
113 }
114
115 postremove()
116 {
117 # fixes an annoying warning
118 new-kernel-pkg() { true; }
119 kernel26_image_postremove
120 }