9763c40f74
CHANGELOG ========= HAXM v7.5.4 Added VM pause support to fix the crash issue of loading snapshot (#239). Fixed incorrect interruptibility_state to resolve an issue on loading snapshot (#233). Fixed a bug during mapping memory slots (#237). Fixed incorrect VMX_ENTRY_CONTROLS loading (#225). Enabled PCLMULQDQ feature in CPUID emulation if supported by the host (#231). Optimized the log interfaces and enhanced the logging mechanism on Windows (#215, #232). Fixed the compilation warnings and errors on Linux (#223).
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2019/10/29 03:28:22 kamil Exp $
|
|
|
|
DISTNAME= haxm-7.5.4
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=intel/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= kamil@NetBSD.org
|
|
HOMEPAGE= https://github.com/intel/haxm/
|
|
COMMENT= Intel Hardware Accelerated Execution Manager
|
|
LICENSE= modified-bsd
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-x86_64
|
|
OSVERSION_SPECIFIC= YES
|
|
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
|
|
|
BUILD_DIRS= platforms/netbsd
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${BSDSRCDIR}/sys
|
|
|
|
MAKE_FLAGS+= S=${BSDSRCDIR}/sys
|
|
|
|
BUILD_DEFS+= BSDSRCDIR
|
|
|
|
.if !exists(${BSDSRCDIR}/sys)
|
|
PKG_FAIL_REASON+= "BSDSRCDIR/sys specifies non-existing directory ${BSDSRCDIR}/sys"
|
|
.endif
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
CFLAGS+= -Wno-error=address-of-packed-member
|
|
.endif
|
|
|
|
KMOD= haxm.kmod
|
|
KMODULEDIR= stand/${MACHINE}/${OS_VERSION}/modules/haxm
|
|
|
|
INSTALLATION_DIRS+= sbin # auxiliary scripts
|
|
INSTALLATION_DIRS+= ${KMODULEDIR}
|
|
|
|
INSTALL_UNSTRIPPED= yes # Kernel linker needs unstripped module
|
|
|
|
PLIST_SUBST+= MACHINE=${MACHINE}
|
|
|
|
pre-configure:
|
|
.for file in haxm-mknod haxm-modunload
|
|
${CP} ${FILESDIR}/${file} ${WRKSRC}
|
|
.endfor
|
|
${SED} \
|
|
-e 's|@PREFIX@|${PREFIX}|g' \
|
|
-e 's|@MACHINE@|${MACHINE}|g' \
|
|
-e 's|@OS_VERSION@|${OS_VERSION}|g' \
|
|
${FILESDIR}/haxm-modload.in > ${WRKSRC}/haxm-modload
|
|
|
|
do-install:
|
|
${RUN} cd ${WRKSRC}/platforms/netbsd && \
|
|
${INSTALL_PROGRAM} ${KMOD} ${DESTDIR}${PREFIX}/${KMODULEDIR}
|
|
.for file in haxm-modload haxm-modunload haxm-mknod
|
|
${RUN} cd ${WRKSRC} && \
|
|
${INSTALL_SCRIPT} ${file} ${DESTDIR}${PREFIX}/sbin
|
|
.endfor
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|