Mercurial > hg > aboriginal
comparison root-filesystem.sh @ 1128:e5f9681a8b3c
Lots of comment updates. Add a NO_HOST_TOOLS=1 config option, and a few "time" calls to stages that didn't have them. Put native-compiler.sh after root-filesystem.sh in build so it's slightly easier to document.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 19 Jun 2010 16:44:49 -0500 |
parents | 2b68517f5b62 |
children | 2b7100b7de0c |
comparison
equal
deleted
inserted
replaced
1127:1f51b4a0517b | 1128:e5f9681a8b3c |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Combine simple-root-filesystem and native-compiler. | 3 # Combine the output of simple-root-filesystem and native-compiler. |
4 | 4 |
5 . sources/include.sh || exit 1 | 5 . sources/include.sh || exit 1 |
6 | 6 |
7 read_arch_dir "$1" | 7 read_arch_dir "$1" |
8 | 8 |
12 | 12 |
13 [ ! -d "$BUILD/native-compiler-$ARCH" ] && | 13 [ ! -d "$BUILD/native-compiler-$ARCH" ] && |
14 echo "No $BUILD/native-compiler-$ARCH" >&2 && | 14 echo "No $BUILD/native-compiler-$ARCH" >&2 && |
15 exit 1 | 15 exit 1 |
16 | 16 |
17 cp -a "$BUILD/simple-root-filesystem-$ARCH/." "$STAGE_DIR" || dienow | |
18 | |
17 # Remove shared libraries copied from cross compiler. | 19 # Remove shared libraries copied from cross compiler. |
18 | 20 |
19 rm -rf "$BUILD/root-filesystem-$ARCH/usr/lib" 2>/dev/null | 21 rm -rf "$BUILD/root-filesystem-$ARCH/usr/lib" 2>/dev/null |
20 | 22 |
21 # Copy native compiler, but do not overwrite existing files (which could | 23 # Copy native compiler, but do not overwrite existing files (which could |