[Concept,07/18] ulib: Move ulib into its own directory

Message ID 20250909151824.2327219-8-sjg@u-boot.org
State New
Headers
Series ulib: Complete initial U-Boot library |

Commit Message

Simon Glass Sept. 9, 2025, 3:18 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Before adding more files, create a new lib/ulib directory and put the
only existing file in there.

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

 lib/Makefile          | 2 +-
 lib/ulib/Makefile     | 6 ++++++
 lib/{ => ulib}/ulib.c | 0
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 lib/ulib/Makefile
 rename lib/{ => ulib}/ulib.c (100%)
  

Patch

diff --git a/lib/Makefile b/lib/Makefile
index eb6da6d63c9..fd18002181d 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -166,7 +166,7 @@  obj-$(CONFIG_LIB_ELF) += elf.o
 
 obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o
 
-obj-$(CONFIG_ULIB) += ulib.o
+obj-$(CONFIG_ULIB) += ulib/
 
 #
 # Build a fast OID lookup registry from include/linux/oid_registry.h
diff --git a/lib/ulib/Makefile b/lib/ulib/Makefile
new file mode 100644
index 00000000000..baa45053d69
--- /dev/null
+++ b/lib/ulib/Makefile
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: GPL-2.0+
+
+# Copyright 2025 Canonical
+# Written by Simon Glass <simon.glass@canonical.com>
+
+obj-y += ulib.o
diff --git a/lib/ulib.c b/lib/ulib/ulib.c
similarity index 100%
rename from lib/ulib.c
rename to lib/ulib/ulib.c