Skip to content

Commit

Permalink
[WIP] dts: gen_defines: emit dependency ordinal related macros
Browse files Browse the repository at this point in the history
This really ought to be namespaced better, which kind of depends on
what we do after the rules are laid out following zephyrproject-rtos#22556.

Emit macros for each node's device tree dependency ordinal.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
  • Loading branch information
mbolivar-nordic committed Feb 10, 2020
1 parent 8ec53cf commit ca754ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/dts/gen_defines.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def main():
flash_area_num += 1

if node.enabled and node.matching_compat:
write_deps(node)
write_regs(node)
write_irqs(node)
write_props(node)
Expand Down Expand Up @@ -192,6 +193,12 @@ def relativize(path):
return path


def write_deps(node):
# Writes dependency ordinal information for the node.

out_node(node, 'DEP_ORDINAL', node.dep_ordinal)


def write_regs(node):
# Writes address/size output for the registers in the node's 'reg' property

Expand Down

0 comments on commit ca754ba

Please sign in to comment.