From f06307c08d9a477fa97a1d2651ffd265fb6fbc97 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Wed, 4 Aug 2021 17:27:53 +0530 Subject: [PATCH] tools/unit_test_app: fixes to build this application with Make build --- .../components/test_utils/component.mk | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/unit-test-app/components/test_utils/component.mk b/tools/unit-test-app/components/test_utils/component.mk index 95f27ab39c..7dadbd17bc 100644 --- a/tools/unit-test-app/components/test_utils/component.mk +++ b/tools/unit-test-app/components/test_utils/component.mk @@ -1,3 +1,18 @@ COMPONENT_PRIV_INCLUDEDIRS := private_include COMPONENT_ADD_INCLUDEDIRS : include -COMPONENT_SRCDIRS := . esp32 +COMPONENT_SRCDIRS := . +COMPONENT_OBJS := ccomp_timer.o test_runner.o test_utils.o + +ifdef CONFIG_IDF_TARGET_ESP32 +COMPONENT_OBJS += ref_clock_impl_rmt_pcnt.o +else +COMPONENT_OBJS += ref_clock_impl_timergroup.o +endif + +ifdef CONFIG_IDF_TARGET_ARCH_RISCV +COMPONENT_OBJS += ccomp_timer_impl_riscv.o +endif + +ifdef CONFIG_IDF_TARGET_ARCH_XTENSA +COMPONENT_OBJS += ccomp_timer_impl_xtensa.o +endif