changeset 1099:3c6263354ca9

Blank $STAGE_DIR before adjusting $PATH so building the cross-compiler stage doesn't get confused if it dies during the uClibc++ build and gets re-run (adjusting the path to point to the cross compiler we're about to delete and rebuild). Make NO_CLEANUP explicit in system-image.sh so it can rebuild zImage and squashfs independently by default.
author Rob Landley <rob@landley.net>
date Sat, 05 Jun 2010 00:10:12 -0500
parents 8f72a8d4acc3
children 10606df984d1
files sources/functions.sh system-image.sh
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sources/functions.sh	Sat Jun 05 00:08:28 2010 -0500
+++ b/sources/functions.sh	Sat Jun 05 00:10:12 2010 -0500
@@ -54,6 +54,9 @@
 
   STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH_NAME}"
 
+  blank_tempdir "$STAGE_DIR"
+  blank_tempdir "$WORK"
+
   export PATH="$(cc_path "$ARCH")$PATH"
   [ ! -z "$HOST_ARCH" ] && [ "$HOST_ARCH" != "$ARCH" ] &&
     PATH="$(cc_path "$HOST_ARCH")$PATH"
@@ -559,9 +562,6 @@
 
 check_for_base_arch()
 {
-  blank_tempdir "$STAGE_DIR"
-  blank_tempdir "$WORK"
-
   # If we're building something with a base architecture, symlink to actual
   # target.
 
--- a/system-image.sh	Sat Jun 05 00:08:28 2010 -0500
+++ b/system-image.sh	Sat Jun 05 00:10:12 2010 -0500
@@ -7,7 +7,7 @@
 
 # Parse the sources/targets/$1 directory
 
-read_arch_dir "$1"
+NO_CLEANUP=1 read_arch_dir "$1"
 
 # Do we have our prerequisites?