summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2018-08-07 12:19:28 +0800
committerJun Nie <jun.nie@linaro.org>2018-08-07 12:19:28 +0800
commit9ea56f0b7a1755f34dd6eb3e95d64f2226d6f8bd (patch)
treee4752d1227f289ef37f919a9e85328d4d9040fa1
parentfbfcb00e8e557bb053cc0a26878f636efd5d0087 (diff)
Build: introduce cflags for ARMv7
introduce cflags for ARMv7 for compiler Signed-off-by: Jun Nie <jun.nie@linaro.org>
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aa4bf4d..6b7480c 100644
--- a/Makefile
+++ b/Makefile
@@ -210,8 +210,13 @@ endif
ASFLAGS_aarch64 = -mgeneral-regs-only
TFTF_CFLAGS_aarch64 = -mgeneral-regs-only
+ifeq (${ARM_ARCH_MAJOR},7)
+ASFLAGS_aarch32 = -march=armv7-a
+TFTF_CFLAGS_aarch32 = -march=armv7-a
+else
ASFLAGS_aarch32 = -march=armv8-a
TFTF_CFLAGS_aarch32 = -march=armv8-a
+endif
ASFLAGS += -nostdinc -ffreestanding -Wa,--fatal-warnings \
-Werror -Wmissing-include-dirs \