1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
5 # Entry-type module for 'u-boot-nodtb.bin'
8 from binman.entry import Entry
9 from binman.etype.blob import Entry_blob
11 class Entry_u_boot_nodtb(Entry_blob):
12 """U-Boot flat binary without device tree appended
14 Properties / Entry arguments:
15 - filename: Filename to include (default 'u-boot-nodtb.bin')
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
23 def __init__(self, section, etype, node):
24 super().__init__(section, etype, node)
26 def GetDefaultFilename(self):
27 return 'u-boot-nodtb.bin'