mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
esp_adc_cal: simplify CMakeLists.txt
This commit is contained in:
@@ -1,22 +1,7 @@
|
|||||||
idf_build_get_property(target IDF_TARGET)
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
|
||||||
if(${target} STREQUAL "esp32")
|
set(srcs "esp_adc_cal_${target}.c")
|
||||||
idf_component_register(SRCS "esp_adc_cal_esp32.c"
|
|
||||||
INCLUDE_DIRS "include"
|
|
||||||
REQUIRES driver efuse)
|
|
||||||
|
|
||||||
elseif(${target} STREQUAL "esp32s2")
|
idf_component_register(SRCS ${srcs}
|
||||||
idf_component_register(SRCS "esp_adc_cal_esp32s2.c"
|
INCLUDE_DIRS include
|
||||||
INCLUDE_DIRS "include"
|
|
||||||
REQUIRES driver efuse)
|
REQUIRES driver efuse)
|
||||||
|
|
||||||
elseif(${target} STREQUAL "esp32c3")
|
|
||||||
idf_component_register(SRCS "esp_adc_cal_esp32c3.c"
|
|
||||||
INCLUDE_DIRS "include"
|
|
||||||
REQUIRES driver efuse)
|
|
||||||
|
|
||||||
elseif(${target} STREQUAL "esp32s3")
|
|
||||||
idf_component_register(SRCS "esp_adc_cal_esp32s3.c"
|
|
||||||
INCLUDE_DIRS "include"
|
|
||||||
REQUIRES driver efuse)
|
|
||||||
endif()
|
|
||||||
|
@@ -2,5 +2,5 @@
|
|||||||
# Component Makefile
|
# Component Makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
|
COMPONENT_SRCDIRS := . $(IDF_TARGET)
|
||||||
COMPONENT_ADD_INCLUDEDIRS := include
|
COMPONENT_ADD_INCLUDEDIRS := include
|
||||||
COMPONENT_OBJEXCLUDE += esp_adc_cal_esp32s2.o esp_adc_cal_esp32c3.o esp_adc_cal_esp32h2.o esp_adc_cal_esp32s3.o
|
|
||||||
|
Reference in New Issue
Block a user