mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 11:49:03 +08:00
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
# Kernel source file
|
|
SRC="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.tar.bz2"
|
|
# Original source directory
|
|
SRCORIG="linux-2.6.33"
|
|
# Our source directory
|
|
SRCNAME="linux-2.6.33-CHAKRA"
|
|
# Patches:
|
|
# URL%patchlevel
|
|
# or
|
|
# filename%patchlevel (file must be in patches/ subdirectory)
|
|
PATCHES=(
|
|
# add upstream patch from 2.6.33 series
|
|
http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.33.6.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
|
|
aufs2-base.patch%1
|
|
aufs2-standalone.patch%1
|
|
# squashfs with lzma
|
|
0001-Squashfs-move-zlib-decompression-wrapper-code-into.patch%1
|
|
0002-Squashfs-Factor-out-remaining-zlib-dependencies-int.patch%1
|
|
0003-Squashfs-add-a-decompressor-framework.patch%1
|
|
0004-Squashfs-add-decompressor-entries-for-lzma-and-lzo.patch%1
|
|
0005-Squashfs-add-LZMA-compression.patch%1
|
|
0006-Squashfs-Make-unlzma-available-to-non-initramfs-ini.patch%1
|
|
0007-Squashfs-select-decompress-lzma-needed.patch%1
|
|
0008-Squashfs-lzma-make-lzma-reentrant.patch%1
|
|
0009-Squashfs-force-lzma-wrapper-to-be-retained.patch%1
|
|
)
|
|
# Name of the resulting patch (will be bzipped afterwards)
|
|
PATCHNAME="patch-2.6.33.6-1-CHAKRA"
|
|
|
|
# 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
|
|
}
|