u_boot_tpl_elf.py 705 B

123456789101112131415161718192021222324
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (c) 2018 Google, Inc
  3. # Written by Simon Glass <sjg@chromium.org>
  4. #
  5. # Entry-type module for U-Boot TPL ELF image
  6. #
  7. from binman.entry import Entry
  8. from binman.etype.blob import Entry_blob
  9. class Entry_u_boot_tpl_elf(Entry_blob):
  10. """U-Boot TPL ELF image
  11. Properties / Entry arguments:
  12. - filename: Filename of TPL u-boot (default 'tpl/u-boot-tpl')
  13. This is the U-Boot TPL ELF image. It does not include a device tree but can
  14. be relocated to any address for execution.
  15. """
  16. def __init__(self, section, etype, node):
  17. super().__init__(section, etype, node)
  18. def GetDefaultFilename(self):
  19. return 'tpl/u-boot-tpl'