aboutsummaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorRaef Coles <raef.coles@arm.com>2021-01-14 15:49:27 +0000
committerDavid Hu <david.hu@arm.com>2021-01-18 08:59:27 +0000
commitf795a9c4ff262ae45dc3e091e157cf318abef173 (patch)
treee1169fffde32658ed8b3021615e758d927937e06 /lib/ext
parentda9cf6322eaa31d1a77ac8e0c7799152d724abf8 (diff)
downloadtrusted-firmware-m-f795a9c4ff262ae45dc3e091e157cf318abef173.tar.gz
Build: Make t_cose and QCBOR optional
To avoid errors when not building with the initial attestation partition enabled, as optional targets are only compiled when they are a dependency of a non-optional target. Change-Id: If109ec1b2208c7d9138355f9e346ec1b1a3eb13f Signed-off-by: Raef Coles <raef.coles@arm.com>
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/qcbor/CMakeLists.txt4
-rw-r--r--lib/ext/t_cose/CMakeLists.txt4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ext/qcbor/CMakeLists.txt b/lib/ext/qcbor/CMakeLists.txt
index d0c92fd321..ad29a21d6c 100644
--- a/lib/ext/qcbor/CMakeLists.txt
+++ b/lib/ext/qcbor/CMakeLists.txt
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2020, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -7,7 +7,7 @@
cmake_minimum_required(VERSION 3.15)
-add_library(tfm_qcbor STATIC)
+add_library(tfm_qcbor STATIC EXCLUDE_FROM_ALL)
target_sources(tfm_qcbor
PRIVATE
diff --git a/lib/ext/t_cose/CMakeLists.txt b/lib/ext/t_cose/CMakeLists.txt
index d06fc7656a..762ad056a9 100644
--- a/lib/ext/t_cose/CMakeLists.txt
+++ b/lib/ext/t_cose/CMakeLists.txt
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2020, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -7,7 +7,7 @@
cmake_minimum_required(VERSION 3.15)
-add_library(tfm_t_cose STATIC)
+add_library(tfm_t_cose STATIC EXCLUDE_FROM_ALL)
target_sources(tfm_t_cose
PRIVATE