summaryrefslogtreecommitdiff
path: root/app/cmake
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-01 22:58:30 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-01 22:58:30 -0400
commit7ce82fbd12854a379755802dd83b5592ed17f345 (patch)
tree0b8a66410bbcfc187204762662944fc5715f02be /app/cmake
parent4c5ed99381c47633c009177639896eebfb7e2002 (diff)
Add ability to have board overlay combined w/ shield keymap.
Diffstat (limited to 'app/cmake')
-rw-r--r--app/cmake/zmk_config.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/cmake/zmk_config.cmake b/app/cmake/zmk_config.cmake
index 89c141a..c0993c7 100644
--- a/app/cmake/zmk_config.cmake
+++ b/app/cmake/zmk_config.cmake
@@ -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/*/*