]> git.dujemihanovic.xyz Git - u-boot.git/commit
boot: add support for fdt_fixup command in environment
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Mon, 11 Dec 2023 11:03:17 +0000 (12:03 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 16:59:49 +0000 (11:59 -0500)
commite91d6607af47131eab917b31990b3542204e396f
tree7765da4b7befb2722a0b6a3b55594bcfd4fbe0cc
parent0d72b0f2f83b788273c40ed4a64d1adf74877726
boot: add support for fdt_fixup command in environment

The "fdt" command is convenient for making small changes to the OS FDT,
especially during development. This is easy when the kernel and FDT are
loaded separately, but can be cumbersome for FIT images, requiring to
unpack the image, manually apply overlays, etc.

Add an option to execute a command "fdt_fixup" from the environment at
the beginning of image_setup_libfdt() (after overlays are applied, and
before the other fixups).

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/Kconfig
boot/image-fdt.c