blob: 2ae28f1b8b1cb28993316de610955cf86cc6dde7 [file] [log] [blame]
Maulik Patel7cfee4a2022-07-19 09:39:38 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2022, Arm Limited. All rights reserved.
Chris Brand19bf2742022-07-05 11:15:17 -07003# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
4# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
Maulik Patel7cfee4a2022-07-19 09:39:38 +01005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
8#-------------------------------------------------------------------------------
9
Maulik Patel7cfee4a2022-07-19 09:39:38 +010010# If tf-m-extras partitions are required, please set TFM_EXTRAS_REPO_PATH to
11# DOWNLOAD and TFM_EXTRAS_REPO_VERSION to appropriate commit-id in the platform
12# specific config. By default, they are not fetched.
13set(TFM_EXTRAS_REPO_PATH "" CACHE PATH "Path to tf-m-extras repo (or DOWNLOAD to fetch automatically")
14set(TFM_EXTRAS_REPO_VERSION "" CACHE STRING "The version of tf-m-extras to use")
15
Chris Brand19bf2742022-07-05 11:15:17 -070016fetch_remote_library(
17 LIB_NAME tf-m-extras
18 LIB_SOURCE_PATH_VAR TFM_EXTRAS_REPO_PATH
19 FETCH_CONTENT_ARGS
20 GIT_REPOSITORY https://git.trustedfirmware.org/TF-M/tf-m-extras.git
21 GIT_TAG ${TFM_EXTRAS_REPO_VERSION}
22 GIT_SHALLOW FALSE
23 GIT_PROGRESS TRUE
24)