summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordp-arm <dimitris.papastamos@arm.com>2017-05-03 16:30:32 +0100
committerdp-arm <dimitris.papastamos@arm.com>2017-05-24 14:24:49 +0100
commit7559633b9c3004ee58744c8d554808bea7bc09a4 (patch)
treeec8855a5255f5407565e68327bc5bdf58fc5c31b
parentd5461857ac66ed4f5ad002936efd9bd8cf99d22f (diff)
build: Introduce ARM Compiler 6 support
Only the compiler is switched to ARM Compiler 6. The assembler and linker are provided by the GCC toolchain. ARM Compiler 6 is used to build TF when the base name of the path assigned to `CC` matches the string 'armclang'. `CROSS_COMPILE` is still needed and should point to the appropriate GCC toolchain. Tested with ARM CC 6.7. Change-Id: Ib359bf9c1e8aeed3f662668e44830864f3fe7b4a Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 44d4933b..299ff303 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,10 @@ OD := ${CROSS_COMPILE}objdump
NM := ${CROSS_COMPILE}nm
PP := ${CROSS_COMPILE}gcc -E
-ifneq ($(findstring clang,$(notdir $(CC))),)
+ifeq ($(notdir $(CC)),armclang)
+TF_CFLAGS_aarch32 = -target arm-arm-none-eabi -march=armv8-a
+TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
+else ifneq ($(findstring clang,$(notdir $(CC))),)
TF_CFLAGS_aarch32 = -target armv8a-none-eabi
TF_CFLAGS_aarch64 = -target aarch64-elf
else