annotate run-from-build.sh @ 944:fc134a13357e

Largeish refactoring and cleanup of compiler build: Break out native-compiler.sh from root-filesystem.sh NATIVE_TOOLCHAIN=* went away now NO_NATIVE_COMPILER=1 affecting build.sh root-filesystem.sh: Much simplified No more ROOT_TOPDIR, adjust STAGE_DIR=$STAGE_DIR/usr instead. Doesn't build native-compiler, instead copies existing native-compiler else installs library binaries out of cross compiler. Only build make/bash/distcc when we have a native compiler. native-compiler.sh: No more BUILD_STATIC_NATIVE_COMPILER, now built/packaged separately by default (NO_NATIVE_COMPILER=1 to skip), then incorporated into root-filesystem. now static by default, use BUILD_STATIC=none to override This script also makes the (optional) full cross-compiler renamed STATIC_CROSS_COMPILER_HOST to STATIC_CC_HOST Rename cross-compiler stage to simple-cross-compiler
author Rob Landley <rob@landley.net>
date Sun, 03 Jan 2010 17:04:39 -0600
parents abff74b958a1
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