X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FEot%2FEotMain.py;h=fd4bee6f901e3e30eebe2e0f750ba3b95809688a;hb=39879ef2677fa5677ecffb1149a4d87372b90ba5;hp=49a1494126c43d23aabedfadff3218d8327bc7a6;hpb=47f15da16053f031bcf7c50f6960bd0f6c83d2db;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/Eot/EotMain.py b/BaseTools/Source/Python/Eot/EotMain.py index 49a1494126..fd4bee6f90 100644 --- a/BaseTools/Source/Python/Eot/EotMain.py +++ b/BaseTools/Source/Python/Eot/EotMain.py @@ -36,10 +36,9 @@ import struct import uuid import copy import codecs +from GenFds.AprioriSection import DXE_APRIORI_GUID, PEI_APRIORI_GUID gGuidStringFormat = "%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X" -gPeiAprioriFileNameGuid = '1b45cc0a-156a-428a-af62-49864da0e6e6' -gAprioriGuid = 'fc510ee7-ffdc-11d4-bd41-0080c73c8881' gIndention = -4 class Image(array): @@ -402,10 +401,10 @@ class FirmwareVolume(Image): if Ffs.Type == 0x05: FfsDxeCoreGuid = FfsID continue - if Ffs.Guid.lower() == gPeiAprioriFileNameGuid: + if Ffs.Guid.lower() == PEI_APRIORI_GUID.lower(): FfsPeiPrioriGuid = FfsID continue - if Ffs.Guid.lower() == gAprioriGuid: + if Ffs.Guid.lower() == DXE_APRIORI_GUID.lower(): FfsDxePrioriGuid = FfsID continue @@ -930,8 +929,6 @@ class Ffs(Image): _SIZE_ = struct.Struct("20x 3B") _STATE_ = struct.Struct("23x 1B") - VTF_GUID = "1BA0062E-C779-4582-8566-336AE8F78F09" - FFS_ATTRIB_FIXED = 0x04 FFS_ATTRIB_DATA_ALIGNMENT = 0x38 FFS_ATTRIB_CHECKSUM = 0x40