blob: 25ec818a4d934095030281eadb45c6952d8da9f0 [file] [log] [blame]
Vinay Kumar Kotegowder932eed02019-08-22 00:42:47 +05301#/** @file
2# * Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved.
3# * 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# Collecting all the required sources from val
19list(APPEND VAL_SRC_C
20 "${TBSA_ROOT_DIR}/val/src/val_crypto.c"
21 "${TBSA_ROOT_DIR}/val/src/val_debug.c"
22 "${TBSA_ROOT_DIR}/val/src/val_dispatcher.c"
23 "${TBSA_ROOT_DIR}/val/src/val_fuse.c"
24 "${TBSA_ROOT_DIR}/val/src/val_infra.c"
25 "${TBSA_ROOT_DIR}/val/src/val_interfaces.c"
26 "${TBSA_ROOT_DIR}/val/src/val_interrupt.c"
27 "${TBSA_ROOT_DIR}/val/src/val_ns_callable.c"
28 "${TBSA_ROOT_DIR}/val/src/val_pe.c"
29 "${TBSA_ROOT_DIR}/val/src/val_peripherals.c"
30 "${TBSA_ROOT_DIR}/val/src/val_test.c"
31 )
32
33list(APPEND VAL_SRC_ASM_S
34 "${TBSA_ROOT_DIR}/val/src/asm/val_secure_${ARCH}.s"
35 "${TBSA_ROOT_DIR}/val/src/asm/val_pe_support.s"
36 )
37
38# Create VAL static library
39add_library(${TBSA_TARGET_VAL_LIB} STATIC ${VAL_SRC_C} ${VAL_SRC_ASM_S})
40
41target_include_directories(${TBSA_TARGET_VAL_LIB} PUBLIC ${TBSA_ROOT_DIR}/val/include)