u_boot_nodtb.py 937 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-nodtb.bin'
  6. #
  7. from entry import Entry
  8. from blob import Entry_blob
  9. class Entry_u_boot_nodtb(Entry_blob):
  10. """U-Boot flat binary without device tree appended
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.bin (default 'u-boot-nodtb.bin')
  13. This is the U-Boot binary, containing relocation information to allow it
  14. to relocate itself at runtime. It does not include a device tree blob at
  15. the end of it so normally cannot work without it. You can add a u_boot_dtb
  16. entry after this one, or use a u_boot entry instead (which contains both
  17. U-Boot and the device tree).
  18. """
  19. def __init__(self, section, etype, node):
  20. Entry_blob.__init__(self, section, etype, node)
  21. def GetDefaultFilename(self):
  22. return 'u-boot-nodtb.bin'