Magellan Linux

Annotation of /trunk/todo/kernel26-sources-openvz/kernel26-sources-openvz-2.6.24_004.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2399 - (hide annotations) (download)
Thu Jul 9 19:51:24 2009 UTC (14 years, 11 months ago) by niro
File size: 2462 byte(s)
-moved to 'todo'
1 niro 2 # $Header: /magellan-cvs/smage/kernel26-sources-openvz/kernel26-sources-openvz-2.6.24_004.1-r1.smage2,v 1.1 2008/04/09 08:45:51 niro Exp $
2    
3     # linux kernel for openvz systems:
4     # using linux-2.6.24.4
5     # using 2.6.24-004.1 patch set
6     # use modular ide-framework to fix udma issues with nforce boards
7     # disabled drbd support, broken atm and compilation fails
8     # enabled magic sysrq key support and debugging via sysrq keys
9    
10     # what type are we building (sources or image) ?
11     KERNEL_TYPE="sources"
12    
13     # which branch we're using
14     BRANCH="openvz"
15    
16     PNAME="kernel26-sources-${BRANCH}"
17    
18     # 2.6.x.x subver style
19     PSUBVER="_004.1"
20    
21     PVER="2.6.24${PSUBVER}"
22     PBUILD="r1"
23    
24     PCATEGORIE="sys-kernel"
25     STATE="unstable"
26    
27     DESCRIPTION="OpenVZ kernel ${PVER}-${BRANCH}-${PBUILD} sources."
28     HOMEPAGE="http://openvz.org/"
29    
30     DEPEND=""
31    
32     PROVIDE="virtual/kernel-sources"
33    
34     # we are providing a realpkg from now on !
35     # note: for srcinstall only ! no package exists
36     #PKGTYPE="sources"
37    
38     SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2"
39     SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}"
40    
41     # include global kernel26 functions
42     sminclude kernel26
43    
44     # --- extra drivers included in this kernel: ---
45     # --- eot extra drivers ---
46    
47     # we are providing a realpkg from now on !
48     # note2: we prevent to build a package here (smage2)
49     #NOPKGBUILD=true
50    
51     # no need to waste time here
52     NOSTRIP=true
53    
54     SRC_URI=(
55     http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE}
56     mirror://kernel26-${BRANCH}/${SRCFILE}
57     mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i686
58     mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64
59     mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0001-${PVER/${PSUBVER}/}-openvz-combined-${PSUBVER/_/}.patch
60     mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch
61     )
62    
63     src_prepare()
64     {
65     kernel26_src_prepare || die
66    
67     # fix version in version patch
68     sed "s:@MAGELLAN_EXTRAVERSION@:${EXTRAVERSION}:" \
69     ${SOURCEDIR}/${PNAME}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch \
70     > ${SOURCEDIR}/${PNAME}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch-fixed || die
71    
72     # 001-100 - openvz patches
73     mpatch 0001-${PVER/${PSUBVER}/}-openvz-combined-${PSUBVER/_/}.patch || die
74     mpatch 0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch-fixed || die
75     # 100-150 - official updates
76     # 150-300 - magellan patches, driver updates etc
77     # 300-400 - compilations fixes and other
78     }
79    

Properties

Name Value
svn:keywords Id