# $Id$ # base alx kernel: # using linux-3.18.22 # global kernel setup COMPRESS_MODULES="gzip" LINUX_FIRMWARE="20150629" BRANCH="alx" PNAME="kernel-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="3.18.22" PBUILD="r2" # set the right tarball version TARBALLPVER="${PVER%.*}" KERNEL_IMAGE_DEPEND=">= virtual/module-tools >= sys-fs/udev-220 >= virtual/initramfs-tools >= virtual/initscripts" # kernel.sminc adds linux-firmware if required! KERNEL_IMAGE_PROVIDE="virtual/kernel virtual/alsa-drivers" # include global kernel functions sminclude kernel-split # --- extra drivers included in this kernel: --- # we do not bundle ati-drivers and nvidia-glx drivers anymore # use our new module builders! # --- eot extra drivers --- SRC_URI=( http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1).x/${SRCFILE} mirror://kernel-${BRANCH}/${SRCFILE} mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 mirror://kernel-${BRANCH}/patches-${PVER%.*}/0100-3.18.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-3.18.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-3.18.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-3.18.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-3.18.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-3.18.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-3.18.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-3.18.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-3.18.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-3.18.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-3.18.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-3.18.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-3.18.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-3.18.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-3.18.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-3.18.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-3.18.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-3.18.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-3.18.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-3.18.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-3.18.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-3.18.22-all-fixes.patch ) # stable-tree #UP2DATE="updatecmd http://www.kernel.org/ | grep -A1 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" # longterm tree UP2DATE="updatecmd http://www.kernel.org/ | grep -A1 -i 'longterm:' | sed 's/.*:\ \([0-9]\.[0-9].*\)\ [0-9].*/\1/;q'" kernel_apply_patches() { cd ${SRCDIR} # 001-100 - ck patches # 100-150 - official updates mpatch 0100-3.18.1-all-fixes.patch || die mpatch 0101-3.18.2-all-fixes.patch || die mpatch 0102-3.18.3-all-fixes.patch || die mpatch 0103-3.18.4-all-fixes.patch || die mpatch 0104-3.18.5-all-fixes.patch || die mpatch 0105-3.18.6-all-fixes.patch || die mpatch 0106-3.18.7-all-fixes.patch || die mpatch 0107-3.18.8-all-fixes.patch || die mpatch 0108-3.18.9-all-fixes.patch || die mpatch 0109-3.18.10-all-fixes.patch || die mpatch 0110-3.18.11-all-fixes.patch || die mpatch 0111-3.18.12-all-fixes.patch || die mpatch 0112-3.18.13-all-fixes.patch || die mpatch 0113-3.18.14-all-fixes.patch || die mpatch 0114-3.18.15-all-fixes.patch || die mpatch 0115-3.18.16-all-fixes.patch || die mpatch 0116-3.18.17-all-fixes.patch || die mpatch 0117-3.18.18-all-fixes.patch || die mpatch 0118-3.18.19-all-fixes.patch || die mpatch 0119-3.18.20-all-fixes.patch || die mpatch 0120-3.18.21-all-fixes.patch || die mpatch 0121-3.18.22-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other }