Pascal Brand | 86eba47 | 2016-01-18 08:52:57 +0100 | [diff] [blame] | 1 | cppflags-$(CFG_TA_FLOAT_SUPPORT) += -DCFG_TA_FLOAT_SUPPORT=1 |
Jerome Forissier | 6d66ca9 | 2020-11-10 15:56:06 +0100 | [diff] [blame] | 2 | cppflags-$(WITH_TLS_TESTS) += -DWITH_TLS_TESTS=1 |
Jerome Forissier | 5c20a5b | 2020-11-10 15:58:49 +0100 | [diff] [blame] | 3 | cppflags-$(WITH_CXX_TESTS) += -DWITH_CXX_TESTS=1 |
Pascal Brand | 86eba47 | 2016-01-18 08:52:57 +0100 | [diff] [blame] | 4 | |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 5 | global-incdirs-y += include |
| 6 | global-incdirs-y += ../crypt/include |
Jerome Forissier | 53bde72 | 2018-05-31 09:14:54 +0200 | [diff] [blame] | 7 | global-incdirs-y += ../os_test_lib/include |
Jens Wiklander | 246184a | 2015-12-11 08:28:59 +0100 | [diff] [blame] | 8 | cflags-y += -Wno-float-equal |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 9 | srcs-y += init.c |
| 10 | srcs-y += os_test.c |
| 11 | srcs-y += ta_entry.c |
Jens Wiklander | 246184a | 2015-12-11 08:28:59 +0100 | [diff] [blame] | 12 | srcs-$(CFG_TA_FLOAT_SUPPORT) += test_float_subj.c |
Jerome Forissier | 5c20a5b | 2020-11-10 15:58:49 +0100 | [diff] [blame] | 13 | ifeq ($(WITH_CXX_TESTS),y) |
Jerome Forissier | d57b084 | 2020-08-14 10:04:27 +0200 | [diff] [blame] | 14 | # 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 Forissier | 1a205ae | 2020-06-17 17:55:00 +0200 | [diff] [blame] | 18 | srcs-y += cxx_tests.cpp |
Jerome Forissier | d57b084 | 2020-08-14 10:04:27 +0200 | [diff] [blame] | 19 | cxxflags-remove-cxx_tests.cpp-y += -pg |
Jerome Forissier | 1a205ae | 2020-06-17 17:55:00 +0200 | [diff] [blame] | 20 | srcs-y += cxx_tests_c.c |
Jerome Forissier | d57b084 | 2020-08-14 10:04:27 +0200 | [diff] [blame] | 21 | cflags-remove-cxx_tests_c.c-y += -pg |
Jerome Forissier | 1a205ae | 2020-06-17 17:55:00 +0200 | [diff] [blame] | 22 | endif |