aboutsummaryrefslogtreecommitdiff
path: root/plat
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2021-05-20 13:22:43 +0100
committerChris Kay <chris.kay@arm.com>2021-10-26 12:14:29 +0100
commite04da4c8e132f43218f18ad3b41479ca54bb9263 (patch)
tree2b906f29f2618d1b2df76252048a1dc3e782359d /plat
parent2d9ea360350303e37a8dd39f3599ac88aaef0ff9 (diff)
downloadarm-trusted-firmware-e04da4c8e132f43218f18ad3b41479ca54bb9263.tar.gz
build(fconf)!: clean up source collection
Including the FCONF Makefile today automatically places the FCONF sources into the source list of the BL1 and BL2 images. This may be undesirable if, for instance, FCONF is only required for BL31. This change moves the BL1 and BL2 source appends out of the common Makefile to where they are required. BREAKING CHANGE: FCONF is no longer added to BL1 and BL2 automatically when the FCONF Makefile (`fconf.mk`) is included. When including this Makefile, consider whether you need to add `${FCONF_SOURCES}` and `${FCONF_DYN_SOURCES}` to `BL1_SOURCES` and `BL2_SOURCES`. Change-Id: Ic028eabb7437ae95a57c5bcb7821044d31755c77 Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/arm/board/a5ds/platform.mk3
-rw-r--r--plat/arm/board/fvp_ve/platform.mk3
-rw-r--r--plat/arm/common/arm_common.mk3
3 files changed, 9 insertions, 0 deletions
diff --git a/plat/arm/board/a5ds/platform.mk b/plat/arm/board/a5ds/platform.mk
index 88c92bd89..4f873069a 100644
--- a/plat/arm/board/a5ds/platform.mk
+++ b/plat/arm/board/a5ds/platform.mk
@@ -8,6 +8,9 @@
include common/fdt_wrappers.mk
include lib/fconf/fconf.mk
+BL1_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+BL2_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+
# Add `libfdt` and Arm common helpers required for Dynamic Config
include lib/libfdt/libfdt.mk
diff --git a/plat/arm/board/fvp_ve/platform.mk b/plat/arm/board/fvp_ve/platform.mk
index da4a96d7b..f7eace833 100644
--- a/plat/arm/board/fvp_ve/platform.mk
+++ b/plat/arm/board/fvp_ve/platform.mk
@@ -127,6 +127,9 @@ endif
# Firmware Configuration Framework sources
include lib/fconf/fconf.mk
+BL1_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+BL2_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+
# Add `libfdt` and Arm common helpers required for Dynamic Config
include lib/libfdt/libfdt.mk
diff --git a/plat/arm/common/arm_common.mk b/plat/arm/common/arm_common.mk
index 4d25bb2ab..78efb0f90 100644
--- a/plat/arm/common/arm_common.mk
+++ b/plat/arm/common/arm_common.mk
@@ -258,6 +258,9 @@ BL2_SOURCES += drivers/delay_timer/delay_timer.c \
# Firmware Configuration Framework sources
include lib/fconf/fconf.mk
+BL1_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+BL2_SOURCES += ${FCONF_SOURCES} ${FCONF_DYN_SOURCES}
+
# Add `libfdt` and Arm common helpers required for Dynamic Config
include lib/libfdt/libfdt.mk