From 8a38a2332a3dee05fafc874da41776be2bdabc36 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 12 Sep 2018 19:31:22 +0800 Subject: [PATCH] cmake: don't add main component Kconfig twice --- tools/cmake/kconfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/kconfig.cmake b/tools/cmake/kconfig.cmake index 040103575..4eb132d96 100644 --- a/tools/cmake/kconfig.cmake +++ b/tools/cmake/kconfig.cmake @@ -78,7 +78,7 @@ function(kconfig_process_config) # Find Kconfig and Kconfig.projbuild for each component as applicable # if any of these change, cmake should rerun - foreach(dir ${BUILD_COMPONENT_PATHS} "${CMAKE_SOURCE_DIR}/main") + foreach(dir ${BUILD_COMPONENT_PATHS}) file(GLOB kconfig "${dir}/Kconfig") if(kconfig) set(kconfigs "${kconfigs} ${kconfig}")