summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/build/build.py
diff options
context:
space:
mode:
authorNi, Ray <ray.ni@intel.com>2019-11-12 14:17:35 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-11-13 03:47:48 +0000
commit49fb9f7e06b92aa2f08cc7a24370a06a01b18f85 (patch)
treed7ca1f99bc62dcbab1f151d268bb07159b57d1a0 /BaseTools/Source/Python/build/build.py
parentd847ac1f27cca3e78698559a7c96f5f5d115bc8b (diff)
downloadedk2-49fb9f7e06b92aa2f08cc7a24370a06a01b18f85.tar.gz
edk2-49fb9f7e06b92aa2f08cc7a24370a06a01b18f85.tar.bz2
edk2-49fb9f7e06b92aa2f08cc7a24370a06a01b18f85.zip
BaseTools: Fix build failure when using python38
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2304 Signed-off-by: Ray Ni <ray.ni@intel.com> Cc: Bob C Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
-rwxr-xr-xBaseTools/Source/Python/build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index bcd832c525..6c8798ef93 100755
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -2064,7 +2064,7 @@ class Build():
if Fdf.CurrentFdName and Fdf.CurrentFdName in Fdf.Profile.FdDict:
FdDict = Fdf.Profile.FdDict[Fdf.CurrentFdName]
for FdRegion in FdDict.RegionList:
- if str(FdRegion.RegionType) is 'FILE' and self.Platform.VpdToolGuid in str(FdRegion.RegionDataList):
+ if str(FdRegion.RegionType) == 'FILE' and self.Platform.VpdToolGuid in str(FdRegion.RegionDataList):
if int(FdRegion.Offset) % 8 != 0:
EdkLogger.error("build", FORMAT_INVALID, 'The VPD Base Address %s must be 8-byte aligned.' % (FdRegion.Offset))
Wa.FdfProfile = Fdf.Profile