Merge tag 'u-boot-rockchip-20200501' of https://gitlab.denx.de/u-boot/custodians...
[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 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. Use u_boot_nodtb if you want to package the device
20     tree separately.
21
22     U-Boot can access binman symbols at runtime. See:
23
24         'Access to binman entry offsets at run time (fdt)'
25
26     in the binman README for more information.
27     """
28     def __init__(self, section, etype, node):
29         Entry_blob.__init__(self, section, etype, node)
30
31     def GetDefaultFilename(self):
32         return 'u-boot.bin'