core/linux-3-CHAKRA/PATCHCFG

184 lines
13 KiB
Plaintext
Raw Normal View History

2011-08-08 17:00:07 +08:00
# Source env-settings
source ../_buildscripts/`pwd | cut -d/ -f3`-${_arch}-makepkg.conf
# Pre-Patch settings
2011-11-01 22:52:22 +08:00
_patch="3.1.1"
2011-11-13 09:46:53 +08:00
_prepatch="3.1.2pre"
2011-11-01 22:52:22 +08:00
_queue="3.1"
2011-08-08 17:00:07 +08:00
# Aufs
2011-11-14 19:03:28 +08:00
_aufs="3.1-20111114"
2011-08-08 17:00:07 +08:00
# Kernel source file
2011-11-01 22:52:22 +08:00
#SRC="ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.1.tar.bz2"
SRC="http://ftp.uni-erlangen.de/pub/mirrors/kernel.org/v3.x/linux-3.1.tar.bz2"
2011-08-08 17:00:07 +08:00
# Original source directory
2011-11-01 22:52:22 +08:00
SRCORIG="linux-3.1"
2011-08-08 17:00:07 +08:00
# Our source directory
2011-11-01 22:52:22 +08:00
SRCNAME="linux-3.1-CHAKRA"
2011-08-08 17:00:07 +08:00
# Patches:
# URL%patchlevel
# or
# filename%patchlevel (file must be in patches subdirectory)
PATCHES=(
2011-11-01 22:52:22 +08:00
# add upstream patch from 3.1 series
2011-11-10 11:00:48 +08:00
#ftp://ftp.kernel.org/pub/linux/kernel/v3.x/patch-$_patch.gz%1
2011-11-13 09:46:53 +08:00
http://ftp.uni-erlangen.de/pub/mirrors/kernel.org/v3.x/patch-$_patch.gz%1
2011-08-08 17:00:07 +08:00
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
2011-11-13 09:46:53 +08:00
#http://chakra.sourceforge.net/sources/linux/patches/3.1/candidate/$_prepatch.patch%1
2011-08-08 17:00:07 +08:00
2011-11-14 19:03:28 +08:00
#wireless: allow to retrieve the channel set on monitor interface
http://chakra.sourceforge.net/sources/linux/patches/3.1/bugfix/channel-negative-one-maxim.patch%1
# Some chips detect a ghost TV output
# mailing list discussion: http://lists.freedesktop.org/archives/intel-gfx/2011-April/010371.html
# Arch Linux bug report: FS#19234
http://chakra.sourceforge.net/sources/linux/patches/3.1/bugfix/i915-fix-ghost-tv-output.patch%1
# In 3.1.1, a DRM_DEBUG message is falsely declared as DRM_ERROR. This
# worries users, as this message is displayed even at loglevel 4. Fix this.
http://chakra.sourceforge.net/sources/linux/patches/3.1/bugfix/i915-fix-incorrect-error-message.patch%1
2011-08-08 17:00:07 +08:00
# 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)
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/bugfix/change-default-console-loglevel.patch%1
2011-08-08 17:00:07 +08:00
# add aufs3 support, in reference to:
2011-08-08 17:00:07 +08:00
# http://aufs.sourceforge.net
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/aufs3.1/aufs$_aufs-kbuild.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/aufs3.1/aufs$_aufs-base.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/aufs3.1/aufs$_aufs-standalone.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/aufs3.1/aufs$_aufs.patch.bz2%1
# add overlayfs v11 from git
# http://git.kernel.org/?p=linux/kernel/git/mszeredi/vfs.git;a=shortlog;h=refs/heads/overlayfs.v11
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/01-vfs_add-i_op-_open.patch.bz2%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/02-vfs_export-do_splice_direct-to-modules.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/03-vfs_introduce-clone_private_mount.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/04-overlay-filesystem.patch.bz2%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/05-overlayfs_add-statfs-support.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/06-overlayfs_implement-show_options.patch%1
# don't wanted feature
2011-11-01 22:52:22 +08:00
#http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/08-fs_limit filesystem stacking depth.patch%1
# with Jordi Pujol's overlayfs patches following:
# for performance and improvement
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/50-copy-up-performance.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/51-improve-ovl_copy_up_xattr.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/52-vfs_getxattr-performance.patch%1
# suppress unreliable code, it confuses /proc/mounts
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/overlayfs/59-read-only.patch%1
# add fedora patches
2011-11-01 22:52:22 +08:00
## Standalone patches
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/taint-vbox.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-defaults-acpi-video.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-acpi-video-dos.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-acpi-debug-infinite-loop.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/acpi-ensure-thermal-limits-match-cpu-freq.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/acpi-sony-nonvs-blacklist.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-input-kill-stupid-messages.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6.30-no-pcspkr-modalias.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/die-floppy-die.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/floppy-drop-disable_hlt-warning.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-e1000-ich9-montevina.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-crash-driver.patch%1
## virt + ksm patches
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/fix_xen_guest_on_old_EC2.patch%1
## DRM
### nouveau + drm fixes
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/drm-nouveau-updates.patch%1
### make sure the lvds comes back on lid open
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/drm-intel-make-lvds-work.patch%1
### hush the i915 fbc noise
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/drm-i915-fbc-stfu.patch%1
### rhbz#729882, https://bugs.freedesktop.org/attachment.cgi?id=49069
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/drm-i915-sdvo-lvds-is-digital.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/drm-lower-severity-radeon-lockup.diff%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-intel-iommu-igfx.patch%1
## Quiet boot fixes
### silence the ACPI blacklist code
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/linux-2.6-silence-acpi-blacklist.patch%1
2011-11-13 09:46:53 +08:00
## Platform fixes not sent for -stable
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/samsung-laptop-brightness-fixes-3.2.patch%1
2011-11-01 22:52:22 +08:00
## patches headed upstream
2011-11-13 09:46:53 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/rcutree-avoid-false-quiescent-states.patch%1
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/disable-i8042-check-on-apple-mac.patch%1
2011-11-13 09:46:53 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/add-appleir-usb-driver.patch%1
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/udlfb-bind-framebuffer-to-interface.patch%1
2011-11-13 09:46:53 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/epoll-limit-paths.patch%1
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/rcu-avoid-just-onlined-cpu-resched.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/block-stray-block-put-after-teardown.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/usb-add-quirk-for-logitech-webcams.patch%1
2011-11-13 09:46:53 +08:00
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/revert-efi-rtclock.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/efi-dont-map-boot-services-on-32bit.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/hvcs_pi_buf_alloc.patch%1
2011-11-13 09:46:53 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/media-dib0700-correct-error-message.patch%1
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/utrace.patch%1
## fixes
2011-11-13 09:46:53 +08:00
###rhbz#605888
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/dmar-disable-when-ricoh-multifunction.patch%1
2011-11-01 22:52:22 +08:00
###rhbz #735946
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/0001-mm-vmscan-Limit-direct-reclaim-for-higher-order-allo.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/0002-mm-Abort-reclaim-compaction-if-compaction-can-procee.patch%1
###rhbz 748691
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/be2net-non-member-vlan-pkts-not-received-in-promisco.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/benet-remove-bogus-unlikely-on-vlan-check.patch%1
###rhbz 749166
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/oom-fix-integer-overflow-of-points.patch%1
2011-11-10 11:00:48 +08:00
###rhbz 728607
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/elantech.patch%1
###rhbz 748210
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/ideapad-Check-if-acpi-already-handle-backlight.patch%1
###rhbz752176
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/sysfs-msi-irq-per-device.patch%1
###backport brcm80211 from 3.2-rc1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/brcm80211.patch%1
2011-11-13 09:46:53 +08:00
#### Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/fedora/bcma-brcmsmac-compat.patch%1
2011-11-14 19:03:28 +08:00
# add quirk for other webcams
http://chakra.sourceforge.net/sources/linux/patches/3.1/bugfix/usb-add-quirk-for-other-webcams.patch%1
# add acerhk
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/01_acerhk-0.5.35.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/02_64bits_support_for_aspire5100.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/03_Add_Medion_MD97600_support.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/04_3rd-acerhk-proc_dir_entry-owner.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/05_kbuild.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/06_lindent.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/07_remove-ifdefs-for-ancient-kernels.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/08_remove-ifdefs-for-ACERDEBUG.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/09_kcompat-2.6.36.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/10_kcompat-2.6.38.patch%1
2011-11-02 00:21:31 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/11_bg-flag.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/acerhk/12_Get-rid-off-bios-error.patch%1
2011-10-17 20:05:03 +08:00
# other features
2011-11-01 22:52:22 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/linux-next/multitouch/0002-HID-hid-multitouch-add-support-for-the-IDEACOM-6650-.patch%1
2011-11-02 00:21:31 +08:00
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/ath_override-eeprom-countrycode.patch%1
http://chakra.sourceforge.net/sources/linux/patches/3.1/features/defaults-fat-utf8.patch%1
2011-10-17 20:05:03 +08:00
2011-08-08 17:00:07 +08:00
)
# Name of the resulting patch (will be bzipped afterwards)
2011-11-13 09:46:53 +08:00
PATCHNAME="patch-3.1.1-1-CHAKRA"
2011-08-08 17:00:07 +08:00
# 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
}