Mercurial > hg > aboriginal
annotate run-from-build.sh @ 630:0e8a887f9d8b
buildall.sh should create the README file in the output directory.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 05 Mar 2009 12:25:19 -0600 |
parents | 518c8e257b3d |
children | d658f28e36ae |
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" |
503
e98ed40c55ef
Move include.sh to sources/include.sh. End user doesn't call it directly, shouldn't be at top level.
Rob Landley <rob@landley.net>
parents:
499
diff
changeset
|
4 source sources/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 |
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
|
7 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
|
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. |
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
|
10 [ -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
|
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 |
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
|
14 PATH="$HOSTTOOLS:$PATH" ./run-emulator.sh --make-hdb 2048 --memory 256 \ |
613
518c8e257b3d
Fixes Mark Miller sent for distcc support.
Rob Landley <rob@landley.net>
parents:
590
diff
changeset
|
15 --with-distcc "${BUILD}/cross-compiler-${ARCH}" |