blob: 2d0830f7cf60f58bc7e61d3f0198cb6bd0e359a6 [file] [log] [blame]
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +05301#/** @file
Avi Nawaldcef7342025-07-12 01:23:45 +05302# * Copyright (c) 2019-2025, Arm Limited or its affiliates. All rights reserved.
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +05303# * SPDX-License-Identifier : Apache-2.0
4# *
5# * Licensed under the Apache License, Version 2.0 (the "License");
6# * you may not use this file except in compliance with the License.
7# * You may obtain a copy of the License at
8# *
9# * http://www.apache.org/licenses/LICENSE-2.0
10# *
11# * Unless required by applicable law or agreed to in writing, software
12# * distributed under the License is distributed on an "AS IS" BASIS,
13# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# * See the License for the specific language governing permissions and
15# * limitations under the License.
16#**/
17
18# Listing all the sources from val
19list(APPEND VAL_SRC_C_NSPE
jothikumar mani4a274162023-07-18 00:31:22 +080020 ${PSA_ROOT_DIR}/val/nspe/val_platform.c
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053021 ${PSA_ROOT_DIR}/val/nspe/val_entry.c
22 ${PSA_ROOT_DIR}/val/nspe/val_dispatcher.c
23 ${PSA_ROOT_DIR}/val/nspe/val_framework.c
24 ${PSA_ROOT_DIR}/val/nspe/val_crypto.c
25 ${PSA_ROOT_DIR}/val/nspe/val_interfaces.c
26 ${PSA_ROOT_DIR}/val/nspe/val_peripherals.c
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053027 ${PSA_ROOT_DIR}/val/nspe/val_attestation.c
Vinay Kumar Kotegowder18fcd402020-04-27 17:38:41 +053028 ${PSA_ROOT_DIR}/val/nspe/val_storage.c
jothikumar mani2683dbf2023-06-22 16:13:00 +080029 ${PSA_ROOT_DIR}/val/nspe/val_platform.c
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053030)
31
32# Create VAL NSPE library
33add_library(${PSA_TARGET_VAL_NSPE_LIB} STATIC ${VAL_SRC_C_NSPE})
34
35
36# PSA Include directories
37foreach(psa_inc_path ${PSA_INCLUDE_PATHS})
38 target_include_directories(${PSA_TARGET_VAL_NSPE_LIB} PRIVATE ${psa_inc_path})
39endforeach()
40
Gowtham Siddarthff38d712019-11-29 10:30:47 +053041if(${SUITE} STREQUAL "INITIAL_ATTESTATION")
42target_include_directories(${PSA_TARGET_VAL_NSPE_LIB} PRIVATE
43 ${PSA_QCBOR_INCLUDE_PATH}
44)
45endif()
46
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053047target_include_directories(${PSA_TARGET_VAL_NSPE_LIB} PRIVATE
48 ${CMAKE_CURRENT_BINARY_DIR}
49 ${PSA_ROOT_DIR}/val/common
50 ${PSA_ROOT_DIR}/val/nspe
51 ${PSA_ROOT_DIR}/val/spe
Vinay Kumar Kotegowder18fcd402020-04-27 17:38:41 +053052 ${PSA_ROOT_DIR}/platform/targets/common/nspe
53 ${PSA_ROOT_DIR}/platform/targets/common/nspe/crypto
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053054 ${PSA_ROOT_DIR}/platform/targets/${TARGET}/nspe
Avi Nawaldcef7342025-07-12 01:23:45 +053055 ${COMMON_VAL_PATH}/inc
Vinay Kumar Kotegowder9982f902019-07-15 09:13:54 +053056)
57
58if(${WATCHDOG_AVAILABLE} EQUAL 1)
59 target_compile_definitions(${PSA_TARGET_VAL_NSPE_LIB} PRIVATE WATCHDOG_AVAILABLE)
60endif()
Avi Nawal5e72bf92024-03-14 18:39:09 +080061target_compile_definitions(${PSA_TARGET_VAL_NSPE_LIB} PRIVATE VAL_NSPE_BUILD)