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-nodtb.bin'
6#
7
8from entry import Entry
9from blob import Entry_blob
10
11class Entry_u_boot_spl_nodtb(Entry_blob):
12    """SPL binary without device tree appended
13
14    Properties / Entry arguments:
15        - filename: Filename of spl/u-boot-spl-nodtb.bin (default
16            'spl/u-boot-spl-nodtb.bin')
17
18    This is the U-Boot SPL binary, It does not include a device tree blob at
19    the end of it so may not be able to work without it, assuming SPL needs
20    a device tree to operation on your platform. You can add a u_boot_spl_dtb
21    entry after this one, or use a u_boot_spl entry instead (which contains
22    both SPL and the device tree).
23    """
24    def __init__(self, section, etype, node):
25        Entry_blob.__init__(self, section, etype, node)
26
27    def GetDefaultFilename(self):
28        return 'spl/u-boot-spl-nodtb.bin'
29