cmake: kconfig: sort results of new glob expressions

Similar to 2f811b79, see that commit for the explanation.
pull/7680/head
Ivan Grokhotkov 2021-08-30 18:02:58 +02:00
rodzic 4ae1b06082
commit 4f3cc319af
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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