2018-05-07 06:58:06 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2016-11-26 12:15:54 +09:00
|
|
|
# Copyright (c) 2016 Google, Inc
|
|
|
|
# Written by Simon Glass <sjg@chromium.org>
|
|
|
|
#
|
|
|
|
# Entry-type module for U-Boot binary
|
|
|
|
#
|
|
|
|
|
2020-04-18 09:09:03 +09:00
|
|
|
from binman.entry import Entry
|
|
|
|
from binman.etype.blob import Entry_blob
|
2016-11-26 12:15:54 +09:00
|
|
|
|
|
|
|
class Entry_u_boot_img(Entry_blob):
|
2018-07-18 04:25:35 +09:00
|
|
|
"""U-Boot legacy image
|
|
|
|
|
|
|
|
Properties / Entry arguments:
|
|
|
|
- filename: Filename of u-boot.img (default 'u-boot.img')
|
|
|
|
|
|
|
|
This is the U-Boot binary as a packaged image, in legacy format. It has a
|
|
|
|
header which allows it to be loaded at the correct address for execution.
|
|
|
|
|
|
|
|
You should use FIT (Flat Image Tree) instead of the legacy image for new
|
|
|
|
applications.
|
|
|
|
"""
|
2018-06-02 00:38:14 +09:00
|
|
|
def __init__(self, section, etype, node):
|
2020-07-10 09:39:35 +09:00
|
|
|
super().__init__(section, etype, node)
|
2016-11-26 12:15:54 +09:00
|
|
|
|
|
|
|
def GetDefaultFilename(self):
|
|
|
|
return 'u-boot.img'
|