Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13703 Details for
Bug 22822
sys-kernel/ck-sources: proposals for a tweakable CK kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ck-sources-2.4.21-r2.ebuild
ck-sources-2.4.21-r2.ebuild (text/plain), 5.78 KB, created by
TGL
on 2003-06-22 17:23:54 UTC
(
hide
)
Description:
ck-sources-2.4.21-r2.ebuild
Filename:
MIME Type:
Creator:
TGL
Created:
2003-06-22 17:23:54 UTC
Size:
5.78 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: > >IUSE="build pcmcia supermount xfs acpi nforce2 bootsplash freqscal grsec aavm rmap packetwrit" > >ETYPE="sources" >inherit kernel || die > ># OKV=original kernel version, KV=patched kernel version. >OKV="2.4.21" >KV="2.4.21-ck${PR/r/}" >S=${WORKDIR}/linux-${KV} >EXTRAVERSION="-ck${PR/r/}" > >DESCRIPTION="Full sources for the Con Kolivas's high performance kernel and its optional features" >HOMEPAGE="http://members.optusnet.com.au/ckolivas/kernel" > >### Below is a list of all the available patches: > >## Performance enhancements (installed by default): ># Base ck contains the batch O(1) scheduler, preemptible, ># low latency, and interactivity patch: >BASE_PATCH="patch-1000_O1_PE_LL_0306230135_2.4.21-ck2.bz2" ># Con Colivas autoregulation vm hacks: ># (will be dropped if "aavm" or "rmap" is in USE) >CKVM_PATCH="patch-1010_CKVM_0306200059_2.4.21-ck2.bz2" ># Swap prefetching: >SP_PATCH="patch-1011_SP_0306102217_2.4.21-ck2.bz2" ># Read Latency2: >RL2="patch-1020_RL2_0305310042_2.4.21-ck2.bz2" ># Desktop Tuning 1: >DT1_PATCH="patch-1021_DT1_030531616_2.4.21-ck2.bz2" ># Variable HZ setting: ># USE!=pcmcia (global) >VH_PATCH="patch-1030_VH_0306200116_2.4.21-ck2.bz2" ># Desktop Tuning 2: ># USE!=pcmcia (global) >DT2_PATCH="patch-1031_DT2_0306200119_2.4.21-ck2.bz2" ># Scheduler Tunables: >ST_PATCH="patch-1040_ST_0306230135_2.4.21-ck2.bz2" > >## Extra features: ># Supermount-NG v1.2.7: ># USE=supermount (local) >SM_PATCH="patch-1050_SM1.2.7_0306201731_2.4.21-ck2.patch.bz2" ># XFS file system: ># USE=xfs (local, but already used in gentoo-sources) >XFS_PATCH="patch-1060_XFS1.3.0pre2_0306201757_2.4.21-ck2.bz2" > ># ACPI 20030522: ># USE=acpi (global - should use "acpi4linux"?) >ACPI_PATCH="patch-1070_ACPI_0306201802_2.4.21-ck2.bz2" ># Bootsplash: ># USE=bootsplash (local) >BS_PATCH="patch-1090_BS_0306020027_2.4.21-ck2.bz2" > >## Misc other patches: ># Nvidia Nforce2 update: ># USE=nforce2 (local) >NF2_PATCH="patch-1080_NF2_0305311048_2.4.21-ck2.bz2" ># CPU Frequency scaling for supported laptops: ># USE=freqscal (local) >CFS_PATCH="1100_CFS_0306161356_2.4.21-ck1.patch.bz2" ># Grsec 1.9.9h (depends on 1010 and 1060): ># USE=grsec (local) >GRS_PATCH="patch-1161_GRS1.9.9h_0306230051_2.4.21-ck2.bz2" ># Packet writing for CDRW/DVDR >#USE="packetwrit" (local) >PW_PATCH="patch-1100_PW_0306221328_2.4.21-ck2.bz2" > >## Alternative VMs: ># AAVM: ># USE=aavm (local) >AAVM_PATCH="1010_AAVM_0306191118_2.4.21-ck1.patch.bz2" ># Rmap: ># USE=rmap (local) >RMAP_PATCH="1010_rmap15j_0306172008_2.4.21-ck1.patch.bz2" > > >### Create the SRC_URI from USE flags. >#CK_URL="http://members.optusnet.com.au/ckolivas/kernel" >TGL_URL="http://tdegreni.free.fr/ck-sources" >CK_URL="${TGL_URL}" >SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-${OKV}.tar.bz2 \ > ${CK_URL}/${BASE_PATCH} \ > ${CK_URL}/${CKVM_PATCH} \ > ${CK_URL}/${SP_PATCH} \ > ${CK_URL}/${RL2} \ > ${CK_URL}/${DT1_PATCH} \ > ${CK_URL}/${VH_PATCH} \ > ${CK_URL}/${DT2_PATCH} \ > ${CK_URL}/${ST_PATCH} \ > supermount? ( ${CK_URL}/${SM_PATCH} ) \ > xfs? ( ${CK_URL}/${XFS_PATCH} ) \ > acpi? ( ${CK_URL}/${ACPI_PATCH} ) \ > nforce2? ( ${CK_URL}/${NF2_PATCH} ) \ > bootsplash? ( ${CK_URL}/${BS_PATCH} ) \ > freqscal? ( ${CK_URL}/${CFS_PATCH} ) \ > packetwrit? ( ${CK_URL}/${PW_PATCH} ) \ > rmap? ( ${CK_URL}/${RMAP_PATCH} ) \ > aavm? ( ${CK_URL}/${AAVM_PATCH} ) \ > grsec? ( ${CK_URL}/${XFS_PATCH} ) \ > grsec? ( ${CK_URL}/${GRS_PATCH} )" > >KEYWORDS="~x86 -ppc" >SLOT="${KV}" > >## Utility functions > >add_patches() { > for PATCH in $* > do > if [ ! -L ${PATCH#patch-} ]; then > ln -s ${DISTDIR}/${PATCH} ${PATCH#patch-} || die "Can't add patch ${PATCH}" > fi > done >} > >rem_patches() { > for PATCH in $* > do > if [ -L ${PATCH#patch-} ]; then > rm ${PATCH#patch-} || die "Can't remove patch ${PATCH}" > fi > done >} > >apply_patches() { > cd linux-${OKV} > for PATCH in ../1* > do > einfo "Apply patch ${PATCH#\.\.\/}" > bzcat ${PATCH} | patch -p1 || die "Patching with ${PATCH#\.\.\/} failed." > done > cd .. >} > >## End of the utility functions > >src_unpack() { > > # Unpack the vanilla sources > unpack linux-${OKV}.tar.bz2 > > # Check for conflicts without obvious default choice: > [ -n "`use rmap`" -a -n "`use aavm`" ] && \ > die "You'll have to choose between AAVM and Rmap." > [ -n "`use grsec`" ] && [ -n "`use rmap`" -o -n "`use aavm`" ] && \ > die "Grsecurity patch won't work with AAVM or Rmap." > > # Add the main separate patches: > add_patches ${BASE_PATCH} ${CKVM_PATCH} ${SP_PATCH} ${RL2} ${DT1_PATCH} ${ST_PATCH} ${VH_PATCH} ${DT2_PATCH} > [ -n "`use pcmcia`" ] && \ > einfo "PCMCIA is in use: \"Variable HZ setting\" and \"Desktop Tuning 2\" removed." && \ > rem_patches ${VH_PATCH} ${DT2_PATCH} > > # Add optional patches: > [ -n "`use supermount`" ] && add_patches ${SM_PATCH} > [ -n "`use xfs`" ] && add_patches ${XFS_PATCH} > [ -n "`use acpi`" ] && add_patches ${ACPI_PATCH} > [ -n "`use nforce2`" ] && add_patches ${NF2_PATCH} > [ -n "`use bootsplash`" ] && add_patches ${BS_PATCH} > [ -n "`use rmap`" -o -n "`use aavm`" ] && \ > einfo "A non-CK VM is in use." && \ > rem_patches ${SP_PATCH} ${CKVM_PATCH} > [ -n "`use freqscal`" ] && add_patches ${CFS_PATCH} > [ -n "`use packetwrit`" ] && add_patches ${PW_PATCH} > [ -n "`use grsec`" ] && add_patches ${GRS_PATCH} > [ -n "`use grsec`" -a ! -n "`use xfs`" ] && \ > einfo "Grsec is in use: XFS added." && \ > add_patches ${XFS_PATCH} > [ -n "`use rmap`" ] && add_patches ${RMAP_PATCH} > [ -n "`use aavm`" ] && add_patches ${AAVM_PATCH} > > # Apply the selected patches > apply_patches > > # Rename the kernel > mv linux-${OKV} linux-${KV} || die > > # Do the usual cleanups > cd linux-${KV} > kernel_universal_unpack >} > >pkg_postinst() { > > # Create the /usr/src/linux link if needed > kernel_pkg_postinst > > # Display some configuration advices: > echo > [ -n "`use xfs`" -o -n "`use grsec`" ] && einfo "It is safer to disable \"Preempt\" if you use XFS." > echo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 22822
:
13267
|
13268
|
13316
|
13327
|
13359
|
13388
|
13416
|
13436
|
13488
|
13497
|
13528
|
13562
|
13598
|
13698
|
13703
|
13719
|
14179
|
15783