blob: 20514c230916cf866b46545ae204b5a38d7c61e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Kernel source file
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2"
# Original source directory
SRCORIG="linux-2.6.25"
# Our source directory
SRCNAME="linux-2.6.25-ARCH"
# Patches:
# URL%patchlevel
# or
# filename%patchlevel (file must be in patches/ subdirectory)
PATCHES=(
# add upstream patch from 2.6.25 series
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-2.6.25.3.bz2%1
# Fix regression in cpuidle code
# See: http://bugzilla.kernel.org/show_bug.cgi?id=10482
revert-cpuidle-simplification.patch%1
# Readd exported symbols for catalyst
ati-catalyst-2.6.25.patch%1
# Add 2.6.25 prepatch
#ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.25-rc9.bz2%1
#ftp://ftp.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.25-rc8-git8.bz2%1
# add custom acpi dsdt patch, in reference to:
# http://gaugusch.at/kernel.shtml
# http://acpi.sourceforge.net
http://gaugusch.at/acpi-dsdt-initrd-patches/acpi-dsdt-initrd-v0.9a-2.6.25.patch%1
# improve intel macintosh support, in reference to:
# http://www.mactel-linux.org/wiki/Main_Page
# http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/kernel/
#mactel-linux-2.6.24.patch%1
# fix buggy bios acpi to get c states, which violate acpi specification, in reference to:
# http://bugzilla.kernel.org/show_bug.cgi?id=7578
# http://bugs.archlinux.org/task/6875
acpi-buggy-bios.patch%1
# add sqashfs support, in reference to:
# http://squashfs.sourceforge.net/
# diff extracted from: http://heanet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.3.tar.gz
squashfs3.3-patch%1
squashfs-2.6.25.patch%2
# add unionfs support. in reference to:
# http://www.fsl.cs.sunysb.edu/project-unionfs.html
http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-2.3.3_for_2.6.25.diff.gz%1
# add sec_perm-2.6.24.patch for aufs, in reference to:
# http://aufs.sourceforge.net/
sec_perm-2.6.24.patch%1
put_filp-2.6.24.patch%0
lhash-2.6.24.patch%1
)
# Name of the resulting patch (will be bzipped afterwards)
PATCHNAME="patch-2.6.25.3-1-ARCH"
# 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-ARCH
# this way, minor kernel updates will not break external modules
sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
# Add Arch logo!
cp ${startdir}/patches/logo_linux_clut224.ppm drivers/video/logo/
cp ${startdir}/patches/logo_linux_mono.pbm drivers/video/logo/
cp ${startdir}/patches/logo_linux_vga16.ppm drivers/video/logo/
# Kill some files
find . -name '*~' -exec rm -f {} \; 2>/dev/null
}
|