aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Ban <tamas.ban@arm.com>2020-06-29 14:05:03 +0100
committerTamas Ban <tamas.ban@arm.com>2020-07-02 18:52:40 +0000
commit190dbaac9c5d6103c01df0c4f2b61715f8b7213d (patch)
tree38ced5aa55ce77a3efdc09931f0680bb66e8dde3
parente3593c6c91fd59bf81a2b6f0c48aff86f2cb3668 (diff)
downloadtrusted-firmware-m-190dbaac9c5d6103c01df0c4f2b61715f8b7213d.tar.gz
Platform: Fix CC312 enabled build without BL2
Enabling CC312 is not required to have BL2 support turned on. Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I896182bbdc9e13a371ae8769f23d7d20706b8f55
-rw-r--r--platform/ext/common/cc312/cc312.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/ext/common/cc312/cc312.c b/platform/ext/common/cc312/cc312.c
index 29fe26831..503110f92 100644
--- a/platform/ext/common/cc312/cc312.c
+++ b/platform/ext/common/cc312/cc312.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019, Arm Limited. All rights reserved.
+ * Copyright (c) 2019-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -204,6 +204,7 @@ int crypto_hw_accelerator_get_attestation_private_key(uint8_t *buf,
return 0;
}
+#ifdef BL2
int crypto_hw_accelerator_get_rotpk_hash(uint8_t image_id,
uint8_t *rotpk_hash,
uint32_t *rotpk_hash_size)
@@ -240,3 +241,4 @@ int crypto_hw_accelerator_get_rotpk_hash(uint8_t image_id,
return 0;
}
+#endif /* BL2 */