aboutsummaryrefslogtreecommitdiffstats
path: root/security/smc/Makefile
blob: de045b60404719184f687b7c0ae669445fb0c25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Copyright (c) 2011 Trusted Logic S.A.
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#

ifdef S_VERSION_BUILD
EXTRA_CFLAGS += -DS_VERSION_BUILD=$(S_VERSION_BUILD)
endif

EXTRA_CFLAGS += -Iarch/arm/mach-omap2
EXTRA_CFLAGS += -Iarch/arm/plat-omap/include/plat
EXTRA_CFLAGS += -DCONFIG_TF_TEEC
ifeq ($(CONFIG_ION),y)
EXTRA_CFLAGS += -DCONFIG_TF_ION
endif

tf_driver-objs += tf_util.o
tf_driver-objs += tf_conn.o
tf_driver-objs += tf_device.o
tf_driver-objs += tf_comm.o
tf_driver-objs += tf_crypto.o
tf_driver-objs += tf_crypto_digest.o
tf_driver-objs += tf_crypto_aes.o
tf_driver-objs += tf_crypto_des.o
tf_driver-objs += tf_dma.o
tf_driver-objs += tf_comm_mshield.o
tf_driver-objs += tf_device_mshield.o
tf_driver-objs += bridge_pub2sec.o
tf_driver-objs += tf_teec.o

ifeq ($(CONFIG_TF_DRIVER_CRYPTO_FIPS),y)
tf_driver-objs += tf_crypto_hmac.o
tf_driver-objs += tf_self_test_device.o
tf_driver-objs += tf_self_test_post.o
endif

obj-$(CONFIG_SECURITY_MIDDLEWARE_COMPONENT) += tf_driver.o
obj-$(CONFIG_SECURITY_MIDDLEWARE_COMPONENT) += rproc_drm.o

obj-$(CONFIG_TF_CRYPTO_RNG) += tf_crypto_rng.o

plus_sec := $(call as-instr,.arch_extension sec,+sec)
AFLAGS_bridge_pub2sec.o :=-Wa,-march=armv7-a$(plus_sec)