blob: 4088ff885539b914affc360c2fdab587cb02af92 [file] [log] [blame]
Pascal Brand86eba472016-01-18 08:52:57 +01001cppflags-$(CFG_TA_FLOAT_SUPPORT) += -DCFG_TA_FLOAT_SUPPORT=1
Jerome Forissier6d66ca92020-11-10 15:56:06 +01002cppflags-$(WITH_TLS_TESTS) += -DWITH_TLS_TESTS=1
Jerome Forissier5c20a5b2020-11-10 15:58:49 +01003cppflags-$(WITH_CXX_TESTS) += -DWITH_CXX_TESTS=1
Pascal Brand86eba472016-01-18 08:52:57 +01004
Pascal Brandc639ac82015-07-02 08:53:34 +02005global-incdirs-y += include
6global-incdirs-y += ../crypt/include
Jerome Forissier53bde722018-05-31 09:14:54 +02007global-incdirs-y += ../os_test_lib/include
Jens Wiklander246184a2015-12-11 08:28:59 +01008cflags-y += -Wno-float-equal
Pascal Brandc639ac82015-07-02 08:53:34 +02009srcs-y += init.c
10srcs-y += os_test.c
11srcs-y += ta_entry.c
Jens Wiklander246184a2015-12-11 08:28:59 +010012srcs-$(CFG_TA_FLOAT_SUPPORT) += test_float_subj.c
Jerome Forissier5c20a5b2020-11-10 15:58:49 +010013ifeq ($(WITH_CXX_TESTS),y)
Jerome Forissierd57b0842020-08-14 10:04:27 +020014# Profiling (-pg) is disabled for C++ tests because in case it is used for
15# function tracing (CFG_FTRACE_SUPPORT=y) then the exception handling code in
16# the C++ runtime won't be able to unwind the (modified) stack.
17# https://github.com/OP-TEE/optee_os/issues/4022
Jerome Forissier1a205ae2020-06-17 17:55:00 +020018srcs-y += cxx_tests.cpp
Jerome Forissierd57b0842020-08-14 10:04:27 +020019cxxflags-remove-cxx_tests.cpp-y += -pg
Jerome Forissier1a205ae2020-06-17 17:55:00 +020020srcs-y += cxx_tests_c.c
Jerome Forissierd57b0842020-08-14 10:04:27 +020021cflags-remove-cxx_tests_c.c-y += -pg
Jerome Forissier1a205ae2020-06-17 17:55:00 +020022endif