1# 2# Copyright (c) 2024 Nordic Semiconductor ASA 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7cmake_minimum_required(VERSION 3.20.0) 8 9find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 10project(wifi_credentials_test) 11 12FILE(GLOB app_sources src/*.c) 13target_sources(app PRIVATE ${app_sources}) 14 15target_sources(app 16 PRIVATE 17 ${ZEPHYR_BASE}/subsys/net/lib/wifi_credentials/wifi_credentials_backend_psa.c 18) 19 20zephyr_include_directories(${ZEPHYR_BASE}/subsys/testsuite/include) 21zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/lib/wifi_credentials/) 22zephyr_include_directories(${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/interface/include/) 23zephyr_include_directories(${ZEPHYR_BASE}/../modules/crypto/mbedtls/include/) 24 25target_compile_options(app 26 PRIVATE 27 -DCONFIG_WIFI_CREDENTIALS_MAX_ENTRIES=2 28 -DCONFIG_WIFI_CREDENTIALS_SAE_PASSWORD_LENGTH=128 29 -DCONFIG_WIFI_CREDENTIALS_LOG_LEVEL=4 30 -DCONFIG_WIFI_CREDENTIALS_BACKEND_PSA_OFFSET=5 31) 32 33set_property( 34 SOURCE ${ZEPHYR_BASE}/subsys/net/lib/wifi_credentials/wifi_credentials_backend_psa.c 35 PROPERTY COMPILE_FLAGS "-include ${CMAKE_CURRENT_SOURCE_DIR}/src/normalized_crypto.h" 36) 37