# $Id$ # base alx kernel: # using linux-5.4.56 # global kernel setup COMPRESS_MODULES="gzip" LINUX_FIRMWARE="20200707" BRANCH="alx" PNAME="kernel-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="5.4.56" PBUILD="r1" # set the right tarball version TARBALLPVER="${PVER%.*}" KERNEL_IMAGE_DEPEND=">= virtual/module-tools >= sys-fs/udev-242 >= 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 SDEPEND="${SDEPEND} >= dev-libs/openssl-dev-1.1" # --- 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-5.4.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-5.4.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-5.4.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-5.4.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-5.4.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-5.4.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-5.4.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-5.4.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-5.4.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-5.4.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-5.4.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-5.4.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-5.4.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-5.4.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-5.4.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-5.4.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-5.4.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-5.4.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-5.4.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-5.4.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-5.4.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-5.4.22-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0122-5.4.23-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0123-5.4.24-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0124-5.4.25-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0125-5.4.26-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0126-5.4.27-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0127-5.4.28-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0128-5.4.29-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0129-5.4.30-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0130-5.4.31-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0131-5.4.32-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0132-5.4.33-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0133-5.4.34-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0134-5.4.35-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0135-5.4.36-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0136-5.4.37-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0137-5.4.38-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0138-5.4.39-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0139-5.4.40-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0140-5.4.41-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0141-5.4.42-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0142-5.4.43-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0143-5.4.44-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0144-5.4.45-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0145-5.4.46-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0146-5.4.47-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0147-5.4.48-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0148-5.4.49-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0149-5.4.50-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0150-5.4.51-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0151-5.4.52-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0152-5.4.53-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0153-5.4.54-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0154-5.4.55-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0155-5.4.56-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-5.4.1-all-fixes.patch || die mpatch 0101-5.4.2-all-fixes.patch || die mpatch 0102-5.4.3-all-fixes.patch || die mpatch 0103-5.4.4-all-fixes.patch || die mpatch 0104-5.4.5-all-fixes.patch || die mpatch 0105-5.4.6-all-fixes.patch || die mpatch 0106-5.4.7-all-fixes.patch || die mpatch 0107-5.4.8-all-fixes.patch || die mpatch 0108-5.4.9-all-fixes.patch || die mpatch 0109-5.4.10-all-fixes.patch || die mpatch 0110-5.4.11-all-fixes.patch || die mpatch 0111-5.4.12-all-fixes.patch || die mpatch 0112-5.4.13-all-fixes.patch || die mpatch 0113-5.4.14-all-fixes.patch || die mpatch 0114-5.4.15-all-fixes.patch || die mpatch 0115-5.4.16-all-fixes.patch || die mpatch 0116-5.4.17-all-fixes.patch || die mpatch 0117-5.4.18-all-fixes.patch || die mpatch 0118-5.4.19-all-fixes.patch || die mpatch 0119-5.4.20-all-fixes.patch || die mpatch 0120-5.4.21-all-fixes.patch || die mpatch 0121-5.4.22-all-fixes.patch || die mpatch 0122-5.4.23-all-fixes.patch || die mpatch 0123-5.4.24-all-fixes.patch || die mpatch 0124-5.4.25-all-fixes.patch || die mpatch 0125-5.4.26-all-fixes.patch || die mpatch 0126-5.4.27-all-fixes.patch || die mpatch 0127-5.4.28-all-fixes.patch || die mpatch 0128-5.4.29-all-fixes.patch || die mpatch 0129-5.4.30-all-fixes.patch || die mpatch 0130-5.4.31-all-fixes.patch || die mpatch 0131-5.4.32-all-fixes.patch || die mpatch 0132-5.4.33-all-fixes.patch || die mpatch 0133-5.4.34-all-fixes.patch || die mpatch 0134-5.4.35-all-fixes.patch || die mpatch 0135-5.4.36-all-fixes.patch || die mpatch 0136-5.4.37-all-fixes.patch || die mpatch 0137-5.4.38-all-fixes.patch || die mpatch 0138-5.4.39-all-fixes.patch || die mpatch 0139-5.4.40-all-fixes.patch || die mpatch 0140-5.4.41-all-fixes.patch || die mpatch 0141-5.4.42-all-fixes.patch || die mpatch 0142-5.4.43-all-fixes.patch || die mpatch 0143-5.4.44-all-fixes.patch || die mpatch 0144-5.4.45-all-fixes.patch || die mpatch 0145-5.4.46-all-fixes.patch || die mpatch 0146-5.4.47-all-fixes.patch || die mpatch 0147-5.4.48-all-fixes.patch || die mpatch 0148-5.4.49-all-fixes.patch || die mpatch 0149-5.4.50-all-fixes.patch || die mpatch 0150-5.4.51-all-fixes.patch || die mpatch 0151-5.4.52-all-fixes.patch || die mpatch 0152-5.4.53-all-fixes.patch || die mpatch 0153-5.4.54-all-fixes.patch || die mpatch 0154-5.4.55-all-fixes.patch || die mpatch 0155-5.4.56-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other }