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
8from entry import Entry
9from blob import Entry_blob
10
11class 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')
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'
25