]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools:fixed the incorrect autogen makefile which cause build failure.
authorFan, ZhijuX <zhijux.fan@intel.com>
Thu, 18 Apr 2019 11:20:46 +0000 (19:20 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 22 Apr 2019 08:50:25 +0000 (16:50 +0800)
commit35c2af00d8c349f3e0feca0c430034818e64020c
tree89c317e2e6c3dcdef61e99c9d25d0fa3d3f6275d
parent452b5ad61ddd360f0e784fd5f0eac83654a8b5c6
BaseTools:fixed the incorrect autogen makefile which cause build failure.

BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1729

On some build environment, build fails but on the other build machines,
build success. This is the regression issue introduced by commit
 05217d210e8da37b47d0be58ec363f7af2fa1c18

As Dict is unordered, an error occurs when extract the index of the Dict
in the order of the keys after the creation of a new item.
Keys are indexed inconsistently before and after adding a new item.
The logic of the program is to store the key's corresponding index as
reference data in the MakeFile and use it as part of the macro.
The data model is: $(LIST_%d) % Dict.keys().index(Key)
So for now, use OrdereDict instead of Dict.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/GenMake.py