Skip to content

Commit 0421208

Browse files
scripts: check_init_priorities: Expose initlevels.
To allow other scripts to use the initlevel information determined by the Validator class, expose an API to get them. Signed-off-by: Graham Roff <grahamr@qti.qualcomm.com>
1 parent 5379c20 commit 0421208

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎scripts/build/check_init_priorities.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ def check_edt(self):
343343
for dep in dev.depends_on:
344344
self._check_dep(dev_ord, dep.dep_ordinal)
345345

346+
@property
347+
def initlevels(self):
348+
"""Get the dictionary of initlevels."""
349+
return self._obj.initlevels
350+
346351
def print_initlevels(self):
347352
for level, calls in self._obj.initlevels.items():
348353
print(level)

0 commit comments

Comments
 (0)