Add ability to have board overlay combined w/ shield keymap.

This commit is contained in:
Pete Johanson
2020-07-01 22:58:30 -04:00
parent 4c5ed99381
commit 7ce82fbd12
2 changed files with 52 additions and 0 deletions

View File

@@ -44,6 +44,9 @@ endif()
set(CACHED_ZMK_CONFIG ${ZMK_CONFIG} CACHE STRING "Selected user ZMK config")
foreach(root ${BOARD_ROOT})
if (EXISTS "${root}/boards/${BOARD}.overlay")
list(APPEND ZMK_DTC_FILES "${root}/boards/${BOARD}.overlay")
endif()
find_path(BOARD_DIR
NAMES ${BOARD}_defconfig
PATHS ${root}/boards/*/*