Skip to content

Commit

Permalink
instanced_inf_table: include library class in table
Browse files Browse the repository at this point in the history
Previously, the library class name for a library INF was not included
in the table. This commit adds that information to the table as a row
to make it easier to find the library class name for a library INF.
  • Loading branch information
Javagedes committed Aug 22, 2023
1 parent 664f9dc commit f165c95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions edk2toollib/database/tables/instanced_inf_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class InstancedInfTable(TableGenerator):
``` py
table_name = "instanced_inf"
|----------------------------------------------------------------------------------------------------------------------------------|
| DSC | GUID | LIBRARY_CLASS | PATH | PHASES | SOURCES_USED | LIBRARIES_USED | PROTOCOLS_USED | GUIDS_USED | PPIS_USED | PCDS_USED |
|----------------------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------------------------------|
| DSC | PATH | NAME | LIBRARY_CLASS | COMPONENT | MODULE_TYPE | ARCH | SOURCES_USED | LIBRARIES_USED | PROTOCOLS_USED | GUIDS_USED | PCDS_USED |
|----------------------------------------------------------------------------------------------------------------------------------------------|
```
""" # noqa: E501
SECTION_LIBRARY = "LibraryClasses"
Expand Down Expand Up @@ -167,6 +167,7 @@ def to_posix(path):
"DSC": Path(self.dsc).name,
"PATH": Path(inf).as_posix(),
"NAME": infp.Dict["BASE_NAME"],
"LIBRARY_CLASS": infp.LibraryClass,
"COMPONENT": Path(component).as_posix(),
"MODULE_TYPE": infp.Dict["MODULE_TYPE"],
"ARCH": scope.split(".")[0].upper(),
Expand Down

0 comments on commit f165c95

Please sign in to comment.