mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
167 lines
12 KiB
Plaintext
167 lines
12 KiB
Plaintext
# Source env-settings
|
|
source ../_buildscripts/`pwd | cut -d/ -f3`-${_arch}-makepkg.conf
|
|
# Pre-Patch settings
|
|
_patch="3.2.11"
|
|
_prepatch="3.2.12-pre1"
|
|
_queue="3.2"
|
|
# Aufs
|
|
_aufs="3.2-20120109"
|
|
# Kernel source file
|
|
#SRC="ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.2.tar.bz2"
|
|
SRC="http://ftp.uni-erlangen.de/pub/mirrors/kernel.org/v3.x/linux-3.2.tar.bz2"
|
|
# Original source directory
|
|
SRCORIG="linux-3.2"
|
|
# Our source directory
|
|
SRCNAME="linux-3.2-CHAKRA"
|
|
# Patches:
|
|
# URL%patchlevel
|
|
# or
|
|
# filename%patchlevel (file must be in patches subdirectory)
|
|
PATCHES=(
|
|
# add upstream patch from 3.2 series
|
|
ftp://ftp.kernel.org/pub/linux/kernel/v3.x/patch-$_patch.gz%1
|
|
#http://ftp.uni-erlangen.de/pub/mirrors/kernel.org/v3.x/patch-$_patch.gz%1
|
|
|
|
# add latest fixes from stable queue, if needed
|
|
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
|
|
#http://chakra.sourceforge.net/sources/linux/patches/3.2/candidate/$_prepatch.patch%1
|
|
#ftp://ftp.kernel.org/pub/linux/kernel/v3.x/stable-review/patch-$_prepatch.gz%1
|
|
|
|
# Archlinux patches
|
|
|
|
### fix FS#27883
|
|
### drm/i915: Only clear the GPU domains upon a successful finish
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/arch/i915-gpu-finish.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.2/arch/i915-fix-ghost-tv-output.patch%1
|
|
|
|
### 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)
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/arch/change-default-console-loglevel.patch%1
|
|
|
|
### fix ext4 module to mount ext3/2 correct
|
|
### https://bugs.archlinux.org/task/28653
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/arch/ext4-options.patch%1
|
|
|
|
# Custom Chakra Patches
|
|
|
|
### features
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/defaults-fat-utf8.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/ath_override-eeprom-countrycode.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/all/Kbuild-kconfig-Verbose-version-of-listnewconfig.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/all/cgroups-Allow-memory-cgroup-support-to-be-included-b.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/all/topology-Provide-CPU-topology-in-sysfs-in-SMP-configura.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/x86/x86-Add-amilo-rfkill-driver-for-some-Fujitsu-Siemens.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/sched-cgroups-policy-priority.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/cgroups-perm-wgrp.patch%1
|
|
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/alps.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/drm-i915-fbc-stfu.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/intel-iommu-igfx.patch%1
|
|
|
|
### add aufs3 support, in reference to:
|
|
### http://aufs.sourceforge.net
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs.patch.bz2%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-base.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-kbuild.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-loopback.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-proc_map.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-standalone.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/aufs3.2/aufs$_aufs-fix-export-__devcgroup_inode_permission.patch%1
|
|
|
|
### add overlayfs v12
|
|
### http://git.kernel.org/?p=linux/kernel/git/mszeredi/vfs.git;a=shortlog;h=refs/heads/overlayfs.v12
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/02-vfs_pass-struct-path-to__dentry_open.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/03-vfs_add-i_op-_open.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/04-vfs_export-do_splice_direct-to-modules.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/05-vfs_introduce-clone_private_mount.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/06-overlay-filesystem.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/07-overlayfs_add-statfs-support.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/08-overlayfs_implement-show_options.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/09-overlay_overlay-filesystem-documentation.diff%1
|
|
# unwanted feature
|
|
#http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/10-fs_limit-filesystem-stacking-depth.diff%1
|
|
# ubuntu
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/41-overlayfs-apply-device-cgroup-and-security-permissio.patch%1
|
|
# Jordi Pujol's overlayfs patches
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/50-copy-up-performance.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/51-improve-ovl_copy_up_xattr.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/52-vfs_getxattr-performance.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/59-read-only.patch%1
|
|
# ubuntu
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/81-ovl_show_options-vfsmount.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/overlayfs-v12/82-fs-namespace.patch%1
|
|
|
|
### add tuxonice
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/tuxonice/tuxonice-2012Feb05-for_Linux_3_2_5.patch.xz%1
|
|
|
|
### add acerhk
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/01_acerhk-0.5.35.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/02_64bits_support_for_aspire5100.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/03_Add_Medion_MD97600_support.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/04_3rd-acerhk-proc_dir_entry-owner.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/05_kbuild.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/06_lindent.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/07_remove-ifdefs-for-ancient-kernels.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/08_remove-ifdefs-for-ACERDEBUG.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/09_kcompat-2.6.36.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/10_kcompat-2.6.38.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/11_drop-duplicate-systems-supported-by-wistron.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/12_remove-undefined-function-calls-on-x86_64.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/13_bg-flag.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/acerhk/14_Get-rid-off-bios-error.patch%1
|
|
|
|
### add wacom
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0001-Input-wacom-cleanup-feature-report-for-bamboos.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0002-Input-wacom-remove-unused-bamboo-HID-parsing.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0003-Input-wacom-add-some-comments-to-wacom_parse_hid.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0004-Input-wacom-relax-Bamboo-stylus-ID-check.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0005-Input-wacom-read-3rd-gen-Bamboo-Touch-HID-data.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0006-Input-wacom-3rd-gen-Bamboo-P-Touch-packet-support.patch.xz%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/features/wacom/0007-Input-wacom-ignore-unwanted-bamboo-packets.patch%1
|
|
|
|
### bugfixes
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/all/cpu-Do-not-return-errors-from-cpu_dev_init-which-wil.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/all/cpu-Register-a-generic-CPU-device-on-architectures-t.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/all/dm-Deal-with-merge_bvec_fn-in-component-devices-bett.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/all/rt2800-disable-powersaving-as-default.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/all/snapshot-Implement-compat_ioctl.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/x86/KVM-nVMX-Add-KVM_REQ_IMMEDIATE_EXIT.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/x86/KVM-nVMX-Fix-warning-causing-idt-vectoring-info-beha.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/x86/KVM-x86-extend-struct-x86_emulate_ops-with-get_cpuid.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/x86/KVM-x86-fix-missing-checks-in-syscall-emulation.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/x86/Skip-looking-for-ioapic-overrides-when-ioapics-are-not-present.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/bugfix/neuter-drm_i915_fix-ILK+-infoframe-support.patch%1%1
|
|
### chakra specific patches.
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/af_802154-Disable-auto-loading-as-mitigation-against.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/cgroups-Document-the-Chakra-memory-resource-controll.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/decnet-Disable-auto-loading-as-mitigation-against-lo.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/rds-Disable-auto-loading-as-mitigation-against-local.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/sched-autogroup-disabled.patch%1
|
|
http://chakra.sourceforge.net/sources/linux/patches/3.2/chakra/x86-memtest-WARN-if-bad-RAM-found.patch%1
|
|
|
|
)
|
|
# Name of the resulting patch (will be bzipped afterwards)
|
|
PATCHNAME="patch-3.2.11-1-CHAKRA"
|
|
|
|
# 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
|
|
}
|