ulib: Provide a generic init function

Provide an arch-neutral init function that can be used by including a
single header file.

This declares a static global_data which is used for the initial startup
process. Once board_init_r() is called, the global_data is moved into
a new place and the static version is not needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-04 14:07:38 -06:00
parent 43d2f41234
commit 467fe4c5f7
4 changed files with 74 additions and 6 deletions

View File

@@ -166,6 +166,8 @@ obj-$(CONFIG_LIB_ELF) += elf.o
obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += semihosting.o
obj-$(CONFIG_ULIB) += ulib.o
#
# Build a fast OID lookup registry from include/linux/oid_registry.h
#