intel_refcode.py 838 B

123456789101112131415161718192021222324252627
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (c) 2016 Google, Inc
  3. # Written by Simon Glass <sjg@chromium.org>
  4. #
  5. # Entry-type module for Intel Memory Reference Code binary blob
  6. #
  7. from entry import Entry
  8. from blob import Entry_blob
  9. class Entry_intel_refcode(Entry_blob):
  10. """Entry containing an Intel Reference Code file
  11. Properties / Entry arguments:
  12. - filename: Filename of file to read into entry
  13. This file contains code for setting up the platform on some Intel systems.
  14. This is executed by U-Boot when needed early during startup. A typical
  15. filename is 'refcode.bin'.
  16. See README.x86 for information about x86 binary blobs.
  17. """
  18. def __init__(self, section, etype, node):
  19. Entry_blob.__init__(self, section, etype, node)
  20. def GetDefaultFilename(self):
  21. return 'refcode.bin'