u_boot_expanded.py 808 B

123456789101112131415161718192021222324
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright 2021 Google LLC
  3. # Written by Simon Glass <sjg@chromium.org>
  4. #
  5. # Entry-type module for U-Boot binary
  6. #
  7. from binman.etype.blob_phase import Entry_blob_phase
  8. class Entry_u_boot_expanded(Entry_blob_phase):
  9. """U-Boot flat binary broken out into its component parts
  10. This is a section containing the U-Boot binary and a devicetree. Using this
  11. entry type automatically creates this section, with the following entries
  12. in it:
  13. u-boot-nodtb
  14. u-boot-dtb
  15. Having the devicetree separate allows binman to update it in the final
  16. image, so that the entries positions are provided to the running U-Boot.
  17. """
  18. def __init__(self, section, etype, node):
  19. super().__init__(section, etype, node, 'u-boot', 'u-boot-dtb', False)