Message ID | 20240722175532.184842-1-caleb.connolly@linaro.org |
---|---|
State | Accepted |
Commit | 272df36494a5d98805a83df2f1b6d026854e2a57 |
Headers | show |
Series | efi_loader: add /dtbs search path | expand |
On 7/22/24 19:55, Caleb Connolly wrote: > 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> > --- > lib/efi_loader/efi_fdt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c > index 86ba00c2bdd9..4777943b80df 100644 > --- a/lib/efi_loader/efi_fdt.c > +++ b/lib/efi_loader/efi_fdt.c > @@ -42,8 +42,11 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq) > break; > case 2: > prefix = "/dtb/current"; > break; > + case 3: > + prefix = "/dtbs"; Debian's flash-kernel also installs into /dtbs. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > + break; > default: > return log_msg_ret("pref", -EINVAL); > } >
On Mon, 22 Jul 2024 at 20:55, Caleb Connolly <caleb.connolly@linaro.org> wrote: > > 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> > --- > lib/efi_loader/efi_fdt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c > index 86ba00c2bdd9..4777943b80df 100644 > --- a/lib/efi_loader/efi_fdt.c > +++ b/lib/efi_loader/efi_fdt.c > @@ -42,8 +42,11 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq) > break; > case 2: > prefix = "/dtb/current"; > break; > + case 3: > + prefix = "/dtbs"; > + break; > default: > return log_msg_ret("pref", -EINVAL); > } > > -- > 2.45.2 > Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c index 86ba00c2bdd9..4777943b80df 100644 --- a/lib/efi_loader/efi_fdt.c +++ b/lib/efi_loader/efi_fdt.c @@ -42,8 +42,11 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq) break; case 2: prefix = "/dtb/current"; break; + case 3: + prefix = "/dtbs"; + break; default: return log_msg_ret("pref", -EINVAL); }
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> --- lib/efi_loader/efi_fdt.c | 3 +++ 1 file changed, 3 insertions(+)