commit | 16d71d0598b0b11f353b9e309287b6ff8ec1bd40 | [log] [tgz] |
---|---|---|
author | Luca Burelli <l.burelli@arduino.cc> | Thu Jan 09 11:45:23 2025 +0100 |
committer | Benjamin Cabé <kartben@gmail.com> | Wed Jan 22 15:49:10 2025 +0100 |
tree | 1437a21d56b161e633631a6460e214e097b446ef | |
parent | d1d85fa40b3071550361c7520daf90ad273e6b35 [diff] |
edtlib: add "hash" attribute to nodes Add a new "hash" attribute to all Devicetree EDT nodes. The hash is calculated on the full path of the node; this means that its value remains stable across rebuilds. The hash is checked for uniqueness among nodes in the same EDT. This computed token is then added to `devicetree_generated.h` and made accessible to Zephyr code via a new DT_NODE_HASH(node_id) macro. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>