summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/abuild/abuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index aefb1ead1d..1c69eec581 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -356,7 +356,14 @@ function build_target
fi
done
fi
-
+ if [ "$found_crosscompiler" == "false" -a "$TARCH" == ARMV7 ];then
+ for prefix in armv7a-eabi- armv7a-cros-linux-gnueabi-; do
+ if ${prefix}gcc --version > /dev/null 2> /dev/null ; then
+ found_crosscompiler=true
+ CROSS_COMPILE=$prefix
+ fi
+ done
+ fi
# TBD: look for suitable cross compiler suite
# cross-$TARCH-gcc and cross-$TARCH-ld