summaryrefslogtreecommitdiff
path: root/PATCHCFG
blob: 9b88af9757c5e7e0fe336cba33a7c12c5745df25 (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
# Kernel source file
SRC="http://linux-libre.fsfla.org/pub/linux-libre/releases/2.6.38.6-libre/linux-2.6.38.6-libre.tar.bz2"
# Original source directory
SRCORIG="linux-2.6.38.6"
# Our source directory
SRCNAME="linux-2.6.38-LIBRE"
# Patches:
#   URL%patchlevel
#  or
#   filename%patchlevel (file must be in patches/ subdirectory)
PATCHES=(
         # fix hibernate resume
         # https://bugs.archlinux.org/task/23528
         fix-hibernate-resume-2.6.38.patch%1

         # fix #19234 i1915 display size
         fix-i915.patch%1

         # fix i915 pipelining glitches
         # https://bugs.freedesktop.org/show_bug.cgi?id=34584
         i915-pipeline.patch%1
         # fix ips module
         intel_ips-produces-constant-load-of-1.patch%1

         # add aufs2 support, in reference to:
         # http://aufs.sourceforge.net
         aufs2-base-20110314.patch%1
         aufs2-standalone-20110314.patch%1
        )
# Name of the resulting patch (will be bzipped afterwards)
PATCHNAME="patch-2.6.38.6-1-LIBRE"

# 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 '*~' -or -name '*.orig' -exec rm -f {} \; 2>/dev/null
}