drivers/console: Link console framework code by default
authorJulius Werner <jwerner@chromium.org>
Wed, 28 Nov 2018 01:50:28 +0000 (17:50 -0800)
committerJulius Werner <jwerner@chromium.org>
Fri, 7 Dec 2018 00:13:50 +0000 (16:13 -0800)
commit985ee0b7e8d039105de48f60c0195f391f86a625
tree3bc1b97439d2725dc57e2775b813c6f8543aa613
parent0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a
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>
20 files changed:
Makefile
drivers/arm/pl011/aarch32/pl011_console.S
drivers/arm/pl011/aarch64/pl011_console.S
drivers/console/aarch32/console.S
drivers/console/aarch32/multi_console.S
drivers/console/aarch64/console.S
drivers/console/aarch64/multi_console.S
plat/allwinner/common/allwinner-common.mk
plat/imx/imx8qm/platform.mk
plat/imx/imx8qx/platform.mk
plat/layerscape/board/ls1043/platform.mk
plat/marvell/a3700/common/a3700_common.mk
plat/marvell/a8k/common/a8k_common.mk
plat/meson/gxbb/platform.mk
plat/rockchip/rk3328/platform.mk
plat/rockchip/rk3368/platform.mk
plat/rockchip/rk3399/platform.mk
plat/rpi3/platform.mk
plat/st/stm32mp1/platform.mk
plat/ti/k3/common/plat_common.mk