summaryrefslogtreecommitdiff
path: root/bl32
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2021-02-08 18:07:23 +0000
committerAndre Przywara <andre.przywara@arm.com>2021-02-11 10:43:25 +0000
commit0e14948e2ae2c0b491a1cf2e2de00433e4a95dbe (patch)
tree2fec778113209e6304edcd3edc726f361261dc43 /bl32
parent04c122310477da976ccd720861561e12b73a785e (diff)
bl32: Enable TRNG service build
The Trusted Random Number Generator service is using the standard SMC service dispatcher, running in BL31. For that reason we list the files implementing the service in bl31.mk. However when building for a 32-bit TF-A runtime, sp_min.mk is the Makefile snippet used, so we have to add the files into there as well. This fixes 32-bit builds of platforms that provide the TRNG service. Change-Id: I8be61522300d36477a9ee0a9ce159a140390b254 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'bl32')
-rw-r--r--bl32/sp_min/sp_min.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/bl32/sp_min/sp_min.mk b/bl32/sp_min/sp_min.mk
index afd7ae196..8b5eddd66 100644
--- a/bl32/sp_min/sp_min.mk
+++ b/bl32/sp_min/sp_min.mk
@@ -37,6 +37,11 @@ BL32_SOURCES += bl32/sp_min/wa_cve_2017_5715_bpiall.S \
bl32/sp_min/wa_cve_2017_5715_icache_inv.S
endif
+ifeq (${TRNG_SUPPORT},1)
+BL32_SOURCES += services/std_svc/trng/trng_main.c \
+ services/std_svc/trng/trng_entropy_pool.c
+endif
+
BL32_LINKERFILE := bl32/sp_min/sp_min.ld.S
# Include the platform-specific SP_MIN Makefile