# Kernel source file SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.tar.bz2" # Original source directory SRCORIG="linux-2.6.35" # Aufs _aufs="35-20111114" # Our source directory SRCNAME="linux-2.6.35-CHAKRA-LTS" # Patches: # URL%patchlevel # or # filename%patchlevel (file must be in patches/ subdirectory) PATCHES=( # add upstream patch from 2.6.35 series #http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.35/patch-2.6.35.14.bz2%1 http://193.92.150.11/pub/linux/kernel/v2.6/longterm/v2.6.35/patch-2.6.35.14.bz2%1 # add latest fixes from stable queue, if needed # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git # add aufs2 support, in reference to: # http://aufs.sourceforge.net http://chakra.sourceforge.net/sources/linux/patches/2.6/features/aufs2.2/aufs2-base-$_aufs.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/aufs2.2/aufs2-standalone-$_aufs.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/aufs2.2/aufs2-kbuild-$_aufs.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/aufs2.2/aufs2.2-standalone.tree-$_aufs.patch.bz2%1 # squashfs with lzma2 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/squashfs-xz/kernel26-xz-support.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/squashfs-xz/kernel26-squashfs-xz.patch%1 # sched_autogroup http://chakra.sourceforge.net/sources/linux/patches/2.6/features/autogroup/2.6.35-sched-automated-per-tty-task-groups.patch%1 # add acerhk 0.5.35 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/01_kernel26_acerhk-0.5.35.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/02_kernel26_64bits_support_for_aspire5100.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/03_kernel26_Add_Medion_MD97600_support.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/04_kernel26_3rd-acerhk-proc_dir_entry-owner.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/05_kernel26_kbuild.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/06_kernel26_lindent.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/07_kernel26_remove-ifdefs-for-ancient-kernels.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/08_kernel26_remove-ifdefs-for-ACERDEBUG.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/09_kernel26_bg-flag.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/acerhk/10_kernel26_Get-rid-off-bios-error.patch%1 # add tomoyo 2.5 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/tomoyo/tomoyo-3.2-rc4-backport-for-2.6.35.14.patch%1 http://chakra.sourceforge.net/sources/linux/patches/2.6/features/tomoyo/tomoyo-2.5-backport-for-2.6.35.14.patch%1 ) # Name of the resulting patch (will be bzipped afterwards) PATCHNAME="patch-2.6.35.14-3-CHAKRA-LTS" # 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-CHAKRA # this way, minor kernel updates will not break external modules sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION = |g' Makefile # Kill some files find . -name '*~' -exec rm -f {} \; 2>/dev/null }