1# 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 8# 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 12TA_DIRS := rk_test \ 13 14 15ifdef CFG_GP_PACKAGE_PATH 16TA_DIRS += GP_TTA_Arithmetical \ 17 GP_TTA_Crypto \ 18 GP_TTA_DS \ 19 GP_TTA_TCF \ 20 GP_TTA_TCF_ICA \ 21 GP_TTA_TCF_ICA2 \ 22 GP_TTA_TCF_MultipleInstanceTA \ 23 GP_TTA_TCF_SingleInstanceTA \ 24 GP_TTA_Time \ 25 GP_TTA_answerErrorTo_Invoke \ 26 GP_TTA_answerErrorTo_OpenSession \ 27 GP_TTA_answerSuccessTo_OpenSession_Invoke \ 28 GP_TTA_check_OpenSession_with_4_parameters \ 29 GP_TTA_testingClientAPI 30endif 31 32.PHONY: all 33all: ta 34 35.PHONY: ta 36ta: 37 $(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) &&) true 38 39.PHONY: clean 40clean: 41 $(q)$(foreach dir,$(TA_DIRS), $(MAKE) -C $(dir) O=$(O)/$(dir) $@ &&) true 42