# $Id$ # base alx kernel: # using linux-3.10.84 # what type are we building (sources or image) ? KERNEL_TYPE="sources" # which branch we're using BRANCH="alx" PNAME="kernel26-sources-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="3.10.84${PSUBVER}" PBUILD="r1" # set the right tarball version TARBALLPVER="${PVER%.*}" PCATEGORIE="sys-kernel" DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel sources." HOMEPAGE="http://magellan-linux.net" DEPEND="" PROVIDE="virtual/kernel-sources" SRCFILE="linux-${TARBALLPVER}.tar.bz2" SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" # include global kernel26 functions REMOVE_DEPRECATED_MAGE_TARGETS=1 sminclude kernel26 alx # --- 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 --- # no need to waste time here NOSTRIP=true SRC_URI=( http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1).x/${SRCFILE} mirror://kernel26-${BRANCH}/${SRCFILE} mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0100-3.10.1-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0101-3.10.2-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0102-3.10.3-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0103-3.10.4-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0104-3.10.5-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0105-3.10.6-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0106-3.10.7-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0107-3.10.8-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0108-3.10.9-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0109-3.10.10-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0110-3.10.11-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0111-3.10.12-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0112-3.10.13-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0113-3.10.14-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0114-3.10.15-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0115-3.10.16-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0116-3.10.17-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0117-3.10.18-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0118-3.10.19-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0119-3.10.20-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0120-3.10.21-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0121-3.10.22-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0122-3.10.23-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0123-3.10.24-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0124-3.10.25-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0125-3.10.26-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0126-3.10.27-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0127-3.10.28-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0128-3.10.29-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0129-3.10.30-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0130-3.10.31-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0131-3.10.32-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0132-3.10.33-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0133-3.10.34-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0134-3.10.35-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0135-3.10.36-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0136-3.10.37-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0137-3.10.38-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0138-3.10.39-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0139-3.10.40-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0140-3.10.41-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0141-3.10.42-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0142-3.10.43-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0143-3.10.44-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0144-3.10.45-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0145-3.10.46-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0146-3.10.47-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0147-3.10.48-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0148-3.10.49-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0149-3.10.50-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0150-3.10.51-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0151-3.10.52-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0152-3.10.53-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0153-3.10.54-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0154-3.10.55-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0155-3.10.56-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0156-3.10.57-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0157-3.10.58-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0158-3.10.59-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0159-3.10.60-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0160-3.10.61-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0161-3.10.62-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0162-3.10.63-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0163-3.10.64-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0164-3.10.65-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0165-3.10.66-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0166-3.10.67-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0167-3.10.68-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0168-3.10.69-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0169-3.10.70-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0170-3.10.71-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0171-3.10.72-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0172-3.10.73-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0173-3.10.74-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0174-3.10.75-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0175-3.10.76-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0176-3.10.77-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0177-3.10.78-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0178-3.10.79-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0179-3.10.80-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0180-3.10.81-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0181-3.10.82-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0182-3.10.83-all-fixes.patch mirror://kernel26-${BRANCH}/patches-${PVER%.*}/0183-3.10.84-all-fixes.patch ) UP2PVER="${PVER}.6" UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" kernel_apply_patches() { cd ${SRCDIR} # 001-100 - ck patches (deprecated atm) # 100-150 - official updates mpatch 0100-3.10.1-all-fixes.patch || die mpatch 0101-3.10.2-all-fixes.patch || die mpatch 0102-3.10.3-all-fixes.patch || die mpatch 0103-3.10.4-all-fixes.patch || die mpatch 0104-3.10.5-all-fixes.patch || die mpatch 0105-3.10.6-all-fixes.patch || die mpatch 0106-3.10.7-all-fixes.patch || die mpatch 0107-3.10.8-all-fixes.patch || die mpatch 0108-3.10.9-all-fixes.patch || die mpatch 0109-3.10.10-all-fixes.patch || die mpatch 0110-3.10.11-all-fixes.patch || die mpatch 0111-3.10.12-all-fixes.patch || die mpatch 0112-3.10.13-all-fixes.patch || die mpatch 0113-3.10.14-all-fixes.patch || die mpatch 0114-3.10.15-all-fixes.patch || die mpatch 0115-3.10.16-all-fixes.patch || die mpatch 0116-3.10.17-all-fixes.patch || die mpatch 0117-3.10.18-all-fixes.patch || die mpatch 0118-3.10.19-all-fixes.patch || die mpatch 0119-3.10.20-all-fixes.patch || die mpatch 0120-3.10.21-all-fixes.patch || die mpatch 0121-3.10.22-all-fixes.patch || die mpatch 0122-3.10.23-all-fixes.patch || die mpatch 0123-3.10.24-all-fixes.patch || die mpatch 0124-3.10.25-all-fixes.patch || die mpatch 0125-3.10.26-all-fixes.patch || die mpatch 0126-3.10.27-all-fixes.patch || die mpatch 0127-3.10.28-all-fixes.patch || die mpatch 0128-3.10.29-all-fixes.patch || die mpatch 0129-3.10.30-all-fixes.patch || die mpatch 0130-3.10.31-all-fixes.patch || die mpatch 0131-3.10.32-all-fixes.patch || die mpatch 0132-3.10.33-all-fixes.patch || die mpatch 0133-3.10.34-all-fixes.patch || die mpatch 0134-3.10.35-all-fixes.patch || die mpatch 0135-3.10.36-all-fixes.patch || die mpatch 0136-3.10.37-all-fixes.patch || die mpatch 0137-3.10.38-all-fixes.patch || die mpatch 0138-3.10.39-all-fixes.patch || die mpatch 0139-3.10.40-all-fixes.patch || die mpatch 0140-3.10.41-all-fixes.patch || die mpatch 0141-3.10.42-all-fixes.patch || die mpatch 0142-3.10.43-all-fixes.patch || die mpatch 0143-3.10.44-all-fixes.patch || die mpatch 0144-3.10.45-all-fixes.patch || die mpatch 0145-3.10.46-all-fixes.patch || die mpatch 0146-3.10.47-all-fixes.patch || die mpatch 0147-3.10.48-all-fixes.patch || die mpatch 0148-3.10.49-all-fixes.patch || die mpatch 0149-3.10.50-all-fixes.patch || die mpatch 0150-3.10.51-all-fixes.patch || die mpatch 0151-3.10.52-all-fixes.patch || die mpatch 0152-3.10.53-all-fixes.patch || die mpatch 0153-3.10.54-all-fixes.patch || die mpatch 0154-3.10.55-all-fixes.patch || die mpatch 0155-3.10.56-all-fixes.patch || die mpatch 0156-3.10.57-all-fixes.patch || die mpatch 0157-3.10.58-all-fixes.patch || die mpatch 0158-3.10.59-all-fixes.patch || die mpatch 0159-3.10.60-all-fixes.patch || die mpatch 0160-3.10.61-all-fixes.patch || die mpatch 0161-3.10.62-all-fixes.patch || die mpatch 0162-3.10.63-all-fixes.patch || die mpatch 0163-3.10.64-all-fixes.patch || die mpatch 0164-3.10.65-all-fixes.patch || die mpatch 0165-3.10.66-all-fixes.patch || die mpatch 0166-3.10.67-all-fixes.patch || die mpatch 0167-3.10.68-all-fixes.patch || die mpatch 0168-3.10.69-all-fixes.patch || die mpatch 0169-3.10.70-all-fixes.patch || die mpatch 0170-3.10.71-all-fixes.patch || die mpatch 0171-3.10.72-all-fixes.patch || die mpatch 0172-3.10.73-all-fixes.patch || die mpatch 0173-3.10.74-all-fixes.patch || die mpatch 0174-3.10.75-all-fixes.patch || die mpatch 0175-3.10.76-all-fixes.patch || die mpatch 0176-3.10.77-all-fixes.patch || die mpatch 0177-3.10.78-all-fixes.patch || die mpatch 0178-3.10.79-all-fixes.patch || die mpatch 0179-3.10.80-all-fixes.patch || die mpatch 0180-3.10.81-all-fixes.patch || die mpatch 0181-3.10.82-all-fixes.patch || die mpatch 0182-3.10.83-all-fixes.patch || die mpatch 0183-3.10.84-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other } postinstall() { kernel26_sources_postinstall alx_postinstall }