Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e06a698

Browse files
wensmasahir0y
authored andcommitted
scripts/make_fit: Drop fdt image entry compatible string
According to the FIT image source file format document found in U-boot [1] and the split-out FIT image specification [2], under "'/images' node" -> "Conditionally mandatory property", the "compatible" property is described as "compatible method for loading image", i.e., not the compatible string embedded in the FDT or used for matching. Drop the compatible string from the fdt image entry node. While at it also fix up a typo in the document section of output_dtb. [1] U-boot source "doc/usage/fit/source_file_format.rst", or on the website: https://docs.u-boot.org/en/latest/usage/fit/source_file_format.html [2] https://github.com/open-source-firmware/flat-image-tree/blob/main/source/chapter2-source-file-format.rst Fixes: 7a23b02 ("arm64: boot: Support Flat Image Tree") Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 3c562a7 commit e06a698

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/make_fit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def output_dtb(fsw, seq, fname, arch, compress):
190190
Args:
191191
fsw (libfdt.FdtSw): Object to use for writing
192192
seq (int): Sequence number (1 for first)
193-
fmame (str): Filename containing the DTB
193+
fname (str): Filename containing the DTB
194194
arch: FIT architecture, e.g. 'arm64'
195195
compress (str): Compressed algorithm, e.g. 'gzip'
196196
@@ -211,7 +211,6 @@ def output_dtb(fsw, seq, fname, arch, compress):
211211
fsw.property_string('type', 'flat_dt')
212212
fsw.property_string('arch', arch)
213213
fsw.property_string('compression', compress)
214-
fsw.property('compatible', bytes(compat))
215214

216215
with open(fname, 'rb') as inf:
217216
compressed = compress_data(inf, compress)

0 commit comments

Comments
 (0)