u_boot_nodtb.py 959 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 binman.entry import Entry
  8. from binman.etype.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 to include (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, normally expands to a
  17. section containing u-boot and u-boot-dtb
  18. """
  19. def __init__(self, section, etype, node):
  20. super().__init__(section, etype, node)
  21. def GetDefaultFilename(self):
  22. return 'u-boot-nodtb.bin'