Skip to content
Commit c1603b31 authored by Luca Burelli's avatar Luca Burelli Committed by Benjamin Cabé
Browse files

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: default avatarLuca Burelli <l.burelli@arduino.cc>
parent a63cb8e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment