# $Id$ # standard LTS kernel: # using linux-3.4.74 # enabled staging usbip drivers # enabled staging nouveau driver # enabled staging ms hyper-v drivers # enabeld staging vmware drm driver # do not set UEVENT_HELPER to "/sbin/hotplug" anymore but to "" as descripted in udev-176 README # enabled linux-firmware # use xz as default compression mode for bzimage # global kernel setup COMPRESS_MODULES="gzip" LINUX_FIRMWARE="20120304" BRANCH="lts" PNAME="kernel-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="3.4.74" PBUILD="r1" # set the right tarball version # set the right tarball version TARBALLPVER="${PVER%.*}" KERNEL_IMAGE_DEPEND=">= virtual/module-tools >= sys-fs/udev-185 >= virtual/initramfs-tools >= virtual/initscripts" # kernel.sminc adds linux-firmware if requiered! 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}-i686 mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64 mirror://kernel-${BRANCH}/patches-${PVER%.*}/0100-3.4.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-3.4.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-3.4.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-3.4.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-3.4.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-3.4.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-3.4.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-3.4.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-3.4.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-3.4.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-3.4.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-3.4.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-3.4.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-3.4.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-3.4.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-3.4.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-3.4.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-3.4.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-3.4.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-3.4.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-3.4.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-3.4.22-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0122-3.4.23-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0123-3.4.24-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0124-3.4.25-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0125-3.4.26-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0126-3.4.27-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0127-3.4.28-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0128-3.4.29-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0129-3.4.30-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0130-3.4.31-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0131-3.4.32-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0132-3.4.33-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0133-3.4.34-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0134-3.4.35-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0135-3.4.36-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0136-3.4.37-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0137-3.4.38-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0138-3.4.39-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0139-3.4.40-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0140-3.4.41-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0141-3.4.42-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0142-3.4.43-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0143-3.4.44-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0144-3.4.45-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0145-3.4.46-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0146-3.4.47-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0147-3.4.48-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0148-3.4.49-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0149-3.4.50-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0150-3.4.51-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0151-3.4.52-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0152-3.4.53-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0153-3.4.54-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0154-3.4.55-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0155-3.4.56-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0156-3.4.57-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0157-3.4.58-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0158-3.4.59-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0159-3.4.60-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0160-3.4.61-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0161-3.4.62-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0162-3.4.63-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0163-3.4.64-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0164-3.4.65-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0165-3.4.66-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0166-3.4.67-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0167-3.4.68-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0168-3.4.69-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0169-3.4.70-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0170-3.4.71-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0171-3.4.72-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0172-3.4.73-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0173-3.4.74-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0300-3.4-fix-lpfc-compilation-without-debugfs.patch ) 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.4.1-all-fixes.patch || die mpatch 0101-3.4.2-all-fixes.patch || die mpatch 0102-3.4.3-all-fixes.patch || die mpatch 0103-3.4.4-all-fixes.patch || die mpatch 0104-3.4.5-all-fixes.patch || die mpatch 0105-3.4.6-all-fixes.patch || die mpatch 0106-3.4.7-all-fixes.patch || die mpatch 0107-3.4.8-all-fixes.patch || die mpatch 0108-3.4.9-all-fixes.patch || die mpatch 0109-3.4.10-all-fixes.patch || die mpatch 0110-3.4.11-all-fixes.patch || die mpatch 0111-3.4.12-all-fixes.patch || die mpatch 0112-3.4.13-all-fixes.patch || die mpatch 0113-3.4.14-all-fixes.patch || die mpatch 0114-3.4.15-all-fixes.patch || die mpatch 0115-3.4.16-all-fixes.patch || die mpatch 0116-3.4.17-all-fixes.patch || die mpatch 0117-3.4.18-all-fixes.patch || die mpatch 0118-3.4.19-all-fixes.patch || die mpatch 0119-3.4.20-all-fixes.patch || die mpatch 0120-3.4.21-all-fixes.patch || die mpatch 0121-3.4.22-all-fixes.patch || die mpatch 0122-3.4.23-all-fixes.patch || die mpatch 0123-3.4.24-all-fixes.patch || die mpatch 0124-3.4.25-all-fixes.patch || die mpatch 0125-3.4.26-all-fixes.patch || die mpatch 0126-3.4.27-all-fixes.patch || die mpatch 0127-3.4.28-all-fixes.patch || die mpatch 0128-3.4.29-all-fixes.patch || die mpatch 0129-3.4.30-all-fixes.patch || die mpatch 0130-3.4.31-all-fixes.patch || die mpatch 0131-3.4.32-all-fixes.patch || die mpatch 0132-3.4.33-all-fixes.patch || die mpatch 0133-3.4.34-all-fixes.patch || die mpatch 0134-3.4.35-all-fixes.patch || die mpatch 0135-3.4.36-all-fixes.patch || die mpatch 0136-3.4.37-all-fixes.patch || die mpatch 0137-3.4.38-all-fixes.patch || die mpatch 0138-3.4.39-all-fixes.patch || die mpatch 0139-3.4.40-all-fixes.patch || die mpatch 0140-3.4.41-all-fixes.patch || die mpatch 0141-3.4.42-all-fixes.patch || die mpatch 0142-3.4.43-all-fixes.patch || die mpatch 0143-3.4.44-all-fixes.patch || die mpatch 0144-3.4.45-all-fixes.patch || die mpatch 0145-3.4.46-all-fixes.patch || die mpatch 0146-3.4.47-all-fixes.patch || die mpatch 0147-3.4.48-all-fixes.patch || die mpatch 0148-3.4.49-all-fixes.patch || die mpatch 0149-3.4.50-all-fixes.patch || die mpatch 0150-3.4.51-all-fixes.patch || die mpatch 0151-3.4.52-all-fixes.patch || die mpatch 0152-3.4.53-all-fixes.patch || die mpatch 0153-3.4.54-all-fixes.patch || die mpatch 0154-3.4.55-all-fixes.patch || die mpatch 0155-3.4.56-all-fixes.patch || die mpatch 0156-3.4.57-all-fixes.patch || die mpatch 0157-3.4.58-all-fixes.patch || die mpatch 0158-3.4.59-all-fixes.patch || die mpatch 0159-3.4.60-all-fixes.patch || die mpatch 0160-3.4.61-all-fixes.patch || die mpatch 0161-3.4.62-all-fixes.patch || die mpatch 0162-3.4.63-all-fixes.patch || die mpatch 0163-3.4.64-all-fixes.patch || die mpatch 0164-3.4.65-all-fixes.patch || die mpatch 0165-3.4.66-all-fixes.patch || die mpatch 0166-3.4.67-all-fixes.patch || die mpatch 0167-3.4.68-all-fixes.patch || die mpatch 0168-3.4.69-all-fixes.patch || die mpatch 0169-3.4.70-all-fixes.patch || die mpatch 0170-3.4.71-all-fixes.patch || die mpatch 0171-3.4.72-all-fixes.patch || die mpatch 0172-3.4.73-all-fixes.patch || die mpatch 0173-3.4.74-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other mpatch 0300-3.4-fix-lpfc-compilation-without-debugfs.patch || die }