2010-05-16 23:08:55 +08:00
|
|
|
# Kernel source file
|
2010-09-20 03:47:46 +08:00
|
|
|
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.bz2"
|
2010-05-16 23:08:55 +08:00
|
|
|
# Original source directory
|
2010-09-20 03:47:46 +08:00
|
|
|
SRCORIG="linux-2.6.35"
|
2010-05-16 23:08:55 +08:00
|
|
|
# Our source directory
|
2010-09-20 03:47:46 +08:00
|
|
|
SRCNAME="linux-2.6.35-CHAKRA"
|
2010-05-16 23:08:55 +08:00
|
|
|
# Patches:
|
|
|
|
# URL%patchlevel
|
|
|
|
# or
|
|
|
|
# filename%patchlevel (file must be in patches/ subdirectory)
|
|
|
|
PATCHES=(
|
2010-09-20 03:47:46 +08:00
|
|
|
# add upstream patch from 2.6.35 series, if needed
|
|
|
|
# http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.35.4.bz2%1
|
2010-05-16 23:08:55 +08:00
|
|
|
|
|
|
|
# add latest fixes from stable queue, if needed
|
|
|
|
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
|
|
|
|
|
2010-09-20 03:47:46 +08:00
|
|
|
# add liquorix patchset:
|
|
|
|
# http://liquorix.net/
|
2010-09-24 14:07:14 +08:00
|
|
|
http://chakra-project.org/sources/linux-2.6-CHAKRA/01-35.5-1.patch%1
|
2010-09-20 03:47:46 +08:00
|
|
|
# add fixes
|
2010-09-24 14:07:14 +08:00
|
|
|
# none yet
|
2010-09-20 03:47:46 +08:00
|
|
|
|
2010-05-16 23:08:55 +08:00
|
|
|
)
|
|
|
|
# Name of the resulting patch (will be bzipped afterwards)
|
2010-09-24 14:07:14 +08:00
|
|
|
PATCHNAME="patch-2.6.35.5-1-CHAKRA"
|
2010-05-16 23:08:55 +08:00
|
|
|
|
|
|
|
# Run this before applying patches
|
|
|
|
pre_apply() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
# Run this after applying patches
|
|
|
|
post_apply() {
|
|
|
|
# remove the extraversion from Makefile
|
2010-05-29 01:47:57 +08:00
|
|
|
# this ensures our kernel version is always 2.6.XX-CHAKRA
|
2010-05-16 23:08:55 +08:00
|
|
|
# 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
|
|
|
|
}
|
2010-09-20 03:47:46 +08:00
|
|
|
|
|
|
|
# MD5SUMS
|
|
|
|
#
|
2010-09-24 14:07:14 +08:00
|
|
|
# 277405238431de15ebe89e8b988ccb95 01-35.5-1.patch
|
2010-09-20 03:47:46 +08:00
|
|
|
# 0672f352de40b0e624b5313388dbaaad 02-linux-2.6.git-c41d68a513c71e35a14f66d71782d27a79a81ea6.patch
|