Derive 'node_compat' and 'prop_val' (the dictionary for the property from the YAML binding) inside extract_property(). That gives it just two parameters and makes it clearer that it's just generating #define's for a single device tree property. 'prop_val' was only used to look up prop_val['type']. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| extract | ||
| devicetree.py | ||
| extract_dts_includes.py | ||