1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
5 # Entry-type module for Intel Firmware Image Table
10 from blob import Entry_blob
12 class Entry_intel_fit(Entry_blob):
13 """Intel Firmware Image Table (FIT)
15 This entry contains a dummy FIT as required by recent Intel CPUs. The FIT
16 contains information about the firmware and microcode available in the
19 At present binman only supports a basic FIT with no microcode.
21 def __init__(self, section, etype, node):
22 Entry_blob.__init__(self, section, etype, node)
25 """Force 16-byte alignment as required by FIT pointer"""
26 Entry_blob.ReadNode(self)
29 def ObtainContents(self):
30 data = struct.pack('<8sIHBB', b'_FIT_ ', 1, 0x100, 0x80, 0x7d)
31 self.SetContents(data)