]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2Pkg: Fix GenCfgOpt bug for FSPI_UPD support.
authorChasel Chiu <chasel.chiu@intel.com>
Fri, 29 Jul 2022 02:52:49 +0000 (19:52 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 29 Jul 2022 03:07:28 +0000 (03:07 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3993
Fixed a logic bug in GenCfgOpt.py to skip FSPI_UPD when platforms
do not support.

Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
IntelFsp2Pkg/Tools/GenCfgOpt.py

index 71c48f10e0c23da29605658af8404774bbd0dcc4..13be81ddbcec42aba7a9f9908b03872378cb7143 100644 (file)
@@ -1301,7 +1301,7 @@ EndList
                elif '_S' in SignatureStr[6:6+2]:\r
                    TxtBody.append("#define FSPS_UPD_SIGNATURE               %s        /* '%s' */\n\n" % (Item['value'], SignatureStr))\r
                elif '_I' in SignatureStr[6:6+2]:\r
-                   if NoFSPI == True:\r
+                   if NoFSPI == False:\r
                        TxtBody.append("#define FSPI_UPD_SIGNATURE               %s        /* '%s' */\n\n" % (Item['value'], SignatureStr))\r
         TxtBody.append("\n")\r
 \r