Magellan Linux

Contents of /smage/trunk/core/kernel-mcore/kernel-mcore-3.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1861 - (show annotations) (download)
Thu Sep 29 15:24:29 2011 UTC (12 years, 7 months ago) by niro
File size: 2765 byte(s)
auto added: ver bump to 3.0-r1
1 # $Id$
2
3 # based on the standard magellan kernel (3.0-magellan-r1):
4 # using linux-3.0.4
5 # using fbcondecor-0.9.6 (http://dev.gentoo.org/~spock/projects/fbcondecor/)
6 # using unionfs-2.5.9.2 (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="kernel-${BRANCH}"
15
16 # 2.6.x.x subver style
17 PSUBVER=""
18
19 PVER="3.0${PSUBVER}"
20 PBUILD="r1"
21
22 PCATEGORIE="sys-kernel"
23
24 DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support."
25 HOMEPAGE="http://magellan-linux.net"
26
27 DEPEND=">= sys-apps/module-init-tools-3.16
28 >= sys-fs/udev-173
29 >= sys-apps/mkinitrd-6.5
30 >= virtual/initscripts"
31
32 PROVIDE="virtual/kernel
33 virtual/alsa-drivers"
34
35 SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2"
36 SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"
37
38 sminclude kernel mtools
39
40 SRC_URI=(
41 http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE}
42 http://ftp.uni-erlangen.de/pub/Linux/MIRROR.kernel/v$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE}
43 mirror://kernel-${BRANCH}/${SRCFILE}
44 mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486
45 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0100-3.0.1-all-fixes.patch patches-${PVER}-${PBUILD}"
46 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0101-3.0.2-all-fixes.patch patches-${PVER}-${PBUILD}"
47 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0102-3.0.3-all-fixes.patch patches-${PVER}-${PBUILD}"
48 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0103-3.0.4-all-fixes.patch patches-${PVER}-${PBUILD}"
49 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0150-3.0-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}"
50 "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0153-3.0-unionfs-2.5.9.2.patch patches-${PVER}-${PBUILD}"
51 )
52
53 UP2PVER="${PVER}.4"
54 UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'"
55
56 src_prepare()
57 {
58 kernel_src_prepare || die
59
60 # 001-100 - ck patches (deprecated atm)
61 # 100-150 - official updates
62 mpatch patches-${PVER}-${PBUILD}/0100-3.0.1-all-fixes.patch || die
63 mpatch patches-${PVER}-${PBUILD}/0101-3.0.2-all-fixes.patch || die
64 mpatch patches-${PVER}-${PBUILD}/0102-3.0.3-all-fixes.patch || die
65 mpatch patches-${PVER}-${PBUILD}/0103-3.0.4-all-fixes.patch || die
66 # 150-300 - magellan patches, driver updates etc
67 mpatch patches-${PVER}-${PBUILD}/0150-3.0-fbcondecor-0.9.6.patch || die
68 mpatch patches-${PVER}-${PBUILD}/0153-3.0-unionfs-2.5.9.2.patch || die
69 # 300-400 - compilations fixes and other
70 }
71
72 src_install()
73 {
74 kernel_src_install || die
75
76 # compress all kernel modules
77 find ${BINDIR} -name \*.ko | xargs gzip -9 || die
78 }