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_spl_nodtb(Entry_blob):
12 """SPL binary without device tree appended
14 Properties / Entry arguments:
15 - filename: Filename of spl/u-boot-spl-nodtb.bin (default
16 'spl/u-boot-spl-nodtb.bin')
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).
24 def __init__(self, section, etype, node):
25 Entry_blob.__init__(self, section, etype, node)
27 def GetDefaultFilename(self):
28 return 'spl/u-boot-spl-nodtb.bin'