Merge tag 'u-boot-rockchip-20200501' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / tools / binman / etype / u_boot_spl_elf.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2018 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
4 #
5 # Entry-type module for U-Boot SPL ELF image
6 #
7
8 from binman.entry import Entry
9 from binman.etype.blob import Entry_blob
10
11 class Entry_u_boot_spl_elf(Entry_blob):
12     """U-Boot SPL ELF image
13
14     Properties / Entry arguments:
15         - filename: Filename of SPL u-boot (default 'spl/u-boot-spl')
16
17     This is the U-Boot SPL ELF image. It does not include a device tree but can
18     be relocated to any address for execution.
19     """
20     def __init__(self, section, etype, node):
21         Entry_blob.__init__(self, section, etype, node)
22
23     def GetDefaultFilename(self):
24         return 'spl/u-boot-spl'