core/linux-3-CHAKRA/PATCHCFG
2011-08-08 11:00:07 +02:00

60 lines
2.3 KiB
Plaintext

# Source env-settings
source ../_buildscripts/`pwd | cut -d/ -f3`-${_arch}-makepkg.conf
# Pre-Patch settings
_patch="3.0.1"
_queue="3.0"
# Aufs
_aufs="3.0-rcN-20110801"
# Kernel source file
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2"
# Original source directory
SRCORIG="linux-3.0"
# Our source directory
SRCNAME="linux-3.0-CHAKRA"
# Patches:
# URL%patchlevel
# or
# filename%patchlevel (file must be in patches subdirectory)
PATCHES=(
# add upstream patch from 3.0 series
ftp://ftp.kernel.org/pub/linux/kernel/v3.0/patch-$_patch.bz2%1
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
#http://chakra-project.org/sources/linux/patches/3.0/bugfix/$_patch.patch%1
# fix #19234 i1915 display size
http://chakra-project.org/sources/linux/patches/3/bugfix/fix-i915.patch%1
# set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
# remove this when a Kconfig knob is made available by upstream
# (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
http://chakra-project.org/sources/linux/patches/3/bugfix/change-default-console-loglevel.patch%1
# add aufs2 support, in reference to:
# http://aufs.sourceforge.net
http://chakra-project.org/sources/linux/patches/3/aufs2.1/aufs2-kbuild-$_aufs.patch%1
http://chakra-project.org/sources/linux/patches/3/aufs2.1/aufs2-base-$_aufs.patch%1
http://chakra-project.org/sources/linux/patches/3/aufs2.1/aufs2-standalone-$_aufs.patch%1
http://chakra-project.org/sources/linux/patches/3/aufs2.1/aufs2.1-standalone.tree-$_aufs.patch.bz2%1
)
# Name of the resulting patch (will be bzipped afterwards)
PATCHNAME="patch-$_patch-1-CHAKRA"
# Run this before applying patches
pre_apply() {
:
}
# Run this after applying patches
post_apply() {
# remove the sublevel and extraversion from Makefile
# this ensures our kernel version is always 3.X-CHAKRA
# this way, minor kernel updates will not break external modules
sed -i 's|^SUBLEVEL = .*$|SUBLEVEL = |g' Makefile
sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION = |g' Makefile
# Kill some files
find . -name '*~' -exec rm -f {} \; 2>/dev/null
}