[Concept,v2,14/18] efi: Move efi_string utilities to the common directory

Message ID 20250820112340.147082-15-sjg@u-boot.org
State New
Headers
Series efi: Move towards the EFI app booting EFI applications |

Commit Message

Simon Glass Aug. 20, 2025, 11:23 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

This file contains some useful utility functions which are not specific
to the EFI loader. Move them to lib/efi so they can be used by the app.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 lib/efi/Makefile                              | 1 +
 lib/{efi_loader/efi_string.c => efi/string.c} | 0
 lib/efi_loader/Makefile                       | 1 -
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename lib/{efi_loader/efi_string.c => efi/string.c} (100%)
  

Patch

diff --git a/lib/efi/Makefile b/lib/efi/Makefile
index 9b65cbc0dc2..842067dcab3 100644
--- a/lib/efi/Makefile
+++ b/lib/efi/Makefile
@@ -9,3 +9,4 @@  obj-y += helper.o
 obj-y += load_options.o
 obj-y += memory.o
 obj-y += run.o
+obj-y += string.o
diff --git a/lib/efi_loader/efi_string.c b/lib/efi/string.c
similarity index 100%
rename from lib/efi_loader/efi_string.c
rename to lib/efi/string.c
diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile
index 2b232940bc3..180b83d2fc5 100644
--- a/lib/efi_loader/Makefile
+++ b/lib/efi_loader/Makefile
@@ -43,7 +43,6 @@  obj-y += efi_memory.o
 obj-y += efi_root_node.o
 obj-y += efi_runtime.o
 obj-y += efi_setup.o
-obj-y += efi_string.o
 obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o
 obj-y += efi_var_common.o
 obj-y += efi_var_mem.o