arm-trusted-firmware/drivers
Dan Handley bc1a03c7a6 Improve MULTI_CONSOLE_API deprecation warnings
For platforms that have not migrated to MULTI_CONSOLE_API == 1, there
are a lot of confusing deprecated declaration warnings relating to
use of console_init() and console_uninit(). Some of these relate to use
by the generic code, not the platform code. These functions are not really
deprecated but *removed* when MULTI_CONSOLE_API == 1.

This patch consolidates these warnings into a single preprocessor warning.
The __deprecated attribute is removed from the console_init() and
console_uninit() declarations.

For preprocessor warnings like this to not cause fatal build errors,
this patch adds -Wno-error=cpp to the build flags when
ERROR_DEPRECATED == 0.
This option (and -Wno-error=deprecated-declarations) is now added to
CPPFLAGS instead of TF_CFLAGS to ensure the build flags are used in the
assembler as well as the compiler.

This patch also disentangles the MULTI_CONSOLE_API and ERROR_DEPRECATED
build flags by defaulting MULTI_CONSOLE_API to 0 instead of
ERROR_DEPRECATED. This allows platforms that have not migrated to
MULTI_CONSOLE_API to use ERROR_DEPRECATED == 1 to emit a more meaningful
build error.

Finally, this patch bans use of MULTI_CONSOLE_API == 1 and AARCH32, since
the AArch32 console implementation does not support
MULTI_CONSOLE_API == 1.

Change-Id: If762165ddcb90c28aa7a4951aba70cb15c2b709c
Signed-off-by: Dan Handley <dan.handley@arm.com>
2018-03-01 16:14:29 +00:00
..
arm Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
auth Dynamic cfg: Add HW and TB_FW configs to CoT 2018-02-26 16:31:10 +00:00
cadence/uart drivers: cadence: cdns: Update CDNS driver to support MULTI_CONSOLE_API 2018-01-19 15:21:12 -08:00
console Improve MULTI_CONSOLE_API deprecation warnings 2018-03-01 16:14:29 +00:00
coreboot/cbmem_console/aarch64 coreboot: Add support for CBMEM console 2018-01-19 15:21:12 -08:00
delay_timer Fix MISRA rule 8.3 in common code 2018-02-28 17:18:21 +00:00
emmc emmc: add macros CMD21, BUS_WIDTH_DDR_4 and BUS_WIDTH_DDR_8 2018-01-17 14:14:29 +08:00
gpio Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
io Fix MISRA rule 8.4 in common code 2018-02-28 17:18:46 +00:00
partition Fix order of #includes 2017-07-12 14:45:31 +01:00
synopsys drivers:ufs: fix hynix ufs bug with quirk on hi36xx SoC 2018-02-24 09:30:41 +08:00
ti/uart drivers: ti: uart: Update 16550 UART driver to support MULTI_CONSOLE_API 2018-01-19 15:21:12 -08:00
ufs drivers:ufs: fix hynix ufs bug with quirk on hi36xx SoC 2018-02-24 09:30:41 +08:00