Commit Graph

1 Commits

Author SHA1 Message Date
Isaac J. Manjarres
b52b0debf7 ANDROID: Add a script to collect information about a device's dependencies
The supplier and consumer relationships between devices on a system can
be used for a variety of reasons:

When modularizing drivers that are statically compiled into a kernel,
knowing which devices are consumers of a particular supplier device
establishes an order in which the drivers for those devices can be
modularized in.

Similarly, when enabling support for a system on a newer kernel,
knowing this relationship can help establish the order in which drivers
should be ported and enabled in the new kernel, with drivers for supplier
devices being first.

The relationship between devices and their drivers can also be used to
identify an optimal module loading order after all of the device drivers
have been modularized.

Add a script that can identify the supplier and consumer relationships
between devices, and output them in several useful formats.

Bug: 240727741
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
Change-Id: Ib5036e8b54f60c159c12775771447593f5a71c4c
2022-08-05 20:48:40 +00:00