Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1094 - (hide annotations) (download)
Tue Jan 25 22:53:38 2011 UTC (13 years, 3 months ago) by niro
File size: 2260 byte(s)
auto added: ver bump to 2.6.37-r1
1 niro 1094 # $Id: kernel26-mcore-2.6.33-r2.smage2 379 2010-05-04 22:44:05Z niro $
2    
3     # based on the standard magellan kernel (2.6.33-magellan-r1):
4     # using linux-2.6.37
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    
8     # what type are we building (sources or image) ?
9     KERNEL_TYPE="image"
10    
11     # which branch we're using
12     BRANCH="mcore"
13    
14     PNAME="kernel26-${BRANCH}"
15    
16     # 2.6.x.x subver style
17     PSUBVER=""
18    
19     PVER="2.6.37${PSUBVER}"
20     PBUILD="r1"
21    
22     PCATEGORIE="sys-kernel"
23     STATE="unstable"
24    
25     DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support."
26     HOMEPAGE="http://magellan-linux.net"
27    
28     DEPEND=">= sys-apps/module-init-tools-3.12
29     >= sys-fs/udev-165
30     >= sys-apps/mkinitrd-6.3
31     >= virtual/initscripts"
32    
33     PROVIDE="virtual/kernel
34     virtual/alsa-drivers"
35    
36     SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2"
37     SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"
38    
39     # include global kernel26 functions
40     sminclude kernel26 mtools
41    
42     # --- extra drivers included in this kernel: ---
43     # we do not bundle ati-drivers and nvidia-glx drivers anymore
44     # use our new module builders!
45     # --- eot extra drivers ---
46    
47     SRC_URI=(
48     http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE}
49     mirror://kernel26-${BRANCH}/${SRCFILE}
50     mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486
51     "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0150-2.6.37-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}"
52     "mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch patches-${PVER}-${PBUILD}"
53     )
54    
55     UP2PVER="${PVER}"
56     UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'"
57    
58     src_prepare()
59     {
60     kernel26_src_prepare || die
61    
62     # 001-100 - ck patches (deprecated atm)
63     # 100-150 - official updates
64     # 150-300 - magellan patches, driver updates etc
65     mpatch patches-${PVER}-${PBUILD}/0150-2.6.37-fbcondecor-0.9.6.patch || die
66     mpatch patches-${PVER}-${PBUILD}/0153-2.6.37-unionfs-2.5.7.patch || die
67     # 300-400 - compilations fixes and other
68     }
69    
70     src_install()
71     {
72     kernel26_src_prepare || die
73    
74     # compress all kernel modules
75     find ${BINDIR} -name \*.ko | xargs gzip -9 || die
76     }