diff build.sh @ 1816:fb05f99ffcce draft

Collate site-local variables under "MY_XXX" prefix: MY_PATCH_DIR, MY_ROOT_OVERLAY, MY_CROSS_PATH and MY_CROSS_PREFIX.
author Rob Landley <rob@landley.net>
date Sat, 21 Nov 2015 16:44:39 -0600
parents acaa88463c0c
children 92d542aa6ceb
line wrap: on
line diff
--- a/build.sh	Wed Nov 18 09:18:44 2015 -0600
+++ b/build.sh	Sat Nov 21 16:44:39 2015 -0600
@@ -112,7 +112,7 @@
 
 # Do we need to build the simple cross compiler?
 
-if [ -z "$CROSS_COMPILER_PATH" ] && not_already simple-cross-compiler
+if [ -z "$MY_CROSS_PATH" ] && not_already simple-cross-compiler
 then
   # If we need to build cross compiler, assume root filesystem is stale.
 
@@ -125,7 +125,7 @@
 # canadian cross.  (It's more powerful than we need here, but if you're going
 # to use the cross compiler in other contexts this is probably what you want.)
 
-if [ -z "$CROSS_COMPILER_PATH" ] && [ ! -z "$CROSS_COMPILER_HOST" ] &&
+if [ -z "$MY_CROSS_PATH" ] && [ ! -z "$CROSS_COMPILER_HOST" ] &&
   not_already cross-compiler
 then
   zap root-filesystem native-compiler system-image
@@ -160,7 +160,7 @@
 
 # Not trying to build nommu native compilers for the moment.
 
-if [ -z "$CROSS_COMPILER_PATH" ] && ! grep -q ELF2FLT sources/targets/"$ARCH" &&
+if [ -z "$MY_CROSS_PATH" ] && ! grep -q ELF2FLT sources/targets/"$ARCH" &&
   not_already native-compiler
 then
   zap system-image