Skip to content

Commit

Permalink
Move drivers up so they are shared across boards
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed Jan 13, 2023
1 parent 4df5b0c commit 98c0fc9
Show file tree
Hide file tree
Showing 29 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

add_subdirectory(sensor)
add_subdirectory(drivers)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

rsource "sensor/Kconfig"
rsource "drivers/Kconfig"
1 change: 0 additions & 1 deletion config/boards/arm/hw75/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# SPDX-License-Identifier: MIT

add_subdirectory_ifdef(CONFIG_BOARD_HW75 app)
add_subdirectory_ifdef(CONFIG_BOARD_HW75 drivers)
2 changes: 0 additions & 2 deletions config/boards/arm/hw75/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,4 @@ config BUILD_OUTPUT_UF2_USE_FLASH_OFFSET

endif # BUILD_OUTPUT_UF2

rsource "drivers/Kconfig"

endif # BOARD_HW75
1 change: 0 additions & 1 deletion config/boards/arm/hw75_dynamic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# SPDX-License-Identifier: MIT

add_subdirectory_ifdef(CONFIG_BOARD_HW75_DYNAMIC app)
add_subdirectory_ifdef(CONFIG_BOARD_HW75_DYNAMIC drivers)
2 changes: 0 additions & 2 deletions config/boards/arm/hw75_dynamic/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,4 @@ config SSD1306_REVERSE_MODE

endif # SSD1306

rsource "drivers/Kconfig"

endif # BOARD_HW75_DYNAMIC
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

add_subdirectory(kscan)
add_subdirectory(led_strip)
add_subdirectory(sensor)
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

rsource "kscan/Kconfig"
rsource "led_strip/Kconfig"
rsource "sensor/Kconfig"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Copyright (c) 2022-2023 XiNGRZ
# SPDX-License-Identifier: MIT

if(CONFIG_KNOB)

zephyr_library_named(helloword__drivers__knob)
zephyr_library_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

add_subdirectory_ifdef(CONFIG_KNOB lib)
add_subdirectory(lib)
add_subdirectory(encoder)

add_subdirectory_ifdef(CONFIG_KNOB encoder)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions config/zephyr/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
cmake: .
kconfig: Kconfig
settings:
dts_root: .

0 comments on commit 98c0fc9

Please sign in to comment.