Magellan Linux

Annotation of /smage/trunk/core/kernel26-mcore/kernel26-mcore-2.6.37-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1409 - (hide annotations) (download)
Tue Mar 1 22:37:00 2011 UTC (13 years, 3 months ago) by niro
File size: 2682 byte(s)
-2.6.37-mcore-r3: updated to linux-2.6.37.2
1 niro 1409 # $Id$
2    
3     # based on the standard magellan kernel (2.6.33-magellan-r1):
4     # using linux-2.6.37.2
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="mcore"
15    
16     PNAME="kernel26-${BRANCH}"
17    
18     # 2.6.x.x subver style
19     PSUBVER=""
20    
21     PVER="2.6.37${PSUBVER}"
22     PBUILD="r3"
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     >= sys-apps/mkinitrd-6.3
33     >= virtual/initscripts"
34    
35     PROVIDE="virtual/kernel
36     virtual/alsa-drivers"
37    
38     SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2"
39     SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"
40    
41     # include global kernel26 functions
42     sminclude kernel26 mtools
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}/0150-2.6.37-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}"
56     "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch patches-${PVER}-${PBUILD}"
57     )
58    
59     UP2PVER="${PVER}.2"
60     UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'"
61    
62     src_prepare()
63     {
64     kernel26_src_prepare || die
65    
66     # 001-100 - ck patches (deprecated atm)
67     # 100-150 - official updates
68     mpatch patches-${PVER}-${PBUILD}/0100-2.6.37.1-all-fixes.patch || die
69     mpatch patches-${PVER}-${PBUILD}/0101-2.6.37.2-all-fixes.patch || die
70     # 150-300 - magellan patches, driver updates etc
71     mpatch patches-${PVER}-${PBUILD}/0150-2.6.37-fbcondecor-0.9.6.patch || die
72     mpatch patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch || die
73     # 300-400 - compilations fixes and other
74     }
75    
76     src_install()
77     {
78     kernel26_src_install || die
79    
80     # compress all kernel modules
81     find ${BINDIR} -name \*.ko | xargs gzip -9 || die
82     }