diff options
author | cegger <cegger@pkgsrc.org> | 2008-08-07 20:31:34 +0000 |
---|---|---|
committer | cegger <cegger@pkgsrc.org> | 2008-08-07 20:31:34 +0000 |
commit | ffc194542bce4eec391c5ca2e3829443de0c7b06 (patch) | |
tree | 4d25a132f34e2342d5bc3cba3043c00130a2c02b /sysutils | |
parent | 9f9dd70b226deb42d47e3e95e22e370d2098f027 (diff) | |
download | pkgsrc-ffc194542bce4eec391c5ca2e3829443de0c7b06.tar.gz |
Import Xen 3.3.0-rc3
Xen is a virtual machine monitor for x86 hardware (runs only on i686-class
CPUs), which supports running multiple guests operating systems on a single
machine. At boot, the xen kernel is loaded (via grub) along with the guest
kernel for the first domain (called domain0). domain0 has privileges to access
the physical hardware (PCI and ISA devices), administrate other domains and
provide virtual devices (disks and network) to other domains.
This package contains the Xen 3.3 kernel itself.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xenkernel33/DESCR | 11 | ||||
-rw-r--r-- | sysutils/xenkernel33/Makefile | 55 | ||||
-rw-r--r-- | sysutils/xenkernel33/PLIST | 3 | ||||
-rw-r--r-- | sysutils/xenkernel33/distinfo | 6 | ||||
-rw-r--r-- | sysutils/xenkernel33/patches/patch-aa | 13 |
5 files changed, 88 insertions, 0 deletions
diff --git a/sysutils/xenkernel33/DESCR b/sysutils/xenkernel33/DESCR new file mode 100644 index 00000000000..b200f6ee961 --- /dev/null +++ b/sysutils/xenkernel33/DESCR @@ -0,0 +1,11 @@ +Xen is a virtual machine monitor for x86 hardware (runs only on +i686-class CPUs), which supports running multiple guests operating +systems on a single machine. Guest OSes (also called "domains") +require a modified kernel which supports Xen hypercalls in replacement +to access to the physical hardware. At boot, the xen kernel is loaded +(via grub) along with the guest kernel for the first domain (called +domain0). domain0 has privileges to access the physical hardware (PCI +and ISA devices), administrate other domains and provide virtual +devices (disks and network) to other domains. + +This package contains the Xen3 kernel itself. diff --git a/sysutils/xenkernel33/Makefile b/sysutils/xenkernel33/Makefile new file mode 100644 index 00000000000..22e9036e762 --- /dev/null +++ b/sysutils/xenkernel33/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $ +# + +VERSION= 3.3-18261 +DISTNAME= xen-${VERSION} +PKGNAME= xenkernel33-${VERSION} +CATEGORIES= sysutils +#MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/ +MASTER_SITES= http://www.netbsd.org/~cegger/ +EXTRACT_SUFX= .tar.gz + +MAINTAINER= cegger@NetBSD.org +HOMEPAGE= http://xen.org/ +COMMENT= Xen3.3.0-rc3 Kernel + +ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64 +ONLY_FOR_PLATFORM+= NetBSD-4.99.*-x86_64 NetBSD-4.99.*-i386 +ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386 + +CONFLICTS= xenkernel30-* xentools30-* +CONFLICTS+= xenkernel3-* xentools3-* +CONFLICTS+= xenkernel32-* xentools32-* + +WRKSRC= ${WRKDIR}/xen-${VERSION} + +NO_CONFIGURE= yes +USE_TOOLS+= gmake + +PY_PATCHPLIST= NO + +SUBST_CLASSES+= py +SUBST_STAGE.py= pre-build +SUBST_FILES.py+= xen/tools/get-fields.sh +SUBST_SED.py= -e "s,python,${PYTHONBIN},g" + +#PY_PATCHPLIST doesn't work because we have NO_CONFIGURE +SUBST_CLASSES+= py2 +SUBST_STAGE.py2= pre-build +SUBST_FILES.py2= xen/tools/compat-build-source.py +SUBST_FILES.py2+= xen/tools/compat-build-header.py +SUBST_SED.py2= -e "s,/usr/bin/env python,${PYTHONBIN},g" + +do-build: + cd ${WRKSRC} && ${GMAKE} debug=n xen + ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen.gz + cd ${WRKSRC} && ${GMAKE} clean && ${GMAKE} debug=y xen + ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen-debug.gz + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/xen3-kernel + ${INSTALL_DATA} ${WRKDIR}/xen.gz ${PREFIX}/xen3-kernel/xen.gz + ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz ${PREFIX}/xen3-kernel/xen-debug.gz + +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/xenkernel33/PLIST b/sysutils/xenkernel33/PLIST new file mode 100644 index 00000000000..6da47ebadc2 --- /dev/null +++ b/sysutils/xenkernel33/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $ +xen3-kernel/xen.gz +xen3-kernel/xen-debug.gz diff --git a/sysutils/xenkernel33/distinfo b/sysutils/xenkernel33/distinfo new file mode 100644 index 00000000000..0d2bfea2261 --- /dev/null +++ b/sysutils/xenkernel33/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $ + +SHA1 (xen-3.3-18261.tar.gz) = 25c43a6aa69b8c0867268a77b5815f27852b2b13 +RMD160 (xen-3.3-18261.tar.gz) = 184b1df67a645cecfbff4307dfb02079235c4d03 +Size (xen-3.3-18261.tar.gz) = 8040616 bytes +SHA1 (patch-aa) = 2f29787cff46fbfb76eaa27d430e828cb1b6e0d3 diff --git a/sysutils/xenkernel33/patches/patch-aa b/sysutils/xenkernel33/patches/patch-aa new file mode 100644 index 00000000000..d3efbaa4009 --- /dev/null +++ b/sysutils/xenkernel33/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $ + +--- xen/include/asm-x86/page.h.orig 2008-08-01 10:54:54.000000000 +0200 ++++ xen/include/asm-x86/page.h +@@ -301,7 +301,7 @@ void setup_idle_pagetable(void); + * WARNING: This will need to be disabled to run OSes that use the spare PTE + * bits themselves (e.g., *BSD). + */ +-#ifndef NDEBUG ++#if 0 + #define _PAGE_GNTTAB _PAGE_AVAIL2 + #else + #define _PAGE_GNTTAB 0 |