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 binman.entry import Entry
9from binman.etype.blob import Entry_blob
10
11class Entry_u_boot_nodtb(Entry_blob):
12    """U-Boot flat binary without device tree appended
13
14    Properties / Entry arguments:
15        - filename: Filename to include (default 'u-boot-nodtb.bin')
16
17    This is the U-Boot binary, containing relocation information to allow it
18    to relocate itself at runtime. It does not include a device tree blob at
19    the end of it so normally cannot work without it. You can add a u-boot-dtb
20    entry after this one, or use a u-boot entry instead, normally expands to a
21    section containing u-boot and u-boot-dtb
22    """
23    def __init__(self, section, etype, node):
24        super().__init__(section, etype, node)
25
26    def GetDefaultFilename(self):
27        return 'u-boot-nodtb.bin'
28