zephyr/scripts/dts/python-devicetree
Luca Burelli c1603b3163 gen_edt: use workspace dir as base for relative paths in comments
This commit allows comments to reference files with paths that are relative
to the Zephyr workspace root. This is done by adding a new argument
'--workspace-dir' to the 'gen_edt.py' script, which is passed to the
'EDT' and 'DT' classes and used instead of the current working directory.

The workspace directory is set to WEST_TOPDIR if West is in use,
otherwise it is set to the parent directory of ZEPHYR_BASE so that
Zephyr files have a 'zephyr/' prefix.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2025-05-16 09:38:35 +02:00
..
src/devicetree gen_edt: use workspace dir as base for relative paths in comments 2025-05-16 09:38:35 +02:00
tests dtlib: fix double empty line before root node 2025-05-16 09:38:35 +02:00
.gitignore
requirements.txt
setup.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
tox.ini