Fixes for finding keymap directory.
This commit is contained in:
parent
0494f6a8c2
commit
3b10e00d27
1 changed files with 9 additions and 12 deletions
|
@ -76,16 +76,13 @@ foreach(root ${BOARD_ROOT})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
foreach(keymap_root ${KEYMAP_DIRS})
|
find_path(KEYMAP_DIR
|
||||||
find_path(KEYMAP_DIR
|
NAMES ${KEYMAP}/keymap.overlay
|
||||||
NAMES ${KEYMAP}
|
PATHS ${KEYMAP_DIRS}
|
||||||
PATHS ${keymap_root}/*/*
|
|
||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
if (KEYMAP_DIR)
|
if (KEYMAP_DIR)
|
||||||
message(STATUS "Using keymap directory: ${KEYMAP_DIR}/${KEYMAP}/")
|
message(STATUS "Using keymap directory: ${KEYMAP_DIR}/${KEYMAP}/")
|
||||||
set(DTC_OVERLAY_FILE ${KEYMAP_DIR}/${KEYMAP}/keymap.overlay)
|
set(DTC_OVERLAY_FILE ${KEYMAP_DIR}/${KEYMAP}/keymap.overlay)
|
||||||
break()
|
endif()
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
Loading…
Reference in a new issue