Skip to content

Commit bd111cc

Browse files
VynDragondpgeorge
authored andcommitted
zephyr: Allow a custom dts.
Allows using custom DTS things such as bindings. Signed-off-by: Vdragon <mail@massdriver.space>
1 parent d5ad2cd commit bd111cc

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

ports/zephyr/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ string(TOUPPER ZEPHYR_${BOARD} MICROPY_BOARD)
3535
include(${MICROPY_DIR}/py/py.cmake)
3636
include(${MICROPY_DIR}/extmod/extmod.cmake)
3737

38+
list(APPEND DTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/dts)
39+
3840
if (CONFIG_MICROPY_FROZEN_MODULES)
3941
cmake_path(ABSOLUTE_PATH CONFIG_MICROPY_FROZEN_MANIFEST BASE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
4042
set(MICROPY_FROZEN_MANIFEST ${CONFIG_MICROPY_FROZEN_MANIFEST})
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Device tree binding vendor prefix registry. Keep this list in
2+
# alphabetical order.
3+
#
4+
# This isn't an exhaustive list, but you should add new prefixes to it
5+
# before using them to avoid name-space collisions.
6+
#
7+
# The contents of this file are parsed during documentation generation.
8+
# Anything that starts with a '#' is treated as a comment and ignored.
9+
# Non-empty lines should be in this format:
10+
#
11+
# <vendor-prefix><TAB><Full name of vendor>
12+
13+
# zephyr-keep-sorted-start
14+
micropython MicroPython Project
15+
# zephyr-keep-sorted-stop

0 commit comments

Comments
 (0)