Skip to content

Commit

Permalink
Add a MESSAGE so that we can point to the right location for Xen kern…
Browse files Browse the repository at this point in the history
…els.
  • Loading branch information
jym committed Nov 20, 2011
1 parent 7842ee3 commit 4778cc2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions sysutils/xenkernel41/MESSAGE
@@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2011/11/20 03:12:44 jym Exp $

The Xen hypervisor is installed under the following locations:
${XENKERNELDIR}/xen.gz (standard hypervisor)
${XENKERNELDIR}/xen-debug.gz (debug hypervisor)
===========================================================================
11 changes: 8 additions & 3 deletions sysutils/xenkernel41/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2011/10/21 18:26:58 cegger Exp $
# $NetBSD: Makefile,v 1.5 2011/11/20 03:12:44 jym Exp $
#

VERSION= 4.1.2
Expand Down Expand Up @@ -34,6 +34,9 @@ MAKE_ENV+= PYTHON=${PYTHONBIN:Q}
MAKE_ENV+= OCAML_TOOLS=no

INSTALLATION_DIRS= xen41-kernel
XENKERNELDIR= ${PREFIX}/${INSTALLATION_DIRS}

MESSAGE_SUBST+= XENKERNELDIR=${XENKERNELDIR:Q}

do-build:
cd ${WRKSRC} && ${BUILD_MAKE_CMD} debug=n xen
Expand All @@ -43,8 +46,10 @@ do-build:
${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen-debug.gz

do-install:
${INSTALL_DATA} ${WRKDIR}/xen.gz ${DESTDIR}${PREFIX}/${INSTALLATION_DIRS}/xen.gz
${INSTALL_DATA} ${WRKDIR}/xen-debug.gz ${DESTDIR}${PREFIX}/${INSTALLATION_DIRS}/xen-debug.gz
${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"

0 comments on commit 4778cc2

Please sign in to comment.