u_boot.py 960 B

1234567891011121314151617181920212223242526272829303132
  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(Entry_blob):
  10. """U-Boot flat binary
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.bin (default 'u-boot.bin')
  13. This is the U-Boot binary, containing relocation information to allow it
  14. to relocate itself at runtime. The binary typically includes a device tree
  15. blob at the end of it. Use u_boot_nodtb if you want to package the device
  16. tree separately.
  17. U-Boot can access binman symbols at runtime. See:
  18. 'Access to binman entry offsets at run time (fdt)'
  19. in the binman README for more information.
  20. """
  21. def __init__(self, section, etype, node):
  22. Entry_blob.__init__(self, section, etype, node)
  23. def GetDefaultFilename(self):
  24. return 'u-boot.bin'