From 0e14948e2ae2c0b491a1cf2e2de00433e4a95dbe Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Mon, 8 Feb 2021 18:07:23 +0000 Subject: [PATCH] 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 --- bl32/sp_min/sp_min.mk | 5 +++++ 1 file changed, 5 insertions(+) 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