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>master
parent
e0ff855138
commit
c49deb837c
@ -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' |
@ -0,0 +1,11 @@ |
|||||||
|
/dts-v1/; |
||||||
|
|
||||||
|
/ { |
||||||
|
#address-cells = <1>; |
||||||
|
#size-cells = <1>; |
||||||
|
|
||||||
|
binman { |
||||||
|
u-boot-img { |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
Loading…
Reference in new issue