diff options
author | Yunhua Feng <fengyunhua@byosoft.com.cn> | 2020-12-18 11:07:50 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-22 02:21:26 +0000 |
commit | b6e360874f4da1eb2ad82dac00938d1286741884 (patch) | |
tree | 305ea21e28600bf23cb8007d04f3e627601a6a71 /BaseTools | |
parent | 6899e6789a7f978175fc9cafec3459e4f4f8e1dc (diff) | |
download | edk2-b6e360874f4da1eb2ad82dac00938d1286741884.zip edk2-b6e360874f4da1eb2ad82dac00938d1286741884.tar.gz edk2-b6e360874f4da1eb2ad82dac00938d1286741884.tar.bz2 |
BaseTools: Correct report the line number in INF file issue
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3127
If one protocol is not found in package dec file, Build will report the
error message that module.inf(-1): error 4000: Value of Protocol
[gXxxProtocolGuid] is not found under [Protocols] section in MdePkg.dec.
Here, -1 should be the line number of this protocol in module INF file.
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/Workspace/MetaFileTable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/MetaFileTable.py b/BaseTools/Source/Python/Workspace/MetaFileTable.py index 20cb80e..bebf906 100644 --- a/BaseTools/Source/Python/Workspace/MetaFileTable.py +++ b/BaseTools/Source/Python/Workspace/MetaFileTable.py @@ -154,7 +154,7 @@ class ModuleTable(MetaFileTable): if BelongsToItem is not None:
result = [item for item in result if item[7] == BelongsToItem]
- result = [ [r[2],r[3],r[4],r[5],r[6],r[0],r[9]] for r in result ]
+ result = [ [r[2],r[3],r[4],r[5],r[6],r[0],r[8]] for r in result ]
return result
## Python class representation of table storing package data
|