]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Correct report the line number in INF file issue
authorYunhua Feng <fengyunhua@byosoft.com.cn>
Fri, 18 Dec 2020 03:07:50 +0000 (11:07 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 22 Dec 2020 02:21:26 +0000 (02:21 +0000)
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>
BaseTools/Source/Python/Workspace/MetaFileTable.py

index 20cb80e36e395b1c76808fc4f64069465ef3802b..bebf9062e8e59e610f549f71f6d7f2f499a1703b 100644 (file)
@@ -154,7 +154,7 @@ class ModuleTable(MetaFileTable):
         if BelongsToItem is not None:\r
             result = [item for item in result if item[7] == BelongsToItem]\r
 \r
-        result = [ [r[2],r[3],r[4],r[5],r[6],r[0],r[9]] for r in result ]\r
+        result = [ [r[2],r[3],r[4],r[5],r[6],r[0],r[8]] for r in result ]\r
         return result\r
 \r
 ## Python class representation of table storing package data\r