mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 16:46:52 +00:00
After lots of reverse-engineering, I understand why deepcopy() is used: 1) Various functions defined in scripts/dts/extract/* modify the list of names in-place 2) A plain list.copy() won't work when the *-names property happens to have a single name in it, because devicetree.py gives a string instead of a list in that case Using deepcopy() to solve (2) is very confusing (especially with no comments), because no deep copying is actually needed. Get rid of deepcopy(), add a helper function for fetching the names, and some comments. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
---|---|---|
.. | ||
extract | ||
devicetree.py | ||
extract_dts_includes.py |