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 the expanded U-Boot binary 6# 7 8from binman.entry import Entry 9from binman.etype.blob import Entry_blob 10 11class Entry_u_boot(Entry_blob): 12 """U-Boot flat binary 13 14 Properties / Entry arguments: 15 - filename: Filename of u-boot.bin (default 'u-boot.bin') 16 17 This is the U-Boot binary, containing relocation information to allow it 18 to relocate itself at runtime. The binary typically includes a device tree 19 blob at the end of it. 20 21 U-Boot can access binman symbols at runtime. See :ref:`binman_fdt`. 22 23 Note that this entry is automatically replaced with u-boot-expanded unless 24 --no-expanded is used or the node has a 'no-expanded' property. 25 """ 26 def __init__(self, section, etype, node): 27 super().__init__(section, etype, node) 28 29 def GetDefaultFilename(self): 30 return 'u-boot.bin' 31