blob_ext.py 803 B

12345678910111213141516171819202122232425262728
  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 external blobs, not built by U-Boot
  6. #
  7. import os
  8. from binman.etype.blob import Entry_blob
  9. from dtoc import fdt_util
  10. from patman import tools
  11. from patman import tout
  12. class Entry_blob_ext(Entry_blob):
  13. """Externally built binary blob
  14. Note: This should not be used by itself. It is normally used as a parent
  15. class by other entry types.
  16. If the file providing this blob is missing, binman can optionally ignore it
  17. and produce a broken image with a warning.
  18. See 'blob' for Properties / Entry arguments.
  19. """
  20. def __init__(self, section, etype, node):
  21. Entry_blob.__init__(self, section, etype, node)
  22. self.external = True