From ea7babba13cb78557addf915a20bc51b457ffd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Wed, 27 Feb 2019 08:35:02 +0100 Subject: [PATCH] cmake: Rename CMake variable out of the reserved CONFIG_ namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the poorly named CMake variable 'CONFIG_LIST' to 'LIST_OF_CONFIGS' to take it out of the Kconfig-reserved namespace 'CONFIG_*'. This is a small step towards resolving #12144 Signed-off-by: Sebastian Bøe --- misc/generated/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/generated/CMakeLists.txt b/misc/generated/CMakeLists.txt index ecd90b6986..8f5d8663fe 100644 --- a/misc/generated/CMakeLists.txt +++ b/misc/generated/CMakeLists.txt @@ -2,11 +2,11 @@ set(CONFIGS_C ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/configs.c) file(STRINGS ${AUTOCONF_H} - CONFIG_LIST + LIST_OF_CONFIGS REGEX "^#define CONFIG_" ENCODING "UTF-8" ) -foreach (CONFIG ${CONFIG_LIST}) +foreach (CONFIG ${LIST_OF_CONFIGS}) string(REGEX REPLACE "#define (CONFIG_[A-Z|_|0-9]*) (.*)" "GEN_ABSOLUTE_SYM(\\1, \\2)" CONFIG ${CONFIG}) string(REGEX REPLACE "\"(.*)\"" "1" CONFIG ${CONFIG}) set(GEN_ABS_SYM_LIST "${GEN_ABS_SYM_LIST}${CONFIG};\n")