summaryrefslogtreecommitdiff
path: root/PATCHCFG
blob: 6820ff687d94c05c9cfc35caf9402a3b8631125b (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
# Kernel source file
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2"
# Original source directory
SRCORIG="linux-2.6.30"
# Our source directory
SRCNAME="linux-2.6.30-ARCH"
# Patches:
#   URL%patchlevel
#  or
#   filename%patchlevel (file must be in patches/ subdirectory)
PATCHES=(
         # add upstream patch from 2.6.29 series
         #ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-2.6.30.1.bz2%1

         # add latest fixes from stable queue, if needed
         # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git

         # fix http://bugs.archlinux.org/task/13212
         # waiting for fixed patch!
         # elgatedvb.patch%2

         # add missing id http://bugs.archlinux.org/task/13990
         rt2870.patch%3

         # 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.9c-2.6.28.patch%1
         # fixed for 2.6.30 usage
         # http://svn.mandriva.com/svn/packages/cooker/kernel/current/PATCHES/patches/
         acpi-dsdt-2.6.30.patch%1

         # fix http://bugs.archlinux.org/task/12180
         quirks-h12y.patch%1

         # add kms fixes
         kms-2.6.30.patch%1
         kms-2.6.30-2.patch%1

         # fix wmi stack acer crash
         wmi.patch%1

         # fix intel sound regression
         # http://bugs.archlinux.org/task/15114
         sound-skipping-regression-introduced-in-2.6.30-rc8.patch%1

         # add aufs2 support, in reference to:
         # http://aufs.sourceforge.net
         aufs2-20090611.patch%1
        )
# Name of the resulting patch (will be bzipped afterwards)
PATCHNAME="patch-2.6.30-4-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
}