2011-02-26 04:12:50 +08:00
|
|
|
# Kernel source file
|
|
|
|
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.bz2"
|
|
|
|
# Original source directory
|
|
|
|
SRCORIG="linux-2.6.35"
|
|
|
|
# Our source directory
|
|
|
|
SRCNAME="linux-2.6.35-CHAKRA-LTS"
|
|
|
|
# Patches:
|
|
|
|
# URL%patchlevel
|
|
|
|
# or
|
|
|
|
# filename%patchlevel (file must be in patches/ subdirectory)
|
|
|
|
PATCHES=(
|
|
|
|
# add upstream patch from 2.6.35 series
|
2011-05-01 05:41:21 +08:00
|
|
|
http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.35/patch-2.6.35.13.bz2%1
|
2011-02-26 04:12:50 +08:00
|
|
|
|
|
|
|
# add latest fixes from stable queue, if needed
|
|
|
|
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
|
|
|
|
|
|
|
|
# add aufs2 support, in reference to:
|
|
|
|
# http://aufs.sourceforge.net
|
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/aufs2/aufs2-base-35.patch%1
|
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/aufs2/aufs2-standalone-35.patch%1
|
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/aufs2/aufs2-kbuild-35.patch%1
|
2011-04-03 17:44:27 +08:00
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/aufs2/aufs2.1-standalone.tree-35-20110328.patch.bz2%1
|
2011-03-28 02:49:56 +08:00
|
|
|
# squashfs with lzma2
|
2011-05-01 05:41:21 +08:00
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/squashfs-xz/kernel26-xz-support.patch%1
|
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/squashfs-xz/kernel26-squashfs-xz.patch%1
|
2011-02-26 04:12:50 +08:00
|
|
|
# sched_autogroup
|
|
|
|
http://chakra-project.org/sources/kernel26/patches/35/autogroup/2.6.35-sched-automated-per-tty-task-groups.patch%1
|
|
|
|
|
|
|
|
)
|
|
|
|
# Name of the resulting patch (will be bzipped afterwards)
|
2011-05-01 05:41:21 +08:00
|
|
|
PATCHNAME="patch-2.6.35.13-1-CHAKRA-LTS"
|
2011-02-26 04:12:50 +08:00
|
|
|
|
|
|
|
# Run this before applying patches
|
|
|
|
pre_apply() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
# Run this after applying patches
|
|
|
|
post_apply() {
|
|
|
|
# remove the extraversion from Makefile
|
|
|
|
# this ensures our kernel version is always 2.6.XX-CHAKRA
|
|
|
|
# this way, minor kernel updates will not break external modules
|
|
|
|
sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION = |g' Makefile
|
|
|
|
|
|
|
|
# Kill some files
|
|
|
|
find . -name '*~' -exec rm -f {} \; 2>/dev/null
|
|
|
|
}
|