Add user config as board/dts roots as needed.
This commit is contained in:
parent
36f36f21f7
commit
bccd30d68a
1 changed files with 9 additions and 0 deletions
|
@ -43,6 +43,15 @@ endif()
|
||||||
# Store the selected user_config in the cache
|
# Store the selected user_config in the cache
|
||||||
set(CACHED_ZMK_CONFIG ${ZMK_CONFIG} CACHE STRING "Selected user ZMK config")
|
set(CACHED_ZMK_CONFIG ${ZMK_CONFIG} CACHE STRING "Selected user ZMK config")
|
||||||
|
|
||||||
|
if (ZMK_CONFIG)
|
||||||
|
if(EXISTS "${ZMK_CONFIG}/boards")
|
||||||
|
list(APPEND BOARD_ROOT "${ZMK_CONFIG}")
|
||||||
|
endif()
|
||||||
|
if(EXISTS "${ZMK_CONFIG}/dts")
|
||||||
|
list(APPEND DTS_ROOT "${ZMK_CONFIG}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(root ${BOARD_ROOT})
|
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")
|
||||||
|
|
Loading…
Reference in a new issue