efi_loader: Refactor device and image paths into a function
authorSimon Glass <sjg@chromium.org>
Thu, 9 Jan 2025 15:02:38 +0000 (08:02 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 17 Jan 2025 19:41:49 +0000 (20:41 +0100)
commitef7b3f4323872febcff23c8370d735c4fa9b7e3d
tree551a90cd78c08385a27de4b2f26e0d3a11a302fd
parent80c8dbe5147fecf0a13355c4480123bfb94d1da4
efi_loader: Refactor device and image paths into a function

Move this code into a function so it can be called from elsewhere.

Note that the recently added network code uses the same
'global variable' approach. It could use a separate clean-up.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_bootbin.c