On Thu, 24 Sep 2026 05:54:48 +0000, Aristo Chen wrote:
> include/image.h defines constants for the FIT property and node names,
> and most of the FIT code uses them, but mkimage, boot/ and the SPL FIT
> loader still spell a few of the names out as string literals. This
> series converts the remaining ones in those three areas: mkimage in
> patches 1 and 2, boot/ in patch 3 and SPL in patch 4.
>
> Most of the changes swap a literal for the matching constant. Two need
> a word of explanation. fdt_property_file() in mkimage already takes the
> property name as an argument but ignores it and hardcodes "data", so
> patch 2 uses the argument; every caller passes FIT_DATA_PROP.
> FIT_COMPAT_PROP was added for the compatible property of configuration
> nodes by commit 3059eb0c27dd ("boot/fit: declare (and use) new constant
> for conf's compatible prop"), which noted that the same property can
> appear in FPGA image nodes but did not convert those. Patches 3 and 4
> use FIT_COMPAT_PROP for the FPGA image node as well, in U-Boot proper
> and in SPL.
>
> [...]
Applied to u-boot/main, thanks!
[1/4] tools: mkimage: use FIT_ALGO_PROP for the signature algo property
commit: 62ed983dad41c5515dfa0a222167a7a1d32955a4
[2/4] tools: mkimage: use the name argument in fdt_property_file()
commit: 3ebc4ef7255f39c8a27e130f3a86c34bfda829bb
[3/4] boot: fit: use constants for FIT property names
commit: fa2737df23f696b4919bf46dd01bb4b6191e3647
[4/4] spl: fit: use constants for FIT property names
commit: ab0b18fc5697117b8bcd9b5afd740f34bbe031c2
--
Tom