diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-26 03:15:54 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-12-19 19:09:55 (GMT) |
commit | c49deb837cb1ba0a64869fcb4fabac11d3e94ae0 (patch) | |
tree | f479e174f9aeb0af444699812698fd733c951b5b /tools/binman/etype | |
parent | e0ff85513858246e5378e4e3676ef6128452c4f6 (diff) | |
download | u-boot-c49deb837cb1ba0a64869fcb4fabac11d3e94ae0.tar.xz |
binman: Add support for u-boot.img as an input binary
Add an entry type for u-boot.img (a legacy U-Boot image) and a simple test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'tools/binman/etype')
-rw-r--r-- | tools/binman/etype/u_boot_img.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/binman/etype/u_boot_img.py b/tools/binman/etype/u_boot_img.py new file mode 100644 index 0000000..744f1b4 --- /dev/null +++ b/tools/binman/etype/u_boot_img.py @@ -0,0 +1,17 @@ +# Copyright (c) 2016 Google, Inc +# Written by Simon Glass <sjg@chromium.org> +# +# SPDX-License-Identifier: GPL-2.0+ +# +# Entry-type module for U-Boot binary +# + +from entry import Entry +from blob import Entry_blob + +class Entry_u_boot_img(Entry_blob): + def __init__(self, image, etype, node): + Entry_blob.__init__(self, image, etype, node) + + def GetDefaultFilename(self): + return 'u-boot.img' |