u_boot_img.py 799 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 U-Boot binary
  6. #
  7. from entry import Entry
  8. from blob import Entry_blob
  9. class Entry_u_boot_img(Entry_blob):
  10. """U-Boot legacy image
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.img (default 'u-boot.img')
  13. This is the U-Boot binary as a packaged image, in legacy format. It has a
  14. header which allows it to be loaded at the correct address for execution.
  15. You should use FIT (Flat Image Tree) instead of the legacy image for new
  16. applications.
  17. """
  18. def __init__(self, section, etype, node):
  19. Entry_blob.__init__(self, section, etype, node)
  20. def GetDefaultFilename(self):
  21. return 'u-boot.img'