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:
parent
a2bc514653
commit
180b4df229
2 changed files with 15 additions and 0 deletions
|
@ -1512,6 +1512,13 @@ if(CONFIG_BOARD_DEPRECATED_RELEASE)
|
||||||
)
|
)
|
||||||
endif()
|
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
|
# In CMake projects, 'CMAKE_BUILD_TYPE' usually determines the
|
||||||
# optimization flag, but in Zephyr it is determined through
|
# optimization flag, but in Zephyr it is determined through
|
||||||
# Kconfig. Here we give a warning when there is a mismatch between the
|
# Kconfig. Here we give a warning when there is a mismatch between the
|
||||||
|
|
|
@ -71,3 +71,11 @@ config SOC_RWDATA_LD
|
||||||
under include/arch/.
|
under include/arch/.
|
||||||
|
|
||||||
endif # ARC || ARM || X86 || NIOS2 || RISCV
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue