]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Reset FdsGlobalVariable
authorFeng, Bob C <bob.c.feng@intel.com>
Thu, 20 Dec 2018 11:12:12 +0000 (19:12 +0800)
committerBobCF <bob.c.feng@intel.com>
Tue, 25 Dec 2018 02:40:10 +0000 (10:40 +0800)
commitabc4c3386a50cb97c30ec108f0cb85aef769c267
tree5563ccf8489b521fec6615e925a76448ce318e34
parentb70ec0de46d052d2debf0c8e2159addf9628604f
BaseTools: Reset FdsGlobalVariable

https://bugzilla.tianocore.org/show_bug.cgi?id=1418
This patch is going to fix a regression issue that is introduced
by commit b3497bad1221704a5dbc5da0b10f42625f1ad2ed.

Before commit b3497b, build launched a external GenFds.py to generate
Fd, so the global variable in GenFds.py was reset in each execution.

After commit b3497b, each GenFds run in the same python interpeter, so
we need to explicitly reset global variable in each GenFdsApi call.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
BaseTools/Source/Python/GenFds/GenFds.py