annotate run-from-build.sh @ 939:abff74b958a1

Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
author Rob Landley <rob@landley.net>
date Sun, 20 Dec 2009 00:32:17 -0600
parents 4bfe2b34dd9f
children fc134a13357e
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
863
4bfe2b34dd9f Largeish refactoring/simplification of run-emulator.sh and associated code. Now automatically sets up the distcc trick if the appropriate $ARCH-cc toolchain is in the $PATH (or the current directory).
Rob Landley <rob@landley.net>
parents: 811
diff changeset
3 # Grab cross compiler (for distcc) and run development environment.
744
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 678
diff changeset
4
939
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
5 export PATH="$(pwd)/build/host:$(pwd)/build/cross-compiler-$1/bin:$PATH"
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
6
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
7 # Run development environment.
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
8
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
9 cd build/system-image-"$1" && ./dev-environment.sh