kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/ut_building_test_check' into 'master'
esp32, mbedtls: check component name when enabling test flags See merge request idf/esp-idf!3742pull/2729/head
commit
4c881708dc
|
@ -158,7 +158,7 @@ else()
|
|||
endif()
|
||||
|
||||
# Enable dynamic esp_timer overflow value if building unit tests
|
||||
if(NOT "${BUILD_TEST_COMPONENTS}" EQUAL "")
|
||||
if(esp32_test IN_LIST BUILD_TEST_COMPONENTS)
|
||||
add_definitions(-DESP_TIMER_DYNAMIC_OVERFLOW_VAL)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -39,7 +39,7 @@ CXXFLAGS+=-mfix-esp32-psram-cache-issue
|
|||
endif
|
||||
|
||||
# Enable dynamic esp_timer overflow value if building unit tests
|
||||
ifneq ("$(TEST_COMPONENTS_LIST)","")
|
||||
ifneq ("$(filter esp32,$(TEST_COMPONENTS_LIST))","")
|
||||
CPPFLAGS += -DESP_TIMER_DYNAMIC_OVERFLOW_VAL
|
||||
endif
|
||||
ESP32_LINKER_SCRIPT_TEMPLATE := $(COMPONENT_PATH)/ld/esp32.common.ld.in
|
||||
|
|
|
@ -94,3 +94,8 @@ register_component()
|
|||
target_compile_definitions(mbedtls PUBLIC
|
||||
-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"
|
||||
)
|
||||
|
||||
# Catch usage of deprecated mbedTLS functions when building tests
|
||||
if(mbedtls_test IN_LIST BUILD_TEST_COMPONENTS)
|
||||
add_definitions(-DMBEDTLS_DEPRECATED_WARNING)
|
||||
endif()
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"'
|
||||
|
||||
# Catch usage of deprecated mbedTLS functions when building tests
|
||||
ifneq ("$(TEST_COMPONENTS_LIST)","")
|
||||
ifneq ("$(filter mbedtls,$(TEST_COMPONENTS_LIST))","")
|
||||
CPPFLAGS += -DMBEDTLS_DEPRECATED_WARNING
|
||||
endif
|
||||
|
|
|
@ -17,7 +17,7 @@ $(2): $(1) $(LDGEN_FRAGMENT_FILES) $(SDKCONFIG) $(LDGEN_SECTIONS_INFO_FILES)
|
|||
--kconfig $(IDF_PATH)/Kconfig \
|
||||
--env "COMPONENT_KCONFIGS=$(COMPONENT_KCONFIGS)" \
|
||||
--env "COMPONENT_KCONFIGS_PROJBUILD=$(COMPONENT_KCONFIGS_PROJBUILD)" \
|
||||
--env "IDF_CMAKE=n"
|
||||
--env "IDF_CMAKE=n" \
|
||||
--env "IDF_TARGET=$(IDF_TARGET)"
|
||||
endef
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue