annotate emulator-build.sh @ 446:06a005fcdacc

Teach emulator-build.sh to fsck the root filesystem before running it.
author Rob Landley <rob@landley.net>
date Mon, 03 Nov 2008 21:00:46 -0600
parents 25b18621de1b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
333
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
2
356
25b18621de1b Some scripts don't want the $PATH edited by include.sh.
Rob Landley <rob@landley.net>
parents: 338
diff changeset
3 SAVEPATH="$PATH"
333
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
4 source include.sh
356
25b18621de1b Some scripts don't want the $PATH edited by include.sh.
Rob Landley <rob@landley.net>
parents: 338
diff changeset
5 PATH="$SAVEPATH"
333
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
6
446
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
7 cd "${BUILD}/system-image-$ARCH" || exit 1
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
8
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
9 # A little paranoia.
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
10 fsck.ext2 -y "image-${ARCH}.ext2" </dev/null
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
11
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
12 # And run it, using the distccd we built (if necessary) and the cross-compiler.
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
13
333
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
14 PATH="$HOSTTOOLS:$PATH" ./run-with-distcc.sh "$CROSS"