cmake: kconfig: sort results of new glob expressions

Similar to 2f811b79, see that commit for the explanation.
This commit is contained in:
Ivan Grokhotkov 2021-08-30 18:02:58 +02:00
parent 4ae1b06082
commit 4f3cc319af

View File

@ -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()