soc: kconfig: add SOC_DEPRECATED_RELEASE

Adding a Kconfig parameter so that we can indicate an SoC is to be
deprecated, similar to what is being done for BOARD_DEPRECATED_RELEASE.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2020-01-08 17:10:51 -08:00 committed by Anas Nashif
parent a2bc514653
commit 180b4df229
2 changed files with 15 additions and 0 deletions

View file

@ -1512,6 +1512,13 @@ if(CONFIG_BOARD_DEPRECATED_RELEASE)
)
endif()
if(CONFIG_SOC_DEPRECATED_RELEASE)
message(WARNING "
WARNING: The SoC '${SOC_NAME}' is deprecated and will be
removed in version ${CONFIG_SOC_DEPRECATED_RELEASE}"
)
endif()
# In CMake projects, 'CMAKE_BUILD_TYPE' usually determines the
# optimization flag, but in Zephyr it is determined through
# Kconfig. Here we give a warning when there is a mismatch between the

View file

@ -71,3 +71,11 @@ config SOC_RWDATA_LD
under include/arch/.
endif # ARC || ARM || X86 || NIOS2 || RISCV
config SOC_DEPRECATED_RELEASE
string
help
This hidden option is set in the SoC configuration and indicates
the Zephyr release that the SoC configuration will be removed.
When set, any build for that SoC will generate a clearly visible
deprecation warning.