Browse Source

fix: Only search for board one not found yet.

xmkb
Peter Johanson 3 years ago committed by Pete Johanson
parent
commit
0dc7d46eb1
  1. 2
      app/cmake/zmk_config.cmake

2
app/cmake/zmk_config.cmake

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

Loading…
Cancel
Save