]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: add /dtbs search path
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 22 Jul 2024 17:55:23 +0000 (19:55 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 31 Jul 2024 06:29:16 +0000 (08:29 +0200)
Add an additional search path /dtbs, this is where dtbs are installed on
postmarketOS and potentially other distros.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_fdt.c

index 4ccf2055be3a3d65a361b35d6d253e025012a01f..c5ecade3aebd758410485b564644cb3eb8c89bbd 100644 (file)
@@ -43,6 +43,9 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq)
        case 2:
                prefix = "/dtb/current";
                break;
+       case 3:
+               prefix = "/dtbs";
+               break;
        default:
                return log_msg_ret("pref", -EINVAL);
        }