drivers/console: Link console framework code by default
This patch makes the build system link the console framework code by
default, like it already does with other common libraries (e.g. cache
helpers). This should not make a difference in practice since TF is
linked with --gc-sections, so the linker will garbage collect all
functions and data that are not referenced by any other code. Thus, if a
platform doesn't want to include console code for size reasons and
doesn't make any references to console functions, the code will not be
included in the final binary.

To avoid compatibility issues with older platform ports, only make this
change for the MULTI_CONSOLE_API.

Change-Id: I153a9dbe680d57aadb860d1c829759ba701130d3
Signed-off-by: Julius Werner <jwerner@chromium.org>
1 parent 0f8aee4 commit 985ee0b7e8d039105de48f60c0195f391f86a625
@Julius Werner Julius Werner authored on 27 Nov 2018
Showing 20 changed files
View
Makefile
View
drivers/arm/pl011/aarch32/pl011_console.S
View
drivers/arm/pl011/aarch64/pl011_console.S
View
drivers/console/aarch32/console.S
View
drivers/console/aarch32/multi_console.S
View
drivers/console/aarch64/console.S
View
drivers/console/aarch64/multi_console.S
View
plat/allwinner/common/allwinner-common.mk
View
plat/imx/imx8qm/platform.mk
View
plat/imx/imx8qx/platform.mk
View
plat/layerscape/board/ls1043/platform.mk
View
plat/marvell/a3700/common/a3700_common.mk
View
plat/marvell/a8k/common/a8k_common.mk
View
plat/meson/gxbb/platform.mk
View
plat/rockchip/rk3328/platform.mk
View
plat/rockchip/rk3368/platform.mk
View
plat/rockchip/rk3399/platform.mk
View
plat/rpi3/platform.mk
View
plat/st/stm32mp1/platform.mk
View
plat/ti/k3/common/plat_common.mk