# 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" # Our source directory SRCNAME="linux-2.6.35-ARCH" # Patches: # URL%patchlevel # or # filename%patchlevel (file must be in patches/ subdirectory) PATCHES=( # add upstream patch from 2.6.35 series ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-2.6.35.4.bz2%1 # add latest fixes from stable queue, if needed # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git # Fix local root exploits # http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff&h=c41d68a513c71e35a14f66d71782d27a79a81ea6 # http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=36d001c70d8a0144ac1d038f6876c484849a74de # http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=eefdca043e8391dcd719711716492063030b55ac compat-root-exploit.patch%1 # add aufs2 support, in reference to: # http://aufs.sourceforge.net aufs2-base-20100802.patch%1 aufs2-standalone-20100802.patch%1 ) # Name of the resulting patch (will be bzipped afterwards) PATCHNAME="patch-2.6.35.4-2-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 '*~' -or -name '*.orig' -exec rm -f {} \; 2>/dev/null }