cmake: remove deprecation_warnings.cmake

With support for deprecating Kconfig symbols within the Kconfig tree
itself, there is no reason to have a secondary location to maintain
for information that is based on a Kconfig setting in first place.

Better to directly do `select DEPRECATED` on the symbol itself, than to
maintain a secondary list with messages in CMake.

Hence removing this feature in CMake.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2022-07-15 12:08:01 +02:00 committed by Kumar Gala
commit 39a7381bb9
2 changed files with 0 additions and 16 deletions

View file

@ -1852,8 +1852,6 @@ if(CONFIG_SOC_DEPRECATED_RELEASE)
) )
endif() endif()
include(modules/deprecation_warnings.cmake)
# 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

View file

@ -1,14 +0,0 @@
# Copyright 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# This file is included to warn the user about any deprecated modules
# they are using. To create a warning, follow the pattern:
#
# if(CONFIG_FOO)
# message(WARNING "The foo module is deprecated. <More information>")
# endif()
#
# This is done in a separate CMake file because the modules.cmake file
# in this same directory is evaluated before Kconfig runs.
# (No modules are currently deprecated.)