Merge branch 'refactor/ringbuffer_set_build_test_dependency' into 'master'

change(esp_ringbuf): specify build test dependency

Closes IDF-8395

See merge request espressif/esp-idf!26965
This commit is contained in:
morris
2023-11-07 16:08:59 +08:00
3 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,3 @@
idf_build_get_property(target IDF_TARGET)
idf_component_register(SRCS "ringbuf.c" idf_component_register(SRCS "ringbuf.c"
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
LDFRAGMENTS linker.lf) LDFRAGMENTS linker.lf)

View File

@@ -4,3 +4,6 @@ components/esp_ringbuf/test_apps:
enable: enable:
- if: IDF_TARGET in ["esp32", "esp32c3", "esp32s2"] - if: IDF_TARGET in ["esp32", "esp32c3", "esp32s2"]
reason: covers all target types reason: covers all target types
depends_components:
- freertos
- esp_ringbuf

View File

@@ -2,5 +2,5 @@ set(srcs "test_ringbuf_main.c"
"test_ringbuf.c") "test_ringbuf.c")
idf_component_register(SRCS ${srcs} 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) WHOLE_ARCHIVE)