Commit 4fa189b
committed
BaseTools: Warn the improper usage of Depex for module types
According to INF specification, if the module is not a library (no
LIBRARY_CLASS in the [Defines] section) and the MODULE_TYPE is SEC,
SMM_CORE, DXE_CORE, PEI_CORE, UEFI_DRIVER, UEFI_APPLICATION or
HOST_APPLICATION a Depex section is not permitted. Thus, this patch
adds a check when retrieving dependency expression. If the module
has [Depex] section but it's not permitted by INF specification,
just throw warning message to warn.
Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>1 parent 7fdffdf commit 4fa189b
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
775 | 784 | | |
776 | 785 | | |
777 | 786 | | |
| |||
0 commit comments