u_boot_tpl_with_ucode_ptr.py 860 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 an TPL binary with an embedded microcode pointer
  6. #
  7. import struct
  8. from patman import command
  9. from binman.entry import Entry
  10. from binman.etype.blob import Entry_blob
  11. from binman.etype.u_boot_with_ucode_ptr import Entry_u_boot_with_ucode_ptr
  12. from patman import tools
  13. class Entry_u_boot_tpl_with_ucode_ptr(Entry_u_boot_with_ucode_ptr):
  14. """U-Boot TPL with embedded microcode pointer
  15. See Entry_u_boot_ucode for full details of the entries involved in this
  16. process.
  17. """
  18. def __init__(self, section, etype, node):
  19. Entry_u_boot_with_ucode_ptr.__init__(self, section, etype, node)
  20. self.elf_fname = 'tpl/u-boot-tpl'
  21. def GetDefaultFilename(self):
  22. return 'tpl/u-boot-tpl-nodtb.bin'