annotate run-from-build.sh @ 962:3d2261361009

Remove the --extract option from download.sh, since EXTRACT_ALL=1 does the same thing and everything _else_ is controlled by environment variables. At it to the config file and adjust existing users.
author Rob Landley <rob@landley.net>
date Mon, 01 Feb 2010 03:46:49 -0600
parents fc134a13357e
children ac61473c45e8
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
944
fc134a13357e Largeish refactoring and cleanup of compiler build:
Rob Landley <rob@landley.net>
parents: 939
diff changeset
5 export PATH="$(pwd)/build/host:$(pwd)/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
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