u_boot.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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 the expanded U-Boot binary
  6. #
  7. from binman.entry import Entry
  8. from binman.etype.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.
  16. U-Boot can access binman symbols at runtime. See:
  17. 'Access to binman entry offsets at run time (fdt)'
  18. in the binman README for more information.
  19. Note that this entry is automatically replaced with u-boot-expanded unless
  20. --no-expanded is used or the node has a 'no-expanded' property.
  21. """
  22. def __init__(self, section, etype, node):
  23. super().__init__(section, etype, node)
  24. def GetDefaultFilename(self):
  25. return 'u-boot.bin'