Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/dts/gen_dts_cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ def main():
cmake_prop = f'DT_PROP|{node.path}|{item}'
cmake_props.append(f'"{cmake_prop}" "{escape(cmake_value)}"')

if item == 'compatible':
# compatibles is always an array
for comp in node.props[item].val:
compatible2paths[comp].append(node.path)
for comp in node.compats:
compatible2paths[comp].append(node.path)

if node.regs is not None:
cmake_props.append(f'"DT_REG|{node.path}|NUM" "{len(node.regs)}"')
Expand Down
Loading