Skip to content

Commit

Permalink
ta: also build GP TAs when GP_PACKAGE is set
Browse files Browse the repository at this point in the history
Add the GlobalPlatform Test Suite TAs to the build when GP_PACKAGE is
set. This happens in the OP-TEE build environment [1], which still handles
the package extraction step as well as the final installation of the TAs
into the staging directory.

Link: https://github.com/OP-TEE/build/blob/4.2.0/br-ext/package/optee_test_ext/optee_test_ext.mk [1]
Signed-off-by: Jerome Forissier <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Apr 22, 2024
1 parent ea9f273 commit 8a31d08
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ta/Makefile.gmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ $(eval $(foreach dir,$(TA_DIRS),$(call add-ta-target,$(dir))))

ta-os_test: ta-os_test_lib ta-os_test_lib_dl

ifneq (,$(GP_PACKAGE))
define add-gp-ta-target
.PHONY: gp-ta-$(1)
gp-ta-$(1):
$(MAKE) -C $(1)

ta: gp-ta-$(1)

endef

$(eval $(foreach f,$(dir $(wildcard ../host/xtest/gp-suite/TTAs_Internal_API_1_1_1/*/*/code_files/Makefile \
../host/xtest/gp-suite/TTAs_Internal_API_1_1_1/*/*/*/code_files/Makefile)),$(call add-gp-ta-target,$(f))))
endif

# remove build directories including ta/<ta-name>/ directories.
# Note: $(out-dir) may be a relative path.
RMDIR := rmdir --ignore-fail-on-non-empty
Expand Down

0 comments on commit 8a31d08

Please sign in to comment.