CMakeLists.txt 466 B

1234567891011121314
  1. # Copyright (c) 2023-2024 HPMicro
  2. # SPDX-License-Identifier: BSD-3-Clause
  3. if (CONFIG_MBEDTLS_USE_HPM_SDP)
  4. if (HPMSOC_HAS_HPMSDK_SDP)
  5. message(STATUS "Using HPM SDP for mbedtls")
  6. add_subdirectory(sdp)
  7. sdk_compile_definitions(-DCONFIG_MBEDTLS_USE_HPM_SDP=1)
  8. else()
  9. message(FATAL_ERROR "CONFIG_MBEDTLS_USE_HPM_SDP is enabled, but there is no SDP on this MCU ! Please set CONFIG_MBEDTLS_USE_HPM_SDP to 0 !")
  10. endif()
  11. endif()