# $Id$ # base alx kernel: # using linux-4.9.134 # global kernel setup COMPRESS_MODULES="gzip" LINUX_FIRMWARE="20170519" BRANCH="alx" PNAME="kernel-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="4.9.134" PBUILD="r1" # set the right tarball version TARBALLPVER="${PVER%.*}" KERNEL_IMAGE_DEPEND=">= virtual/module-tools >= sys-fs/udev-230 >= 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}-i686 mirror://kernel-${BRANCH}/patches-${PVER%.*}/0100-4.9.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-4.9.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-4.9.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-4.9.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-4.9.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-4.9.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-4.9.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-4.9.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-4.9.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-4.9.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-4.9.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-4.9.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-4.9.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-4.9.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-4.9.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-4.9.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-4.9.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-4.9.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-4.9.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-4.9.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-4.9.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-4.9.22-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0122-4.9.23-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0123-4.9.24-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0124-4.9.25-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0125-4.9.26-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0126-4.9.27-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0127-4.9.28-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0128-4.9.29-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0129-4.9.30-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0130-4.9.31-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0131-4.9.32-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0132-4.9.33-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0133-4.9.34-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0134-4.9.35-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0135-4.9.36-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0136-4.9.37-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0137-4.9.38-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0138-4.9.39-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0139-4.9.40-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0140-4.9.41-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0141-4.9.42-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0142-4.9.43-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0143-4.9.44-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0144-4.9.45-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0145-4.9.46-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0146-4.9.47-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0147-4.9.48-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0148-4.9.49-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0149-4.9.50-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0150-4.9.51-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0151-4.9.52-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0152-4.9.53-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0153-4.9.54-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0154-4.9.55-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0155-4.9.56-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0156-4.9.57-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0157-4.9.58-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0158-4.9.59-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0159-4.9.60-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0160-4.9.61-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0161-4.9.62-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0162-4.9.63-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0163-4.9.64-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0164-4.9.65-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0165-4.9.66-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0166-4.9.67-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0167-4.9.68-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0168-4.9.69-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0169-4.9.70-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0170-4.9.71-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0171-4.9.72-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0172-4.9.73-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0173-4.9.74-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0174-4.9.75-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0175-4.9.76-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0176-4.9.77-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0177-4.9.78-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0178-4.9.79-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0179-4.9.80-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0180-4.9.81-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0181-4.9.82-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0182-4.9.83-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0183-4.9.84-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0184-4.9.85-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0185-4.9.86-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0186-4.9.87-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0187-4.9.88-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0188-4.9.89-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0189-4.9.90-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0190-4.9.91-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0191-4.9.92-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0192-4.9.93-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0193-4.9.94-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0194-4.9.95-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0195-4.9.96-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0196-4.9.97-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0197-4.9.98-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0198-4.9.99-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0199-4.9.100-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0200-4.9.101-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0201-4.9.102-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0202-4.9.103-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0203-4.9.104-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0204-4.9.105-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0205-4.9.106-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0206-4.9.107-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0207-4.9.108-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0208-4.9.109-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0209-4.9.110-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0210-4.9.111-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0211-4.9.112-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0212-4.9.113-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0213-4.9.114-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0214-4.9.115-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0215-4.9.116-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0216-4.9.117-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0217-4.9.118-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0218-4.9.119-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0219-4.9.120-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0220-4.9.121-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0221-4.9.122-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0222-4.9.123-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0223-4.9.124-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0224-4.9.125-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0225-4.9.126-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0226-4.9.127-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0227-4.9.128-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0228-4.9.129-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0229-4.9.130-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0230-4.9.131-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0231-4.9.132-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0232-4.9.133-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0233-4.9.134-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-4.9.1-all-fixes.patch || die mpatch 0101-4.9.2-all-fixes.patch || die mpatch 0102-4.9.3-all-fixes.patch || die mpatch 0103-4.9.4-all-fixes.patch || die mpatch 0104-4.9.5-all-fixes.patch || die mpatch 0105-4.9.6-all-fixes.patch || die mpatch 0106-4.9.7-all-fixes.patch || die mpatch 0107-4.9.8-all-fixes.patch || die mpatch 0108-4.9.9-all-fixes.patch || die mpatch 0109-4.9.10-all-fixes.patch || die mpatch 0110-4.9.11-all-fixes.patch || die mpatch 0111-4.9.12-all-fixes.patch || die mpatch 0112-4.9.13-all-fixes.patch || die mpatch 0113-4.9.14-all-fixes.patch || die mpatch 0114-4.9.15-all-fixes.patch || die mpatch 0115-4.9.16-all-fixes.patch || die mpatch 0116-4.9.17-all-fixes.patch || die mpatch 0117-4.9.18-all-fixes.patch || die mpatch 0118-4.9.19-all-fixes.patch || die mpatch 0119-4.9.20-all-fixes.patch || die mpatch 0120-4.9.21-all-fixes.patch || die mpatch 0121-4.9.22-all-fixes.patch || die mpatch 0122-4.9.23-all-fixes.patch || die mpatch 0123-4.9.24-all-fixes.patch || die mpatch 0124-4.9.25-all-fixes.patch || die mpatch 0125-4.9.26-all-fixes.patch || die mpatch 0126-4.9.27-all-fixes.patch || die mpatch 0127-4.9.28-all-fixes.patch || die mpatch 0128-4.9.29-all-fixes.patch || die mpatch 0129-4.9.30-all-fixes.patch || die mpatch 0130-4.9.31-all-fixes.patch || die mpatch 0131-4.9.32-all-fixes.patch || die mpatch 0132-4.9.33-all-fixes.patch || die mpatch 0133-4.9.34-all-fixes.patch || die mpatch 0134-4.9.35-all-fixes.patch || die mpatch 0135-4.9.36-all-fixes.patch || die mpatch 0136-4.9.37-all-fixes.patch || die mpatch 0137-4.9.38-all-fixes.patch || die mpatch 0138-4.9.39-all-fixes.patch || die mpatch 0139-4.9.40-all-fixes.patch || die mpatch 0140-4.9.41-all-fixes.patch || die mpatch 0141-4.9.42-all-fixes.patch || die mpatch 0142-4.9.43-all-fixes.patch || die mpatch 0143-4.9.44-all-fixes.patch || die mpatch 0144-4.9.45-all-fixes.patch || die mpatch 0145-4.9.46-all-fixes.patch || die mpatch 0146-4.9.47-all-fixes.patch || die mpatch 0147-4.9.48-all-fixes.patch || die mpatch 0148-4.9.49-all-fixes.patch || die mpatch 0149-4.9.50-all-fixes.patch || die mpatch 0150-4.9.51-all-fixes.patch || die mpatch 0151-4.9.52-all-fixes.patch || die mpatch 0152-4.9.53-all-fixes.patch || die mpatch 0153-4.9.54-all-fixes.patch || die mpatch 0154-4.9.55-all-fixes.patch || die mpatch 0155-4.9.56-all-fixes.patch || die mpatch 0156-4.9.57-all-fixes.patch || die mpatch 0157-4.9.58-all-fixes.patch || die mpatch 0158-4.9.59-all-fixes.patch || die mpatch 0159-4.9.60-all-fixes.patch || die mpatch 0160-4.9.61-all-fixes.patch || die mpatch 0161-4.9.62-all-fixes.patch || die mpatch 0162-4.9.63-all-fixes.patch || die mpatch 0163-4.9.64-all-fixes.patch || die mpatch 0164-4.9.65-all-fixes.patch || die mpatch 0165-4.9.66-all-fixes.patch || die mpatch 0166-4.9.67-all-fixes.patch || die mpatch 0167-4.9.68-all-fixes.patch || die mpatch 0168-4.9.69-all-fixes.patch || die mpatch 0169-4.9.70-all-fixes.patch || die mpatch 0170-4.9.71-all-fixes.patch || die mpatch 0171-4.9.72-all-fixes.patch || die mpatch 0172-4.9.73-all-fixes.patch || die mpatch 0173-4.9.74-all-fixes.patch || die mpatch 0174-4.9.75-all-fixes.patch || die mpatch 0175-4.9.76-all-fixes.patch || die mpatch 0176-4.9.77-all-fixes.patch || die mpatch 0177-4.9.78-all-fixes.patch || die mpatch 0178-4.9.79-all-fixes.patch || die mpatch 0179-4.9.80-all-fixes.patch || die mpatch 0180-4.9.81-all-fixes.patch || die mpatch 0181-4.9.82-all-fixes.patch || die mpatch 0182-4.9.83-all-fixes.patch || die mpatch 0183-4.9.84-all-fixes.patch || die mpatch 0184-4.9.85-all-fixes.patch || die mpatch 0185-4.9.86-all-fixes.patch || die mpatch 0186-4.9.87-all-fixes.patch || die mpatch 0187-4.9.88-all-fixes.patch || die mpatch 0188-4.9.89-all-fixes.patch || die mpatch 0189-4.9.90-all-fixes.patch || die mpatch 0190-4.9.91-all-fixes.patch || die mpatch 0191-4.9.92-all-fixes.patch || die mpatch 0192-4.9.93-all-fixes.patch || die mpatch 0193-4.9.94-all-fixes.patch || die mpatch 0194-4.9.95-all-fixes.patch || die mpatch 0195-4.9.96-all-fixes.patch || die mpatch 0196-4.9.97-all-fixes.patch || die mpatch 0197-4.9.98-all-fixes.patch || die mpatch 0198-4.9.99-all-fixes.patch || die mpatch 0199-4.9.100-all-fixes.patch || die mpatch 0200-4.9.101-all-fixes.patch || die mpatch 0201-4.9.102-all-fixes.patch || die mpatch 0202-4.9.103-all-fixes.patch || die mpatch 0203-4.9.104-all-fixes.patch || die mpatch 0204-4.9.105-all-fixes.patch || die mpatch 0205-4.9.106-all-fixes.patch || die mpatch 0206-4.9.107-all-fixes.patch || die mpatch 0207-4.9.108-all-fixes.patch || die mpatch 0208-4.9.109-all-fixes.patch || die mpatch 0209-4.9.110-all-fixes.patch || die mpatch 0210-4.9.111-all-fixes.patch || die mpatch 0211-4.9.112-all-fixes.patch || die mpatch 0212-4.9.113-all-fixes.patch || die mpatch 0213-4.9.114-all-fixes.patch || die mpatch 0214-4.9.115-all-fixes.patch || die mpatch 0215-4.9.116-all-fixes.patch || die mpatch 0216-4.9.117-all-fixes.patch || die mpatch 0217-4.9.118-all-fixes.patch || die mpatch 0218-4.9.119-all-fixes.patch || die mpatch 0219-4.9.120-all-fixes.patch || die mpatch 0220-4.9.121-all-fixes.patch || die mpatch 0221-4.9.122-all-fixes.patch || die mpatch 0222-4.9.123-all-fixes.patch || die mpatch 0223-4.9.124-all-fixes.patch || die mpatch 0224-4.9.125-all-fixes.patch || die mpatch 0225-4.9.126-all-fixes.patch || die mpatch 0226-4.9.127-all-fixes.patch || die mpatch 0227-4.9.128-all-fixes.patch || die mpatch 0228-4.9.129-all-fixes.patch || die mpatch 0229-4.9.130-all-fixes.patch || die mpatch 0230-4.9.131-all-fixes.patch || die mpatch 0231-4.9.132-all-fixes.patch || die mpatch 0232-4.9.133-all-fixes.patch || die mpatch 0233-4.9.134-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other }