Lines Matching refs:TOOLCHAIN_PREFIX
111 TOOLCHAIN_PREFIX=
112 register_var_option "--toolchain-prefix=<path>" TOOLCHAIN_PREFIX "Path and prefix for the toolchain"
113 log "Toolchain prefix: $TOOLCHAIN_PREFIX"
205 if [ -z "$TOOLCHAIN_PREFIX" ]; then
207 TOOLCHAIN_PREFIX=$(get_default_toolchain_prefix_for_arch $ARCH)
208 TOOLCHAIN_PREFIX=$(get_toolchain_install $ANDROID_NDK_ROOT $TOOLCHAIN_NAME)/bin/$TOOLCHAIN_PREFIX
209 TOOLCHAIN_PREFIX=${TOOLCHAIN_PREFIX%%-}
210 if [ -z "$TOOLCHAIN_PREFIX" ]; then
214 echo "Autoconfig: --toolchain-prefix=$TOOLCHAIN_PREFIX"
217 if [ ! -d "$(dirname $TOOLCHAIN_PREFIX)" ]; then
218 echo "ERROR: Toolchain not installed, missing directory: $(dirname $TOOLCHAIN_PREFIX)"
222 if [ ! -f "$TOOLCHAIN_PREFIX-readelf" ]; then
223 echo "ERROR: Toolchain not installed, missing program: $TOOLCHAIN_PREFIX-readelf"
287 $TOOLCHAIN_PREFIX-readelf -s -D -W $1 | awk '$5 ~ /FUNC/ && $6 ~ /GLOBAL/ && $8 !~ /UND/ { print $9; }' > $TMPC
295 $TOOLCHAIN_PREFIX-readelf -s -D -W $1 | awk '$5 ~ /OBJECT/ && $6 ~ /GLOBAL/ && $8 !~ /UND/ { print $9; }' > $TMPC
336 $TOOLCHAIN_PREFIX-gcc -Wl,-shared,-Bsymbolic -nostdlib -o $TMPO $TMPC 1>/dev/null 2>&1