# $Id$ # base alx kernel: # using linux-2.6.37.6 # using fbcondecor-0.9.6 (http://dev.gentoo.org/~spock/projects/fbcondecor/) # using unionfs-2.5.7 (http://www.filesystems.org/project-unionfs.html) # enabled support for large block devices to be able to mount ext4 filesystems # enabled usbserial device drivers # enabled nouveau drm driver (staging) # enabled usbip drivers (staging) # enabled x86 platform drivers and notebook extras # enabled usb-audio for Philips SpeechMike III # enabled joystick-interface for Philips SpeechMike III # enabled cpu frequency modules # what type are we building (sources or image) ? KERNEL_TYPE="image" COMPRESS_MODULES="gzip" LINUX_FIRMWARE="20120304" # which branch we're using BRANCH="alx" PNAME="kernel26-${BRANCH}" # 2.6.x.x subver style PSUBVER="" PVER="2.6.37${PSUBVER}" PBUILD="r5" PCATEGORIE="sys-kernel" DESCRIPTION="DEV Kernel ${PVER}-${BRANCH}-${PBUILD} kernel image with udev, fbsplash, vesa-tng, reiser4 support." HOMEPAGE="http://magellan-linux.net" DEPEND=">= sys-apps/module-init-tools-3.12 >= sys-fs/udev-166 >= sys-apps/mkinitrd-6.3.5 >= virtual/initscripts" PROVIDE="virtual/kernel virtual/alsa-drivers" SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2" SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" # include global kernel26 functions REMOVE_DEPRECATED_MAGE_TARGETS=1 sminclude kernel26 mtools 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 --- SRC_URI=( http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE} mirror://kernel26-${BRANCH}/${SRCFILE} mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i486 "mirror://kernel26-${BRANCH}/patches-${PVER}/0100-2.6.37.1-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0101-2.6.37.2-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0102-2.6.37.3-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0103-2.6.37.4-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0104-2.6.37.5-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0105-2.6.37.6-all-fixes.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0150-2.6.37-fbcondecor-0.9.6.patch patches-${PVER}" "mirror://kernel26-${BRANCH}/patches-${PVER}/0153-2.6.37-unionfs-2.5.7.patch patches-${PVER}" ) 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'" src_prepare() { kernel26_src_prepare || die # 001-100 - ck patches (deprecated atm) # 100-150 - official updates mpatch patches-${PVER}/0100-2.6.37.1-all-fixes.patch || die mpatch patches-${PVER}/0101-2.6.37.2-all-fixes.patch || die mpatch patches-${PVER}/0102-2.6.37.3-all-fixes.patch || die mpatch patches-${PVER}/0103-2.6.37.4-all-fixes.patch || die mpatch patches-${PVER}/0104-2.6.37.5-all-fixes.patch || die mpatch patches-${PVER}/0105-2.6.37.6-all-fixes.patch || die # 150-300 - magellan patches, driver updates etc mpatch patches-${PVER}/0150-2.6.37-fbcondecor-0.9.6.patch || die mpatch patches-${PVER}/0153-2.6.37-unionfs-2.5.7.patch || die # 300-400 - compilations fixes and other } postinstall() { local kernel_image local kernel_description kernel26_image_postinstall kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" alx_grub_update ${kernel_image} ${kernel_description} # upgrade modprobe.conf if [[ -x ${MROOT}/sbin/modules-update ]] then ${MROOT}/sbin/modules-update --assume-kernel=${KPVER}-${KBRANCH}-${KPBUILD} fi alx_postinstall } postremove() { local kernel_image local kernel_description kernel26_image_postremove kernel_image="kernel-${KPVER}-${KBRANCH}-${KPBUILD}" kernel_description="${KPVER}-${KBRANCH}-${KPBUILD}" alx_grub_update ${kernel_image} ${kernel_description} }