Sunil Mohan Adapa 603b63bbac
module_loader, app: Move app init to app module
- Don't try to get the depends from module level and sort modules based on that.

- Instead after all App instances are created, sort the apps based on
app.info.depends and app.info.is_essential.

- Print message that apps have been initialized instead of printing before they
are initialized. The correct order of apps is only known after they have been
initialized and sorted.

- Avoid circular import on module_loader and setup.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-12-04 16:39:40 -05:00
..
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00
2021-12-04 16:38:08 -05:00