annotate run-from-build.sh @ 1027:ac61473c45e8

Milton Miller spotted a bug where PATH was being set twice, and thus wasn't including both potential compiler locations at once.
author Rob Landley <rob@landley.net>
date Mon, 05 Apr 2010 02:06:00 -0500
parents fc134a13357e
children 690b2f4cbbd3
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
1027
ac61473c45e8 Milton Miller spotted a bug where PATH was being set twice, and thus wasn't including both potential compiler locations at once.
Rob Landley <rob@landley.net>
parents: 944
diff changeset
5 TOP="$(pwd)"
ac61473c45e8 Milton Miller spotted a bug where PATH was being set twice, and thus wasn't including both potential compiler locations at once.
Rob Landley <rob@landley.net>
parents: 944
diff changeset
6 export PATH="$TOP/build/host:$TOP/build/cross-compiler-$1/bin:$TOP/build/simple-cross-compiler-$1/bin:$PATH"
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
7
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 # 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
9
abff74b958a1 Once again add /sbin:/usr/sbin to $PATH when mke2fs isn't in $PATH.
Rob Landley <rob@landley.net>
parents: 863
diff changeset
10 cd build/system-image-"$1" && ./dev-environment.sh