pkgsrc/sysutils/xenkernel413/Makefile
bouyer 6c43eaffe4 Add xenkernel413 and xentools413 packages, version 4.13.1.
At this time xentools413 will only build on a very recent -current (as of
an hour ago or do - with /usr/include/xen/xenio.h 1.12 or newer)

Xen is a hypervisor which supports running multiple guest operating
systems on a single machine. Guest OSes (also called "domains")
can be either paravirtualised (i.e. make hypercalls in order to
access hardware), run in HVM (Hardware Virtualisation Mode) where
they will be presented with virtual devices, or a combination where
they use hypercalls to access hardware but manage memory themselves.
At boot, the xen kernel is loaded 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.
2020-05-26 11:12:10 +00:00

82 lines
2.7 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2020/05/26 11:12:10 bouyer Exp $
VERSION= 4.13.1
#PKGREVISION= 1
DISTNAME= xen-${VERSION}
PKGNAME= xenkernel413-${VERSION}
CATEGORIES= sysutils
MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/
DIST_SUBDIR= xen413
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= https://xenproject.org/
COMMENT= Xen 4.13.x Kernel
LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= Linux-2.6*-x86_64
ONLY_FOR_PLATFORM+= NetBSD-*.*-x86_64
SSP_SUPPORTED= no
NO_CONFIGURE= yes
USE_TOOLS+= gmake
PYTHON_FOR_BUILD_ONLY= YES
MAKE_ENV+= OCAML_TOOLS=no
.if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
MAKE_ENV+= XEN_VENDORVERSION=nb${PKGREVISION}
.else
MAKE_ENV+= XEN_VENDORVERSION=nb0
.endif
INSTALLATION_DIRS= xen413-kernel
XENKERNELDIR= ${PREFIX}/${INSTALLATION_DIRS}
MESSAGE_SUBST+= XENKERNELDIR=${XENKERNELDIR}
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
EXTRA_CFLAGS+= -Qunused-arguments -no-integrated-as -Wno-error=format \
-Wno-error=parentheses-equality -Wno-error=enum-conversion \
-Wno-error=unused-function -Wno-error=unused-const-variable \
-Wno-error=ignored-attributes -Wno-error=constant-conversion \
-Wno-error=address-of-packed-member \
-Wno-error=initializer-overrides \
-Wno-error=tautological-compare
.elif !empty(PKGSRC_COMPILER:Mgcc)
EXTRA_CFLAGS+= -falign-functions=16
.endif
MAKE_ENV+= EXTRA_CFLAGS=${EXTRA_CFLAGS:Q}
do-build:
cd ${WRKSRC} && ${BUILD_MAKE_CMD} build-xen
${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen.gz
cd ${WRKSRC} && ${MAKE_PROGRAM} clean
echo "CONFIG_DEBUG=y" >> ${WRKSRC}/xen/.config
echo "CONFIG_DEBUG_INFO=y" >> ${WRKSRC}/xen/.config
echo "# CONFIG_DEBUG_LOCK_PROFILE is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_DEBUG_LOCKS is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_DEBUG_TRACE is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_XMEM_POOL_POISON is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_CRASH_DEBUG is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_FRAME_POINTER is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_GCOV is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_LOCK_PROFILE is not set" >> ${WRKSRC}/xen/.config
echo "# CONFIG_PERF_COUNTERS is not set" >> ${WRKSRC}/xen/.config
echo "CONFIG_VERBOSE_DEBUG=y" >> ${WRKSRC}/xen/.config
echo "CONFIG_SCRUB_DEBUG=y" >> ${WRKSRC}/xen/.config
echo "# CONFIG_UBSAN is not set" >> ${WRKSRC}/xen/.config
cd ${WRKSRC} && ${BUILD_MAKE_CMD} build-xen
${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen-debug.gz
do-install:
${INSTALL_DATA} ${WRKDIR}/xen.gz \
${DESTDIR}${XENKERNELDIR}/xen.gz
${INSTALL_DATA} ${WRKDIR}/xen-debug.gz \
${DESTDIR}${XENKERNELDIR}/xen-debug.gz
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"