Extract arch and endian from toolchain name

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>