d2eaba6d4aa0d552756ec5870c601c42531d8c61
[platform/kernel/u-boot.git] / tools / binman / etype / u_boot.py
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 the expanded U-Boot binary
6 #
7
8 from binman.entry import Entry
9 from binman.etype.blob import Entry_blob
10
11 class Entry_u_boot(Entry_blob):
12     """U-Boot flat binary
13
14     Properties / Entry arguments:
15         - filename: Filename of u-boot.bin (default 'u-boot.bin')
16
17     This is the U-Boot binary, containing relocation information to allow it
18     to relocate itself at runtime. The binary typically includes a device tree
19     blob at the end of it.
20
21     U-Boot can access binman symbols at runtime. See:
22
23         'Access to binman entry offsets at run time (fdt)'
24
25     in the binman README for more information.
26
27     Note that this entry is automatically replaced with u-boot-expanded unless
28     --no-expanded is used.
29     """
30     def __init__(self, section, etype, node):
31         super().__init__(section, etype, node)
32
33     def GetDefaultFilename(self):
34         return 'u-boot.bin'