annotate run-from-build.sh @ 728:14b9373956a7

Teach squashfs to create /dev/console and change default image time to squashfs.
author Rob Landley <rob@landley.net>
date Mon, 11 May 2009 01:06:39 -0500
parents ea25e4da724e
children 759adf5a0fe9
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
669
1cf41855bb85 More error checking.
Rob Landley <rob@landley.net>
parents: 649
diff changeset
3 source sources/include.sh || exit 1
636
d658f28e36ae Move adding /sbin to $PATH to run-from-build.sh.
Rob Landley <rob@landley.net>
parents: 613
diff changeset
4
585
dd03aa5996e6 Two more $ARCH->$ARCH_NAME changes for hw- targets, add another example to config, and make hw-wrt610n build.
Rob Landley <rob@landley.net>
parents: 503
diff changeset
5 cd "${BUILD}/system-image-$ARCH_NAME" || exit 1
446
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
6
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
7 # A little paranoia.
590
8e7db79a3d75 Make initramfs work, add "--memory MEGS" option to ./run-emulator.sh and make run-from-build.sh use it.
Rob Landley <rob@landley.net>
parents: 585
diff changeset
8 [ -f "image-${ARCH}.ext2" ] && fsck.ext2 -y "image-${ARCH}.ext2" </dev/null
446
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
9
06a005fcdacc Teach emulator-build.sh to fsck the root filesystem before running it.
Rob Landley <rob@landley.net>
parents: 356
diff changeset
10 # 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
11
678
ea25e4da724e Path cleanup: host-tools.sh should handle this now.
Rob Landley <rob@landley.net>
parents: 669
diff changeset
12 ./run-emulator.sh --make-hdb 2048 --memory 256 --with-distcc \
ea25e4da724e Path cleanup: host-tools.sh should handle this now.
Rob Landley <rob@landley.net>
parents: 669
diff changeset
13 "${BUILD}/cross-compiler-${ARCH}"