From 29e6fc5cc7d0c8bc4ba615fd97df4cb65d3c7ba3 Mon Sep 17 00:00:00 2001 From: Sandrine Bailleux Date: Wed, 31 Aug 2022 14:05:38 +0200 Subject: [PATCH] feat(fvp): support building RSS comms driver On one hand, there is currently no upstream platform supporting the RSS. On the other hand, we are gradually introducing driver code for RSS. Even though we cannot test this code in the TF-A CI right now, we can at least build it to make sure no build regressions are introduced as we continue development. This patch adds support for overriding PLAT_RSS_NOT_SUPPORTED build flag (which defaults to 1 on the Base AEM FVP) from the command line. This allows introducing an ad-hoc CI build config with PLAT_RSS_NOT_SUPPORTED=0, which will correctly pull in the RSS and MHU source files. Of course, the resulting firmware will not be functional. Change-Id: I2b0e8dd03bf301e7063dd4734ea5266b73265be1 Signed-off-by: Sandrine Bailleux --- plat/arm/board/fvp/platform.mk | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/plat/arm/board/fvp/platform.mk b/plat/arm/board/fvp/platform.mk index 25397121b..a8f7e2bce 100644 --- a/plat/arm/board/fvp/platform.mk +++ b/plat/arm/board/fvp/platform.mk @@ -394,9 +394,23 @@ BL2_SOURCES += plat/arm/board/fvp/fvp_common_measured_boot.c \ PLAT_INCLUDES += -Iinclude/lib/psa # RSS is not supported on FVP right now. Thus, we use the mocked version -# of PSA Measured Boot APIs. They return with success and hard-coded data. +# of the provided PSA APIs. They return with success and hard-coded data. PLAT_RSS_NOT_SUPPORTED := 1 +# Even though RSS is not supported on FVP (see above), we support overriding +# PLAT_RSS_NOT_SUPPORTED from the command line, just for the purpose of building +# the code to detect any build regressions. The resulting firmware will not be +# functional. +ifneq (${PLAT_RSS_NOT_SUPPORTED},1) + $(warning "RSS is not supported on FVP. The firmware will not be functional.") + include drivers/arm/rss/rss_comms.mk + BL1_SOURCES += ${RSS_COMMS_SOURCES} + BL2_SOURCES += ${RSS_COMMS_SOURCES} + + BL1_CFLAGS += -DPLAT_ATTEST_TOKEN_MAX_SIZE=0 + BL2_CFLAGS += -DPLAT_ATTEST_TOKEN_MAX_SIZE=0 +endif + endif ifeq (${TRUSTED_BOARD_BOOT}, 1) -- 2.39.5