blob: 4dbbbda6127b748db528b0ec9c04f49bb15b6391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.7 2017/10/17 11:02:06 wiz Exp $
VERSION= 4.8.2
DISTNAME= xen-${VERSION}
PKGNAME= xenkernel48-${VERSION}
CATEGORIES= sysutils
MASTER_SITES= https://downloads.xenproject.org/release/xen/${VERSION}/
DIST_SUBDIR= xen48
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://xenproject.org/
COMMENT= Xen 4.8.x Kernel
LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= Linux-2.6*-x86_64
ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64
PKGSRC_USE_SSP= no
NO_CONFIGURE= yes
USE_TOOLS+= gmake
PYTHON_FOR_BUILD_ONLY= YES
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36
MAKE_ENV+= OCAML_TOOLS=no
INSTALLATION_DIRS= xen48-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_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
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"
|