Files
u-boot/lib/ulib/rename.syms
Simon Glass 278e98baaf ulib: Provide a symbol-rename file
Add a file which lists various symbols to rename when building the
U-Boot library. For now it contains printf() and related functions, but
more can be added later, as needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-08 13:09:58 -06:00

31 lines
709 B
Plaintext

# SPDX-License-Identifier: GPL-2.0+
#
# Symbol redefinition list for U-Boot library
#
# Copyright 2025 Canonical Ltd.
# Written by Simon Glass <simon.glass@canonical.com>
#
# Format:
# file:filename - indicates the header file which contains the following symbols
#
# Symbols renames are indented at least one position:
# symbol_name - Prefix the symbol with 'ub_' (e.g., printf → ub_printf)
# original=new - Explicit mapping, so 'original' becomes 'new'
#
# Lines starting with # are comments
# Standard library functions
file: stdio.h
printf
snprintf
vprintf
file: vsprintf.h
sprintf
vsprintf
vsnprintf
# Example of explicit mapping for custom naming
# scnprintf=ub_scnprintf_custom