diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-07-01 22:58:30 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-07-01 22:58:30 -0400 |
commit | 7ce82fbd12854a379755802dd83b5592ed17f345 (patch) | |
tree | 0b8a66410bbcfc187204762662944fc5715f02be /app/cmake | |
parent | 4c5ed99381c47633c009177639896eebfb7e2002 (diff) |
Add ability to have board overlay combined w/ shield keymap.
Diffstat (limited to 'app/cmake')
-rw-r--r-- | app/cmake/zmk_config.cmake | 3 |
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/*/* |