]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/FvImageSection.py
BaseTools: incorrect calculation for 16M
[mirror_edk2.git] / 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