Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 7a23b027ec17 ("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>

authored by

Chen-Yu Tsai and committed by
Masahiro Yamada
e06a698a 3c562a70

+1 -2
+1 -2
scripts/make_fit.py
··· 190 190 Args: 191 191 fsw (libfdt.FdtSw): Object to use for writing 192 192 seq (int): Sequence number (1 for first) 193 - fmame (str): Filename containing the DTB 193 + fname (str): Filename containing the DTB 194 194 arch: FIT architecture, e.g. 'arm64' 195 195 compress (str): Compressed algorithm, e.g. 'gzip' 196 196 ··· 211 211 fsw.property_string('type', 'flat_dt') 212 212 fsw.property_string('arch', arch) 213 213 fsw.property_string('compression', compress) 214 - fsw.property('compatible', bytes(compat)) 215 214 216 215 with open(fname, 'rb') as inf: 217 216 compressed = compress_data(inf, compress)