Contents of /smage/trunk/core/kernel-alx/kernel-alx-3.0-r1.smage2
Parent Directory | Revision Log
Revision 3197 -
(show annotations)
(download)
Wed Sep 14 09:34:39 2011 UTC (12 years, 8 months ago) by niro
File size: 3578 byte(s)
Wed Sep 14 09:34:39 2011 UTC (12 years, 8 months ago) by niro
File size: 3578 byte(s)
auto added: ver bump to 3.0-r1
1 | # $Id$ |
2 | |
3 | # base alx kernel: |
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 | # enabled cgroups support |
8 | # enabled devtmpfs automount |
9 | # dropped deprecated ata support, rely on pata/sata |
10 | # enabled verbose ata error reporting |
11 | # removed deprecated Intersil Prism GT/Duette/Indigo PCI/Cardbus driver in favor of the softmac driver |
12 | # enabled usbip staging drivers |
13 | |
14 | # what type are we building (sources or image) ? |
15 | KERNEL_TYPE="image" |
16 | |
17 | # which branch we're using |
18 | BRANCH="alx" |
19 | |
20 | PNAME="kernel-${BRANCH}" |
21 | |
22 | PVER="3.0" |
23 | PBUILD="r1" |
24 | |
25 | PCATEGORIE="sys-kernel" |
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.16 |
31 | >= sys-fs/udev-173 |
32 | >= sys-apps/mkinitrd-6.5 |
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 kernel functions |
42 | sminclude kernel 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$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
51 | http://ftp.uni-erlangen.de/pub/Linux/MIRROR.kernel/v$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
52 | mirror://kernel-${BRANCH}/${SRCFILE} |
53 | mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 |
54 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0100-3.0.1-all-fixes.patch patches-${PVER}-${PBUILD}" |
55 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0101-3.0.2-all-fixes.patch patches-${PVER}-${PBUILD}" |
56 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0102-3.0.3-all-fixes.patch patches-${PVER}-${PBUILD}" |
57 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0103-3.0.4-all-fixes.patch patches-${PVER}-${PBUILD}" |
58 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0150-3.0-fbcondecor-0.9.6.patch patches-${PVER}-${PBUILD}" |
59 | "mirror://kernel-${BRANCH}/patches-${PVER}-${PBUILD}/0153-3.0-unionfs-2.5.9.2.patch patches-${PVER}-${PBUILD}" |
60 | ) |
61 | |
62 | UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" |
63 | |
64 | src_prepare() |
65 | { |
66 | kernel_src_prepare || die |
67 | |
68 | # 001-100 - ck patches (deprecated atm) |
69 | # 100-150 - official updates |
70 | mpatch patches-${PVER}-${PBUILD}/0100-3.0.1-all-fixes.patch || die |
71 | mpatch patches-${PVER}-${PBUILD}/0101-3.0.2-all-fixes.patch || die |
72 | mpatch patches-${PVER}-${PBUILD}/0102-3.0.3-all-fixes.patch || die |
73 | mpatch patches-${PVER}-${PBUILD}/0103-3.0.4-all-fixes.patch || die |
74 | # 150-300 - magellan patches, driver updates etc |
75 | mpatch patches-${PVER}-${PBUILD}/0150-3.0-fbcondecor-0.9.6.patch || die |
76 | mpatch patches-${PVER}-${PBUILD}/0153-3.0-unionfs-2.5.9.2.patch || die |
77 | # 300-400 - compilations fixes and other |
78 | } |
79 | |
80 | src_install() |
81 | { |
82 | kernel_src_install || die |
83 | |
84 | # compress all kernel modules |
85 | find ${BINDIR} -name \*.ko | xargs gzip -9 || die |
86 | } |
87 | |
88 | postinstall() |
89 | { |
90 | local kernel_image |
91 | local kernel_description |
92 | |
93 | kernel_image_postinstall |
94 | |
95 | kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" |
96 | kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" |
97 | alx_grub_update ${kernel_image} ${kernel_description} |
98 | |
99 | # upgrade modprobe.conf |
100 | if [[ -x ${MROOT}/sbin/modules-update ]] |
101 | then |
102 | ${MROOT}/sbin/modules-update --assume-kernel=${KPVER}-${KBRANCH}-${KPBUILD} |
103 | fi |
104 | |
105 | alx_postinstall |
106 | } |