Mercurial > hg > aboriginal
view sources/sections/toybox.build @ 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 | 609bc05b0d6a |
children | de53ddd05abd |
line wrap: on
line source
# Build toybox make defconfig && CFLAGS="$CFLAGS $STATIC_DEFAULT_FLAGS" make $DO_CROSS || dienow if [ -z "$USE_TOYBOX" ] then ln -sf toybox "$STAGE_DIR"/patch && ln -sf toybox "$STAGE_DIR"/oneit && ln -sf toybox "$STAGE_DIR"/netcat || dienow else make install_flat PREFIX="$STAGE_DIR" || dienow fi cp toybox${SKIP_STRIP:+_unstripped} "$STAGE_DIR/toybox"