cmake: DT: Add support for overlays that reference board-provided dtsi
The Particle mesh feather boards provide device-tree overlays that allow individual applications to select the SPI peripheral to be used for the pins associated with a specific labelled SPI device. This is necessary because different peripheral instances have slightly different properties. Add BOARD_DIR to DTS_ROOTS so these shared files can be located when included from application-specific overlays. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
8e1d3f3328
commit
8437ab10eb
2 changed files with 9 additions and 6 deletions
|
@ -19,11 +19,12 @@ set_ifndef(DTS_SOURCE ${BOARD_DIR}/${BOARD}.dts)
|
|||
set_ifndef(DTS_COMMON_OVERLAYS ${ZEPHYR_BASE}/dts/common/common.dts)
|
||||
|
||||
# 'DTS_ROOT' is a list of directories where a directory tree with DT
|
||||
# files may be found. It always includes the application directory and
|
||||
# ${ZEPHYR_BASE}.
|
||||
# files may be found. It always includes the application directory,
|
||||
# the board directory, and ${ZEPHYR_BASE}.
|
||||
list(APPEND
|
||||
DTS_ROOT
|
||||
${APPLICATION_SOURCE_DIR}
|
||||
${BOARD_DIR}
|
||||
${ZEPHYR_BASE}
|
||||
)
|
||||
|
||||
|
|
|
@ -701,13 +701,15 @@ You can also define the ``SOC_ROOT`` variable in the application
|
|||
DeviceTree Definitions
|
||||
======================
|
||||
|
||||
Additional DeviceTree directory trees, or DTS_ROOTs, can be added by
|
||||
creating this directory tree::
|
||||
DeviceTree directory trees are found in ``APPLICATION_SOURCE_DIR``,
|
||||
``BOARD_DIR``, and ``ZEPHYR_BASE``, but additional trees, or DTS_ROOTs,
|
||||
can be added by creating this directory tree::
|
||||
|
||||
dts/bindings/
|
||||
include/
|
||||
dts/common/
|
||||
dts/arm/
|
||||
include/
|
||||
dts/
|
||||
dts/bindings/
|
||||
|
||||
Where 'arm' is changed to the appropriate architecture. Each directory
|
||||
is optional. The binding directory contains bindings and the other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue