From 4f3cc319af59a1f15d1414fb44ae4ca371f295e5 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 30 Aug 2021 18:02:58 +0200 Subject: [PATCH] cmake: kconfig: sort results of new glob expressions Similar to 2f811b79, see that commit for the explanation. --- tools/cmake/kconfig.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cmake/kconfig.cmake b/tools/cmake/kconfig.cmake index 420c139e81..5a6340012e 100644 --- a/tools/cmake/kconfig.cmake +++ b/tools/cmake/kconfig.cmake @@ -121,11 +121,13 @@ function(__kconfig_bootloader_component_add component_dir) idf_build_get_property(bootloader_kconfigs_proj BOOTLOADER_KCONFIGS_PROJ) file(GLOB kconfig "${component_dir}/Kconfig") + list(SORT kconfig) if(EXISTS "${kconfig}" AND NOT IS_DIRECTORY "${kconfig}") list(APPEND bootloader_kconfigs "${kconfig}") endif() file(GLOB kconfig "${component_dir}/Kconfig.projbuild") + list(SORT kconfig) if(EXISTS "${kconfig}" AND NOT IS_DIRECTORY "${kconfig}") list(APPEND bootloader_kconfigs_proj "${kconfig}") endif()