# $Header: /magellan-cvs/smage/kernel26-openvz/kernel26-openvz-2.6.24_004.1-r1.smage2,v 1.1 2008/04/09 07:31:20 niro Exp $ # linux kernel for openvz systems: # using linux-2.6.24.7 # using 2.6.24-005.1 patch set # use modular ide-framework to fix udma issues with nforce boards # disabled drbd support, broken atm and compilation fails # enabled magic sysrq key support and debugging via sysrq keys # what type are we building (sources or image) ? KERNEL_TYPE="image" # which branch we're using BRANCH="openvz" PNAME="kernel26-${BRANCH}" # 2.6.x.x subver style PSUBVER="_005.1" PVER="2.6.24${PSUBVER}" PBUILD="r1" PCATEGORIE="sys-kernel" STATE="unstable" DESCRIPTION="OpenVZ kernel ${PVER}-${BRANCH}-${PBUILD} image." HOMEPAGE="http://openvz.org/" DEPEND=">= sys-apps/module-init-tools-3.4 >= sys-fs/udev-119 >= sys-apps/hotplug-20040401 >= sys-apps/mkinitrd-6 >= sys-apps/initscripts-0.4.3" PROVIDE="virtual/kernel virtual/alsa-drivers" SRCFILE="linux-${PVER/${PSUBVER}/}.tar.bz2" SRCDIR="${BUILDDIR}/linux-${PVER}-${BRANCH}-${PBUILD}" # include global kernel26 functions sminclude kernel26 mtools # --- extra drivers included in this kernel: --- # --- 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}-i686 mirror://kernel26-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64 mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0001-${PVER/${PSUBVER}/}-openvz-combined-${PSUBVER/_/}.patch mirror://kernel26-${BRANCH}/patches-${PVER}-${PBUILD}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch ) src_prepare() { kernel26_src_prepare || die # fix version in version patch sed "s:@MAGELLAN_EXTRAVERSION@:${EXTRAVERSION}:" \ ${SOURCEDIR}/${PNAME}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch \ > ${SOURCEDIR}/${PNAME}/0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch-fixed || die # 001-100 - openvz patches mpatch 0001-${PVER/${PSUBVER}/}-openvz-combined-${PSUBVER/_/}.patch || die mpatch 0002-${PVER/${PSUBVER}/}-openvz-version-fix-${PSUBVER/_/}.patch-fixed || die # 100-150 - official updates # 150-300 - magellan patches, driver updates etc # 300-400 - compilations fixes and other }