From 369e423dadce5a2939de15b1386412b2b7a3d6f2 Mon Sep 17 00:00:00 2001 From: morris Date: Tue, 7 Nov 2023 10:38:49 +0800 Subject: [PATCH] change(esp_ringbuf): specify build test dependency --- components/esp_ringbuf/CMakeLists.txt | 6 ++---- components/esp_ringbuf/test_apps/.build-test-rules.yml | 3 +++ components/esp_ringbuf/test_apps/main/CMakeLists.txt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/esp_ringbuf/CMakeLists.txt b/components/esp_ringbuf/CMakeLists.txt index 09bfac678b..381b09b4b2 100644 --- a/components/esp_ringbuf/CMakeLists.txt +++ b/components/esp_ringbuf/CMakeLists.txt @@ -1,5 +1,3 @@ -idf_build_get_property(target IDF_TARGET) - idf_component_register(SRCS "ringbuf.c" - INCLUDE_DIRS "include" - LDFRAGMENTS linker.lf) + INCLUDE_DIRS "include" + LDFRAGMENTS linker.lf) diff --git a/components/esp_ringbuf/test_apps/.build-test-rules.yml b/components/esp_ringbuf/test_apps/.build-test-rules.yml index 5243ad2622..e3d2bb10a3 100644 --- a/components/esp_ringbuf/test_apps/.build-test-rules.yml +++ b/components/esp_ringbuf/test_apps/.build-test-rules.yml @@ -4,3 +4,6 @@ components/esp_ringbuf/test_apps: enable: - if: IDF_TARGET in ["esp32", "esp32c3", "esp32s2"] reason: covers all target types + depends_components: + - freertos + - esp_ringbuf diff --git a/components/esp_ringbuf/test_apps/main/CMakeLists.txt b/components/esp_ringbuf/test_apps/main/CMakeLists.txt index 6e0d2e13cb..32fe1833c6 100644 --- a/components/esp_ringbuf/test_apps/main/CMakeLists.txt +++ b/components/esp_ringbuf/test_apps/main/CMakeLists.txt @@ -2,5 +2,5 @@ set(srcs "test_ringbuf_main.c" "test_ringbuf.c") idf_component_register(SRCS ${srcs} - PRIV_REQUIRES esp_ringbuf driver spi_flash unity + PRIV_REQUIRES esp_ringbuf esp_driver_gptimer spi_flash unity WHOLE_ARCHIVE)