fix: Properly find boards in user config repos.

This commit is contained in:
Peter Johanson 2021-10-19 13:29:36 +00:00
parent 0dc7d46eb1
commit e6c815f1b0

View file

@ -61,7 +61,7 @@ foreach(root ${BOARD_ROOT})
if (EXISTS "${root}/boards/${BOARD}.overlay")
list(APPEND ZMK_DTC_FILES "${root}/boards/${BOARD}.overlay")
endif()
if (NOT DEFINED BOARD_DIR)
if (NOT DEFINED BOARD_DIR_NAME)
find_path(BOARD_DIR
NAMES ${BOARD}_defconfig
PATHS ${root}/boards/*/*