Skip to content

Commit afecb20

Browse files
committed
ModuleWriteGuide: Add notes to define library instance module type
https://bugzilla.tianocore.org/show_bug.cgi?id=834 If the library instance supports the cross module types PEIM, UEFI_DIRVER, DXE_DRIVER. Its module type can be PEIM or UEFI_DRIVER or DXE_DRIVER. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <[email protected]> Cc: Bi Dandan <[email protected]> Reviewed-by: Bi Dandan <[email protected]>
1 parent 0da4fb1 commit afecb20

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

3_module_development/31_what_is_an_edk_ii_module.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ EDK II defines many module types. The module type is used to:
7878
example, a PEIM/DXE_DRIVER type module can have "depex" section in .efi
7979
binary image; a UEFI_DRIVER can have .ui or .ver section in .efi binary image;
8080

81+
* Indicate EntryPoint() or Constructor() API for different types of modules.
82+
8183
* Indicate the suitable library instance for different types of modules. A
8284
library instance will point out what module types are supported in INF file.
8385

3_module_development/32_creating_a_module.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ instance:
197197
DebugLib
198198
```
199199

200+
Note: if the library supports the cross module types PEIM, UEFI_DIRVER, DXE_DRIVER.
201+
Its module type can be PEIM or UEFI_DRIVER or DXE_DRIVER. If it has the library
202+
constructor, its module type must be BASE. BASE type library constructor has no
203+
input parameter that can link to any driver type.
204+
200205
### 3.2.3 Adding a Package Dependency
201206

202207
The [Packages] section of the INF file describes all packages dependencies of

0 commit comments

Comments
 (0)