view run-from-build.sh @ 649:950ef7de1cf9

Add qemu to host-tools.sh. If HOST_BUILD_EXTRA set, compile from source, otherwise symlink it from host. (Note that ppc --nographic and sh4 --append are currently broken in host version of qemu.)
author Rob Landley <rob@landley.net>
date Tue, 24 Mar 2009 21:23:15 -0500
parents d658f28e36ae
children 1cf41855bb85
line wrap: on
line source

#!/bin/bash

source sources/include.sh

cd "${BUILD}/system-image-$ARCH_NAME" || exit 1

# A little paranoia.
[ -f "image-${ARCH}.ext2" ] && fsck.ext2 -y "image-${ARCH}.ext2" </dev/null

# And run it, using the distccd we built (if necessary) and the cross-compiler.

PATH="$HOSTTOOLS:$PATH" ./run-emulator.sh --make-hdb 2048 --memory 256 \
	--with-distcc "${BUILD}/cross-compiler-${ARCH}"