bootstd: Replicate the dtb-filename quirks of distroboot
authorSimon Glass <sjg@chromium.org>
Wed, 22 Feb 2023 19:17:04 +0000 (12:17 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 19:40:49 +0000 (11:40 -0800)
commit47dd6b4d7daba06a04bb612d0c19e350e6287fac
treee68de28980fa5672afed9428bd13e9454b88a811
parent4f806f31fc29b30f06bd13abe44a1d3649d480e5
bootstd: Replicate the dtb-filename quirks of distroboot

For EFI, the distro boot scripts search in three different directories
for the .dtb file. The SOC-based filename fallback is supported only for
32-bit ARM.

Adjust the code to mirror this behaviour.

Also some boards can use a prior-stage FDT if one is not found in the
normal way. Support this and show a message in that case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Mark Kettenis <kettenis@openbsd.org>
boot/bootflow.c
boot/bootmeth_efi.c
include/bootflow.h