Vinay Kumar Kotegowder | 932eed0 | 2019-08-22 00:42:47 +0530 | [diff] [blame] | 1 | #/** @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 |
| 19 | list(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 | |
| 33 | list(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 |
| 39 | add_library(${TBSA_TARGET_VAL_LIB} STATIC ${VAL_SRC_C} ${VAL_SRC_ASM_S}) |
| 40 | |
| 41 | target_include_directories(${TBSA_TARGET_VAL_LIB} PUBLIC ${TBSA_ROOT_DIR}/val/include) |