diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 2479c39195..8e1cd10364 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -27,6 +27,12 @@ fi TMPFILE="" XGCCPATH=$1 +# payloads under payloads/external crossgcc path +if [ -d "$(pwd)/../../../../util/crossgcc/xgcc/bin/" ] +then + XGCCPATH=${XGCCPATH:-"$(pwd)/../../../../util/crossgcc/xgcc/bin/"} +fi + # libpayload crossgcc path if [ -d "$(pwd)/../../util/crossgcc/xgcc/bin/" ] then