summaryrefslogtreecommitdiff
path: root/emulators/xen/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-04-01 22:19:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-04-01 22:19:41 +0000
commit9f371761440876102db5cf3dd741207bb9eaf35e (patch)
tree5f151327180e886f95b0c76f1cda09ec7a3da705 /emulators/xen/Makefile
parent- remove do_nada and use options in favor of pre for osversion checking (diff)
Introduce FreeBSD xen dom0 components.
Add xen kernel and xen toolstack ports to the ports tree This packages are for now only supported on FreeBSD 11 after 1100055 The xen package only include the kernel and an addition to the loader menu to allow to disable booting on the xen kernel The Xen toolstack (xl) includes seabios (hence the addition of LGPLv3 license) Explicitly use nm from ports binutils to workaround a bug in FreeBSD's nm on some version of FreeBSD. Workaround configure checks that are actually not needed during the build of the tool stack. Thanks AllanJude@ for the xen.4th Thanks roger@ for all the work making FreeBSD dom0 support working. Please notice that you will need an Intel box with EPT and a working IOMMU
Notes
Notes: svn path=/head/; revision=382965
Diffstat (limited to 'emulators/xen/Makefile')
-rw-r--r--emulators/xen/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/emulators/xen/Makefile b/emulators/xen/Makefile
new file mode 100644
index 000000000000..87b91728292b
--- /dev/null
+++ b/emulators/xen/Makefile
@@ -0,0 +1,45 @@
+# $FreeBSD$
+
+PORTNAME= xen
+PORTVERSION= 4.5.0
+CATEGORIES= emulators
+MASTER_SITES= http://bits.xensource.com/oss-xen/release/${PORTVERSION}/
+
+MAINTAINER= bapt@FreeBSD.org
+COMMENT= Hypervisor using a microkernel design
+
+LICENSE= GPLv2
+
+ONLY_FOR_ARCH= amd64
+
+USES= gmake python:build
+MAKE_ARGS= HOSTCC="${CC}" CC="${CC}" PYTHON=${PYTHON_CMD} \
+ NM="${NM}" LD="${LD}"
+USE_GCC= yes
+NO_MTREE= yes
+PLIST_FILES= /boot/xen \
+ /boot/xen.4th
+ALL_TARGET= build
+STRIP= #
+WRKSRC_SUBDIR= xen
+EXTRA_PATCHES= ${FILESDIR}/iommu_share_p2m_table.patch:-p2
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} != FreeBSD
+IGNORE= Only supported on FreeBSD
+.endif
+
+.if ${OSVERSION} < 1100055
+IGNORE= Only supported on recent FreeBSD 11
+.endif
+
+do-install:
+ ${MKDIR} ${STAGEDIR}/boot
+ ${INSTALL_PROGRAM} ${WRKSRC}/xen ${STAGEDIR}/boot
+
+.include <bsd.port.mk>
+
+#Filter out LDFLAGS
+.undef LDFLAGS
+RUN_DEPENDS:= ${RUN_DEPENDS:N*gcc*}