Build: Fix determing GNUARM_PREFIX on windows

We extract the GNUARM_PREFIX from CMAKE_C_COMPILER.  On windows that
will be something like arm-none-eabi-gcc.exe.  So the existing string
manipulation would turn that into arm-none-eabi.exe.  We need to strip
off the .exe as well for this to work correct on windows as well.

Change-Id: I98b0d6bb000433f267080147f83d527b9f36ca12
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
1 file changed