]> git.ipfire.org Git - thirdparty/grub.git/commit
arm64/efi/linux: Ignore FDT unless we need to modify it
authorArd Biesheuvel <ardb@kernel.org>
Tue, 18 Oct 2022 19:05:07 +0000 (21:05 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 18:10:18 +0000 (20:10 +0200)
commit93afdf859743177369fe8669fff78da29e7d4e01
tree49d3b7f529eb2e0b757147c11c2bcc50fbebed91
parent75e8d0d98069294c725f4f1fff41f27cb577a040
arm64/efi/linux: Ignore FDT unless we need to modify it

Now that we implemented support for the LoadFile2 protocol for initrd
loading, there is no longer a need to pass the initrd parameters via
the device tree. This means that when the LoadFile2 protocol is being
used, there is no reason to update the device tree in the first place,
and so we can ignore it entirely.

The only remaining reason to deal with the devicetree is if we are
using the "devicetree" command to load one from disk, so tweak the
logic in grub_fdt_install() to take that into account.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/arm64/linux.c
grub-core/loader/efi/fdt.c