comparison 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
comparison
equal deleted inserted replaced
1815:191dfad915ba 1816:fb05f99ffcce
110 do_stage host-tools 110 do_stage host-tools
111 fi 111 fi
112 112
113 # Do we need to build the simple cross compiler? 113 # Do we need to build the simple cross compiler?
114 114
115 if [ -z "$CROSS_COMPILER_PATH" ] && not_already simple-cross-compiler 115 if [ -z "$MY_CROSS_PATH" ] && not_already simple-cross-compiler
116 then 116 then
117 # If we need to build cross compiler, assume root filesystem is stale. 117 # If we need to build cross compiler, assume root filesystem is stale.
118 118
119 zap root-filesystem cross-compiler native-compiler system-image 119 zap root-filesystem cross-compiler native-compiler system-image
120 120
123 123
124 # Optionally, we can build a more capable statically linked compiler via 124 # Optionally, we can build a more capable statically linked compiler via
125 # canadian cross. (It's more powerful than we need here, but if you're going 125 # canadian cross. (It's more powerful than we need here, but if you're going
126 # to use the cross compiler in other contexts this is probably what you want.) 126 # to use the cross compiler in other contexts this is probably what you want.)
127 127
128 if [ -z "$CROSS_COMPILER_PATH" ] && [ ! -z "$CROSS_COMPILER_HOST" ] && 128 if [ -z "$MY_CROSS_PATH" ] && [ ! -z "$CROSS_COMPILER_HOST" ] &&
129 not_already cross-compiler 129 not_already cross-compiler
130 then 130 then
131 zap root-filesystem native-compiler system-image 131 zap root-filesystem native-compiler system-image
132 132
133 # Build the host compiler if necessary 133 # Build the host compiler if necessary
158 # Build a native compiler. It's statically linked by default so it can 158 # Build a native compiler. It's statically linked by default so it can
159 # run on an arbitrary host system. 159 # run on an arbitrary host system.
160 160
161 # Not trying to build nommu native compilers for the moment. 161 # Not trying to build nommu native compilers for the moment.
162 162
163 if [ -z "$CROSS_COMPILER_PATH" ] && ! grep -q ELF2FLT sources/targets/"$ARCH" && 163 if [ -z "$MY_CROSS_PATH" ] && ! grep -q ELF2FLT sources/targets/"$ARCH" &&
164 not_already native-compiler 164 not_already native-compiler
165 then 165 then
166 zap system-image 166 zap system-image
167 167
168 do_stage native-compiler "$ARCH" 168 do_stage native-compiler "$ARCH"