u_boot_dtb.py 939 B

12345678910111213141516171819202122232425262728293031
  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 device tree
  6. #
  7. from binman.entry import Entry
  8. from binman.etype.blob_dtb import Entry_blob_dtb
  9. class Entry_u_boot_dtb(Entry_blob_dtb):
  10. """U-Boot device tree
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.dtb (default 'u-boot.dtb')
  13. This is the U-Boot device tree, containing configuration information for
  14. U-Boot. U-Boot needs this to know what devices are present and which drivers
  15. to activate.
  16. Note: This is mostly an internal entry type, used by others. This allows
  17. binman to know which entries contain a device tree.
  18. """
  19. def __init__(self, section, etype, node):
  20. super().__init__(section, etype, node)
  21. def GetDefaultFilename(self):
  22. return 'u-boot.dtb'
  23. def GetFdtEtype(self):
  24. return 'u-boot-dtb'