ia64/xen-unstable

annotate netbsd-2.0-xen-sparse/nbmake-xen @ 7556:6304291cf08b

Print out MFN in audit code, for debugging purposes.

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