fix prepend logic on extend_path function
Currently, prepending using the 'extend path' function, it reverse the original
order of the list to be prepended, i.e for PATH="X:Y:Z" and
path_list=(
"${aarch64_none_elf_dir}/bin"
"${arm_none_eabi_dir}/bin"
"${nfs_volume}/pdsw/tools/gcc-arm-none-eabi-5_4-2016q3/bin"
"$coverity_path/bin"
)
is prepended as
PATH="$coverity_path/bin:${nfs_volume}/pdsw/tools/gcc-arm-none-eabi-5_4-2016q3/bin:\
${arm_none_eabi_dir}/bin:${aarch64_none_elf_dir}/bin:X:Y:Z"
instead of
PATH="${aarch64_none_elf_dir}/bin:${arm_none_eabi_dir}/bin:\
${nfs_volume}/pdsw/tools/gcc-arm-none-eabi-5_4-2016q3/bin:X:Y:Z"
Order is important, otherwise older toolchain binary versions are picked first
instead of newer ones.
Change-Id: I8a08eb05c96215c53b2b9dc6b632520a150b4676
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
1 file changed