xref: /OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# Normally this makefile shouldn't be called directly and we expect the output
2*4882a593Smuzhiyun# path to be on a certain location to fit together with the other OP-TEE
3*4882a593Smuzhiyun# gits and helper scripts.
4*4882a593Smuzhiyunifeq ($O,)
5*4882a593Smuzhiyun$(error output path should be specified when calling this makefile)
6*4882a593Smuzhiyunendif
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun# Prevent use of LDFLAGS from the environment. For example, yocto exports
9*4882a593Smuzhiyun# LDFLAGS that are suitable for the client applications, not for TAs
10*4882a593SmuzhiyunLDFLAGS=
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunTA_DIRS := rk_test  \
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunifdef CFG_GP_PACKAGE_PATH
16*4882a593SmuzhiyunTA_DIRS += GP_TTA_Arithmetical \
17*4882a593Smuzhiyun	   GP_TTA_Crypto \
18*4882a593Smuzhiyun	   GP_TTA_DS \
19*4882a593Smuzhiyun	   GP_TTA_TCF \
20*4882a593Smuzhiyun	   GP_TTA_TCF_ICA \
21*4882a593Smuzhiyun	   GP_TTA_TCF_ICA2 \
22*4882a593Smuzhiyun	   GP_TTA_TCF_MultipleInstanceTA \
23*4882a593Smuzhiyun	   GP_TTA_TCF_SingleInstanceTA \
24*4882a593Smuzhiyun	   GP_TTA_Time \
25*4882a593Smuzhiyun	   GP_TTA_answerErrorTo_Invoke \
26*4882a593Smuzhiyun	   GP_TTA_answerErrorTo_OpenSession \
27*4882a593Smuzhiyun	   GP_TTA_answerSuccessTo_OpenSession_Invoke \
28*4882a593Smuzhiyun	   GP_TTA_check_OpenSession_with_4_parameters \
29*4882a593Smuzhiyun	   GP_TTA_testingClientAPI
30*4882a593Smuzhiyunendif
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun.PHONY: all
33*4882a593Smuzhiyunall: ta
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun.PHONY: ta
36*4882a593Smuzhiyunta:
37*4882a593Smuzhiyun	$(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) &&) true
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun.PHONY: clean
40*4882a593Smuzhiyunclean:
41*4882a593Smuzhiyun	$(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) $@ &&) true
42