]> git.proxmox.com Git - mirror_edk2.git/commit
IntelFsp2Pkg: Improve FSP Python scripts to support 3.x.
authorChing JenX Cheng <ching.jenx.cheng@intel.com>
Thu, 1 Aug 2019 04:16:46 +0000 (12:16 +0800)
committerChasel Chiu <chasel.chiu@intel.com>
Fri, 2 Aug 2019 06:54:32 +0000 (14:54 +0800)
commit5e4ebd9ea5d72c1a2824d23a5dc92c7b50694719
treeec15182048502e6a0aebe21bd93c804b47135f36
parent46e34cc9561360a63549308b9b5464df6651de05
IntelFsp2Pkg: Improve FSP Python scripts to support 3.x.

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

When running with Python 3.x and relying on GenCfgOpt.py to
automatically assign UPD offsets, the script crashed
because some float type variable not compatible with
the operations.
Converted those float variable to int to fix these issues.

Cc: Amy Chan <amy.chan@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Ching JenX Cheng <ching.jenx.cheng@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
IntelFsp2Pkg/Tools/GenCfgOpt.py