direct-io.hg

view netbsd-2.0-xen-sparse/nbmake-xen @ 7987:17b98e15bf78

Fix __gpfn_to_mfn() to work correctly when not executed
in the queried domain's context.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Nov 23 13:58:44 2005 +0100 (2005-11-23)
parents 0a4b76b6b5a0
children
line source
1 #! /bin/sh
2 # Set proper variables to allow easy "make" building of a NetBSD subtree.
3 # Generated from: $NetBSD: build.sh,v 1.126 2004/02/04 11:23:40 lukem Exp $
4 #
6 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
7 : ${HARCH:=$(uname -m 2>/dev/null || echo i386)}
8 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
9 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
10 : ${TOPDIR:=$(cd $(dirname $0) && pwd | sed 's/\(netbsd-[0-9]\+\.[0-9]\+.*-xen[^/]*\)/\1/')}
12 case "$HARCH" in
13 i586|i686)
14 HARCH=i386
15 ;;
16 esac
18 NETBSDSRCDIR="$TOPDIR"; export NETBSDSRCDIR
19 DESTDIR="$TOPDIR/root"; export DESTDIR
20 unset MAKEOBJDIRPREFIX
21 MAKEOBJDIR='${.CURDIR:C,^'"$TOPDIR,$TOPDIR/obj,}"; export MAKEOBJDIR
22 RELEASEDIR="$TOPDIR/release"; export RELEASEDIR
23 MKUNPRIVED='yes'; export MKUNPRIVED
24 MAKEVERBOSE='1'; export MAKEVERBOSE
25 LC_ALL='C'; export LC_ALL
26 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
27 MACHINE='i386'; export MACHINE
28 MACHINE_ARCH='i386'; export MACHINE_ARCH
29 MAKEFLAGS="-de -m $TOPDIR/share/mk MKOBJDIRS=yes"; export MAKEFLAGS
30 BUILDID="${NETBSD_RELEASE}"; export BUILDID
31 USETOOLS=yes; export USETOOLS
33 exec "${TOOLDIR}/bin/nbmake" ${1+"$@"}