2021-07-14 03:37:47 -04:00
|
|
|
# This is the project CMakeLists.txt file for the test subproject
|
2022-05-27 04:10:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2021-07-14 03:37:47 -04:00
|
|
|
|
2022-11-08 11:54:39 -05:00
|
|
|
set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
|
|
|
|
|
2021-07-14 03:37:47 -04:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
project(esp_eth_test)
|
|
|
|
|
|
|
|
idf_component_get_property(lib esp_eth COMPONENT_LIB)
|
|
|
|
target_compile_options(${lib} PRIVATE "-fsanitize=undefined" "-fno-sanitize=shift-base")
|
2024-06-19 10:39:50 -04:00
|
|
|
|
|
|
|
message(STATUS "Checking emac registers are not read-write by half-word")
|
|
|
|
include($ENV{IDF_PATH}/tools/ci/check_register_rw_half_word.cmake)
|
|
|
|
check_register_rw_half_word(SOC_MODULES "emac*" "hp_system" "hp_sys_clkrst" "lp_clkrst"
|
|
|
|
HAL_MODULES "emac*")
|