opensbi.py 818 B

1234567891011121314151617181920212223
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
  4. #
  5. # Entry-type module for RISC-V OpenSBI binary blob
  6. #
  7. from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
  8. class Entry_opensbi(Entry_blob_named_by_arg):
  9. """RISC-V OpenSBI fw_dynamic blob
  10. Properties / Entry arguments:
  11. - opensbi-path: Filename of file to read into entry. This is typically
  12. called fw_dynamic.bin
  13. This entry holds the run-time firmware, typically started by U-Boot SPL.
  14. See the U-Boot README for your architecture or board for how to use it. See
  15. https://github.com/riscv/opensbi for more information about OpenSBI.
  16. """
  17. def __init__(self, section, etype, node):
  18. super().__init__(section, etype, node, 'opensbi')
  19. self.external = True