]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: incorrect calculation for 16M
authorCarsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben>
Tue, 8 May 2018 16:01:35 +0000 (00:01 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Thu, 10 May 2018 00:33:20 +0000 (08:33 +0800)
the "0x" was missing.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/GenFds/FvImageSection.py

index eb84b44bbec49316e1a6d0c3258ef230529f2207..57ecea0377bfcccb0c0927faa702696873d6166f 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # process FV image section generation\r
 #\r
-#  Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -83,7 +83,7 @@ class FvImageSection(FvImageSectionClassObject):
             if MaxFvAlignment >= 0x400:\r
                 if MaxFvAlignment >= 0x100000:\r
                     #The max alignment supported by FFS is 16M.\r
-                    if MaxFvAlignment >=1000000:\r
+                    if MaxFvAlignment >= 0x1000000:\r
                         self.Alignment = "16M"\r
                     else:\r
                         self.Alignment = str(MaxFvAlignment / 0x100000) + "M"\r