Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Munnich committed Dec 3, 2024
1 parent 3f7c9d7 commit c058353
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/tools
/zephyr
/zmk-config
/external-zmk-modules
/build

# macOS
Expand Down
2 changes: 1 addition & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13.1)

set(CONFIG_APPLICATION_DEFINED_SYSCALL true)

set(ZEPHYR_EXTRA_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/module;${CMAKE_CURRENT_SOURCE_DIR}/keymap-module")
set(EXTRA_ZEPHYR_MODULES "${ZMK_EXTRA_MODULES};${CMAKE_CURRENT_SOURCE_DIR}/module;${CMAKE_CURRENT_SOURCE_DIR}/keymap-module")

# Find Zephyr. This also loads Zephyr's build system.
find_package(Zephyr REQUIRED HINTS ../zephyr)
Expand Down
4 changes: 4 additions & 0 deletions app/keymap-module/modules/modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ elseif(DEFINED ENV{ZMK_CONFIG})

elseif(user_config_app_cmake_lists)
set(ZMK_CONFIG ${user_config_app_cmake_lists})
else()
set(ZMK_CONFIG ${APPLICATION_SOURCE_DIR}/../zmk-config/config)
endif()

# Store the selected user_config in the cache
Expand All @@ -50,10 +52,12 @@ if (ZMK_CONFIG)
set(ENV{ZMK_CONFIG} "${ZMK_CONFIG}")
if(EXISTS ${ZMK_CONFIG}/boards)
message(STATUS "Adding ZMK config directory as board root: ${ZMK_CONFIG}")
message(DEPRECATION "Using the config folder as board root is deprecated.")
list(APPEND BOARD_ROOT ${ZMK_CONFIG})
endif()
if(EXISTS ${ZMK_CONFIG}/dts)
message(STATUS "Adding ZMK config directory as DTS root: ${ZMK_CONFIG}")
message(DEPRECATION "Using the config folder as DTS root is deprecated.")
list(APPEND DTS_ROOT ${ZMK_CONFIG})
endif()
endif()
Expand Down
6 changes: 6 additions & 0 deletions local/config-import.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
manifest:
self:
import:
file: ../zmk-config/config/west.yml
name-blocklist: [zmk]

5 changes: 5 additions & 0 deletions local/west.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
manifest:
self:
import:
- config-import.yml
- ../app/west.yml

0 comments on commit c058353

Please sign in to comment.