From 3f19e913895dc0c94ca0cfa528267ea9e2cf80d3 Mon Sep 17 00:00:00 2001 From: ismail Date: Mon, 7 Jul 2025 18:41:05 +0300 Subject: [PATCH] Initial commit --- CMakeLists.txt | 8 ++++++++ Kconfig | 0 include/component.h | 0 src/component.c | 0 test_apps/component/CMakeLists.txt | 8 ++++++++ test_apps/component/README.md | 0 test_apps/component/main/CMakeLists.txt | 8 ++++++++ test_apps/component/main/test_app_main.c | 0 test_apps/component/main/test_component.c | 0 test_apps/component/sdkconfig.ci.xxx | 0 test_apps/component/sdkconfig.defaults | 0 11 files changed, 24 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 Kconfig create mode 100644 include/component.h create mode 100644 src/component.c create mode 100644 test_apps/component/CMakeLists.txt create mode 100644 test_apps/component/README.md create mode 100644 test_apps/component/main/CMakeLists.txt create mode 100644 test_apps/component/main/test_app_main.c create mode 100644 test_apps/component/main/test_component.c create mode 100644 test_apps/component/sdkconfig.ci.xxx create mode 100644 test_apps/component/sdkconfig.defaults diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d58828f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +idf_build_get_property(target IDF_TARGET) + +set(srcs "src/component.c") +set(public_include "include") + +idf_component_register(SRCS ${srcs} + INCLUDE_DIRS ${public_include} + ) diff --git a/Kconfig b/Kconfig new file mode 100644 index 0000000..e69de29 diff --git a/include/component.h b/include/component.h new file mode 100644 index 0000000..e69de29 diff --git a/src/component.c b/src/component.c new file mode 100644 index 0000000..e69de29 diff --git a/test_apps/component/CMakeLists.txt b/test_apps/component/CMakeLists.txt new file mode 100644 index 0000000..d6ec654 --- /dev/null +++ b/test_apps/component/CMakeLists.txt @@ -0,0 +1,8 @@ +# This is the project CMakeLists.txt file for the test subproject +cmake_minimum_required(VERSION 3.16) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(component_test) diff --git a/test_apps/component/README.md b/test_apps/component/README.md new file mode 100644 index 0000000..e69de29 diff --git a/test_apps/component/main/CMakeLists.txt b/test_apps/component/main/CMakeLists.txt new file mode 100644 index 0000000..eaa1f6f --- /dev/null +++ b/test_apps/component/main/CMakeLists.txt @@ -0,0 +1,8 @@ +set(srcs "test_app_main.c" + "test_component.c") + +# In order for the cases defined by `TEST_CASE` to be linked into the final elf, +# the component can be registered as WHOLE_ARCHIVE +idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity esp_driver_gpio spi_flash esp_psram + WHOLE_ARCHIVE) diff --git a/test_apps/component/main/test_app_main.c b/test_apps/component/main/test_app_main.c new file mode 100644 index 0000000..e69de29 diff --git a/test_apps/component/main/test_component.c b/test_apps/component/main/test_component.c new file mode 100644 index 0000000..e69de29 diff --git a/test_apps/component/sdkconfig.ci.xxx b/test_apps/component/sdkconfig.ci.xxx new file mode 100644 index 0000000..e69de29 diff --git a/test_apps/component/sdkconfig.defaults b/test_apps/component/sdkconfig.defaults new file mode 100644 index 0000000..e69de29