Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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