build: Introduce clang support
authordp-arm <dimitris.papastamos@arm.com>
Tue, 2 May 2017 11:00:08 +0000 (12:00 +0100)
committerdp-arm <dimitris.papastamos@arm.com>
Wed, 24 May 2017 13:24:49 +0000 (14:24 +0100)
commitd5461857ac66ed4f5ad002936efd9bd8cf99d22f
treed6877f507c52a634cefd76b2465c6d7af96d8351
parent72610c4102990d4f17bd654acad9a415733f795b
build: Introduce clang support

Only the compiler is switched to clang.  The assembler and linker are
provided by the GCC toolchain.

clang is used to build TF when the base name of the path assigned to
`CC` contains the string 'clang'.

`CROSS_COMPILE` is still needed and should point to the appropriate
GCC toolchain.

Tested with clang 3.9.x and 4.0.x.

Change-Id: I53236d64e3c83ad27fc843bae5fcdae30f2e325e
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Makefile
include/lib/aarch32/arch_helpers.h