Update ARMGCC to support cross/native compilation.
Update ARMGCC to support cross/native compilation.

The ARMGCC target currently has hard-wired toolchain
binary names (arm-none-eabi-*). This is quite unflexible,
does not match all existing compatible cross-toolchains and does not
permit cross-compiling at all.

This patch makes the ARMGCC target use the CROSS_COMPILE
environment variable, just like the Linux kernel, as a full prefix to the
actual toolchain binaries. Omitting or unsetting CROSS_COMPILE will make
both targets equivalent to ELFGCC, enabling native builds on ARM platforms..

It will break existing build scripts, but the fix would be a one-line
change of an environment variable.

Signed-off-by: leif.lindholm@linaro.org
Reviewed-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: f3880c1fc5096ce2109c8aec392d8e07f619f417@2580 c2973edb-eda0-4c78-bc6a-9341b269661f

bitcrystal/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools,tianocore/buildtools-BaseTools,tianocore/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools,bitcrystal/buildtools-BaseTools,tianocore/buildtools-BaseTools,bitcrystal/buildtools-BaseTools