fix(examples): remove stray EXTRA_COMPONENT_DIRS, fix check

This commit is contained in:
Ivan Grokhotkov
2024-09-25 12:50:23 +02:00
parent fe47676a8b
commit 69f74c34a2
3 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,6 @@
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/storage/sd_card/sdmmc/components/sd_card")
set(COMPONENTS main)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

View File

@@ -0,0 +1,3 @@
dependencies:
sd_card:
path: ${IDF_PATH}/examples/storage/sd_card/sdmmc/components/sd_card

View File

@@ -5,7 +5,7 @@ set -uo pipefail
# Examples shouldn't use EXTRA_COMPONENT_DIRS, instead the dependencies should be specified in idf_component.yml files
output=$(find ${IDF_PATH}/examples -name "CMakeLists.txt" -not -path "**/managed_components/**" -not -path "**/build/**")
files=$(egrep "set\(EXTRA_COMPONENT_DIRS" ${output} | cut -d ":" -f 1)
files=$(egrep "EXTRA_COMPONENT_DIRS" ${output} | cut -d ":" -f 1)
found_issues=0
for file in ${files}
do