diff --git a/scripts/build/elf_parser.py b/scripts/build/elf_parser.py index 07ca6f078063c9..101e61dbadfcf5 100644 --- a/scripts/build/elf_parser.py +++ b/scripts/build/elf_parser.py @@ -283,6 +283,6 @@ def device_dependency_graph(self, title, comment): ) dot.node(str(dev.ordinal), text) for dev in self.devices: - for sup in dev.devs_supports: + for sup in sorted(dev.devs_supports): dot.edge(str(dev.ordinal), str(sup.ordinal)) return dot