aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVishnu Banavath <vishnu.banavath@arm.com>2020-03-14 14:46:06 +0000
committerVishnu Banavath <vishnu.banavath@arm.com>2020-07-22 09:25:45 +0100
commit0b572be0b231f649ea26659270b02e0e92146ef3 (patch)
treea54870e6e7a1b3e8a96dab19af5f5a59c58a7a7a /lib
parentdcc1ef71eebdaa02d03f304993e3f8327ba63758 (diff)
downloadtrusted-firmware-m-0b572be0b231f649ea26659270b02e0e92146ef3.tar.gz
Build: Compile the cc312 driver for Cortex-M0+ host processor
These change are made to provide an option to build CC312 hardware crypto driver for cortex-m0plus host processor. Change-Id: I614d8901aa55617aab72a9f83f0b8faa039a3f2a Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ext/cryptocell-312-runtime/host/Makefile.defs16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ext/cryptocell-312-runtime/host/Makefile.defs b/lib/ext/cryptocell-312-runtime/host/Makefile.defs
index 14b03b48a..75c1ccce1 100644
--- a/lib/ext/cryptocell-312-runtime/host/Makefile.defs
+++ b/lib/ext/cryptocell-312-runtime/host/Makefile.defs
@@ -179,6 +179,13 @@ ifeq ($(ARCH),arm)
CFLAGS += -march=armv8-m.main
CFLAGS += -mcmse
CFLAGS += -DARCH_V8M
+ else ifeq ($(ARM_CPU), cortex-m3)
+ # For arm-none-eabi assume cortex-m3
+ ARM_CPU ?= cortex-m3
+ CFLAGS += -mcpu=$(ARM_CPU)
+ else ifeq ($(ARM_CPU), cortex-m0plus)
+ ARM_CPU ?= cortex-m0plus
+ CFLAGS += -mcpu=$(ARM_CPU)
else
$(error unrecognized ARM_CPU "$(ARM_CPU)")
endif
@@ -194,6 +201,12 @@ ifeq ($(ARCH),arm)
CFLAGS += -mcmse
CFLAGS += -mfpu=none
CFLAGS += -DARCH_V8M
+ else ifeq ($(ARM_CPU), cortex-m3)
+ ARM_CPU ?= cortex-m3
+ CFLAGS += -mcpu=$(ARM_CPU)
+ else ifeq ($(ARM_CPU), cortex-m0plus)
+ ARM_CPU ?= cortex-m0plus
+ CFLAGS += -mcpu=$(ARM_CPU)
else
$(error unrecognized ARM_CPU "$(ARM_CPU)")
endif
@@ -320,6 +333,9 @@ endif
ifeq ($(ARM_CPU),cortex-m3)
TESTAL_PAL_ARCH = cm3
endif
+ifeq ($(ARM_CPU),cortex-m0plus)
+TESTAL_PAL_ARCH = cm0plus
+endif
ifeq ($(ARM_CPU),cortex-m33)
TESTAL_PAL_ARCH = cm33
endif