2021-06-25 16:31:18 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
|
|
|
|
get_target_property(TFM_BINARY_DIR tfm TFM_BINARY_DIR)
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/dummy_partition/tfm_manifest_list.yaml.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dummy_partition/tfm_manifest_list.yaml
|
|
|
|
)
|
|
|
|
|
|
|
|
set_property(TARGET zephyr_property_target
|
|
|
|
APPEND PROPERTY TFM_CMAKE_OPTIONS
|
|
|
|
-DTFM_EXTRA_MANIFEST_LIST_FILES=${CMAKE_CURRENT_BINARY_DIR}/dummy_partition/tfm_manifest_list.yaml
|
|
|
|
-DTFM_EXTRA_PARTITION_PATHS=${CMAKE_CURRENT_LIST_DIR}/dummy_partition
|
|
|
|
)
|
|
|
|
|
|
|
|
project(tfm_secure_partition)
|
|
|
|
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/main.c
|
|
|
|
src/dummy_partition.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(app PRIVATE
|
2021-11-22 23:53:04 +08:00
|
|
|
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/install/interface/include
|
2021-06-25 16:31:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(app
|
|
|
|
PRIVATE TFM_PARTITION_DUMMY_PARTITION
|
|
|
|
)
|