Added kernel-xen-dom0, a package for latest xen dom0 support.

--HG--
extra : convert_revision : f8d5bd55cc469859f33476fec3ed57f838434646
This commit is contained in:
Juan RP 2010-02-23 23:22:34 +01:00
parent 6bfc693a43
commit c63b1cc8d8
7 changed files with 4481 additions and 1 deletions

View file

@ -0,0 +1 @@
kernel-xen-dom0

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,12 @@
# Template file for 'kernel-headers-xen-dom0'.
#
short_desc="${pkgname} src headers (Xen dom0)"
long_desc="
This package contains the required source headers to be able to build
external 3rd party binary modules."
do_install()
{
mkdir -p ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/src ${DESTDIR}/usr
}

View file

@ -0,0 +1,25 @@
# Build template for 'kernel-xen'.
. ${XBPS_SRCPKGDIR}/kernel/template
# Override required vars.
pkgname=kernel-xen-dom0
_kernel_xen_dom0=yes
_kernel_ver=2.6.31
# This matches upstream version from linux-2.6-xen xen-master branch.
_kernel_patch_ver=6
_kernel_orig_patch_ver=12
version=${_kernel_ver}.${_kernel_patch_ver}
wrksrc="linux-${_kernel_ver}.${_kernel_orig_patch_ver}"
distfiles="${KERNEL_SITE}/kernel/v2.6/linux-${_kernel_ver}.${_kernel_orig_patch_ver}.tar.bz2"
checksum=e4fa8994ca4edb4a9d435e338dfe1ee1e50e606ffa97ea3881d1ba636cf658ce
short_desc="The Linux kernel and associated stuff (2.6 branch + Xen dom0)"
long_desc="
This package provides the linux kernel image and associated modules
supporting Xen in domain 0."
subpackages="kernel-headers-xen-dom0"
post_install()
{
rm -rf ${DESTDIR}/lib/firmware
}

View file

@ -90,7 +90,15 @@ do_install()
lver="${myver}"
fi
if [ -n "${_kernel_xen_dom0}" ]; then
hdrdest=${DESTDIR}/usr/src/kernel-headers-xen-dom0-${lver}
else
hdrdest=${DESTDIR}/usr/src/kernel-headers-${lver}
fi
if [ -n "${_kernel_xen_dom0}" ]; then
lver="${lver}-xen-dom0"
fi
install -m 644 arch/x86/boot/bzImage ${DESTDIR}/boot/vmlinuz-${lver}
install -m 644 System.map ${DESTDIR}/boot/System.map-${lver}