diff -r 64886971967b -r 31f9d3e4a85f components/spidriver/CMakeLists.txt --- a/components/spidriver/CMakeLists.txt Mon Feb 19 15:07:28 2024 +0100 +++ b/components/spidriver/CMakeLists.txt Mon Jun 24 17:05:20 2024 +0200 @@ -1,2 +1,15 @@ -idf_component_register(SRCS spi_master_lobo.c INCLUDE_DIRS .) +if (NOT IDF_VERSION_MAJOR) + set(IDF_VERSION_MAJOR 3) +endif() + +if (IDF_VERSION_MAJOR LESS 5) + message(FATAL_ERROR "Can't build: requires ESP-IDF version 5.0 or above.") +endif() +set(COMPONENT_ADD_INCLUDEDIRS .) +set(COMPONENT_SRCS "spi_master_lobo.c") +set(COMPONENT_REQUIRES "soc" "driver" "esp_rom") +register_component() + +#idf_component_register(SRCS spi_master_lobo.c INCLUDE_DIRS .) +