[APL] Enhance Boot Guard check logic for IFWI image
This patch updated the logic to check if Boot Guard is enabled in the base IFWI image. Signed-off-by: Maurice Ma <maurice.ma@intel.com>
This commit is contained in:
parent
0721b7c3d4
commit
8255640056
|
@ -784,7 +784,7 @@ def CreateIfwiImage (IfwiIn, IfwiOut, BiosOut, PlatformData, NonRedundant, Stitc
|
|||
if not Comp:
|
||||
raise Exception ('Unsupported base image format !')
|
||||
Data = IfwiData[Comp.Offset + 0x30:Comp.Offset + 0x32]
|
||||
if Data[0] != 0x10 or Data[1] != 0x00:
|
||||
if (Data[0] & 0x0F) != 0x00:
|
||||
raise Exception ('Unsupported base image type. Boot Guard might have been enabled in this image !')
|
||||
|
||||
print ('Creating %sredundant image ...' % ('Non-' if NonRedundant else ''))
|
||||
|
|
Loading…
Reference in New Issue