1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4 5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 6 7project(tfm_psa_level_1) 8 9# Source files in this sample 10target_sources(app PRIVATE src/main.c) 11target_sources(app PRIVATE src/psa_attestation.c) 12target_sources(app PRIVATE src/psa_crypto.c) 13target_sources(app PRIVATE src/shell.c) 14target_sources(app PRIVATE src/util_app_cfg.c) 15target_sources(app PRIVATE src/util_app_log.c) 16target_sources(app PRIVATE src/util_sformat.c) 17 18target_include_directories(app PRIVATE 19 ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/trusted-firmware-m/interface/include 20) 21 22# In TF-M, default value of CRYPTO_ENGINE_BUF_SIZE is 0x2080. It causes 23# insufficient memory failure while verifying signature. Increase it to 0x2400. 24set_property(TARGET zephyr_property_target 25 APPEND PROPERTY TFM_CMAKE_OPTIONS 26 -DCRYPTO_ENGINE_BUF_SIZE=0x2400 27) 28