rockchip: rk3399: Add Nanopi M4 2GB board support
[platform/kernel/u-boot.git] / tools / binman / etype / u_boot_img.py
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 binary
6 #
7
8 from entry import Entry
9 from blob import Entry_blob
10
11 class Entry_u_boot_img(Entry_blob):
12     """U-Boot legacy image
13
14     Properties / Entry arguments:
15         - filename: Filename of u-boot.img (default 'u-boot.img')
16
17     This is the U-Boot binary as a packaged image, in legacy format. It has a
18     header which allows it to be loaded at the correct address for execution.
19
20     You should use FIT (Flat Image Tree) instead of the legacy image for new
21     applications.
22     """
23     def __init__(self, section, etype, node):
24         Entry_blob.__init__(self, section, etype, node)
25
26     def GetDefaultFilename(self):
27         return 'u-boot.img'