mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
66b6e4a949
This reverts commit 841e958b5c
.
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
# Source env-settings
|
|
source ../_buildscripts/core-testing-${_arch}-makepkg.conf
|
|
# Pre-Patch settings
|
|
_patch="2.6.39.4-pre"
|
|
_queue="2.6.39"
|
|
# Aufs
|
|
_aufs="39-20110704"
|
|
# Kernel source file
|
|
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.bz2"
|
|
# Original source directory
|
|
SRCORIG="linux-2.6.39"
|
|
# Our source directory
|
|
SRCNAME="linux-2.6.39-CHAKRA"
|
|
# Patches:
|
|
# URL%patchlevel
|
|
# or
|
|
# filename%patchlevel (file must be in patches subdirectory)
|
|
PATCHES=(
|
|
# add upstream patch from 2.6.39 series
|
|
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-2.6.39.3.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/kernel26/patches/39/bugfix/$_patch.patch%1
|
|
|
|
# fix #19234 i1915 display size
|
|
http://chakra-project.org/sources/kernel26/patches/39/bugfix/fix-i915.patch%1
|
|
|
|
# add aufs2 support, in reference to:
|
|
# http://aufs.sourceforge.net
|
|
http://chakra-project.org/sources/kernel26/patches/39/aufs2.1/aufs2-kbuild-$_aufs.patch%1
|
|
http://chakra-project.org/sources/kernel26/patches/39/aufs2.1/aufs2-base-$_aufs.patch%1
|
|
http://chakra-project.org/sources/kernel26/patches/39/aufs2.1/aufs2-standalone-$_aufs.patch%1
|
|
http://chakra-project.org/sources/kernel26/patches/39/aufs2.1/aufs2.1-standalone.tree-$_aufs.patch.bz2%1
|
|
)
|
|
# Name of the resulting patch (will be bzipped afterwards)
|
|
PATCHNAME="patch-2.6.39.3-1-CHAKRA"
|
|
|
|
# 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
|
|
}
|