blob: bcc7723432253f5dc081ce9bfa525179b4e348dc [file] [log] [blame]
Pascal Brandc639ac82015-07-02 08:53:34 +02001# Normally this makefile shouldn't be called directly and we expect the output
2# path to be on a certain location to fit together with the other OP-TEE
3# gits and helper scripts.
4ifeq ($O,)
5$(error output path should be specified when calling this makefile)
6endif
7
Sumit Garg0e009142015-11-04 15:34:07 -05008# Prevent use of LDFLAGS from the environment. For example, yocto exports
9# LDFLAGS that are suitable for the client applications, not for TAs
10LDFLAGS=
11
Pascal Brandc639ac82015-07-02 08:53:34 +020012TA_DIRS := create_fail_test \
13 crypt \
14 os_test \
15 rpc_test \
16 sims \
Jens Wiklanderac27ec12015-07-15 15:23:14 +020017 storage \
Jerome Forissiere3854162016-08-12 12:40:12 +020018 storage2 \
James Kungdf1e6cf2015-09-14 22:42:24 +080019 concurrent \
Jens Wiklander70672972016-04-06 00:01:45 +020020 concurrent_large \
Igor Opaniuk136644a2016-09-13 13:40:56 +030021 storage_benchmark \
Igor Opaniuk44aff4b2016-09-16 10:18:00 +030022 sha_perf \
Jens Wiklander02389a92016-12-16 11:13:38 +010023 aes_perf \
24 socket
Pascal Brandc639ac82015-07-02 08:53:34 +020025
Jerome Forissiere3688342015-09-24 10:45:17 -070026ifdef CFG_GP_PACKAGE_PATH
Pascal Brandc639ac82015-07-02 08:53:34 +020027TA_DIRS += GP_TTA_Arithmetical \
28 GP_TTA_Crypto \
29 GP_TTA_DS \
30 GP_TTA_TCF \
31 GP_TTA_TCF_ICA \
32 GP_TTA_TCF_ICA2 \
33 GP_TTA_TCF_MultipleInstanceTA \
34 GP_TTA_TCF_SingleInstanceTA \
35 GP_TTA_Time \
36 GP_TTA_answerErrorTo_Invoke \
37 GP_TTA_answerErrorTo_OpenSession \
38 GP_TTA_answerSuccessTo_OpenSession_Invoke \
39 GP_TTA_check_OpenSession_with_4_parameters \
40 GP_TTA_testingClientAPI
41endif
42
43.PHONY: all
44all: ta
45
46.PHONY: ta
47ta:
48 $(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) &&) true
49
50.PHONY: clean
51clean:
52 $(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) $@ &&) true