Add an option to select whether the shared library is built

The shared library is useful only with sandbox, so add an option to
allow it to be disabled, e.g. for EFI builds.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-11-02 16:46:01 +01:00
parent d798b2e9ef
commit 9b41b0fbe7
2 changed files with 12 additions and 2 deletions

10
Kconfig
View File

@@ -106,6 +106,16 @@ config ULIB
The library is called libu-boot.so
config ULIB_SHARED_LIB
bool "Build shared library (libu-boot.so)"
depends on ULIB && SANDBOX
default y
help
Enable this to build the shared library version (libu-boot.so) in
addition to the static library (libu-boot.a). Disable this if you
only need the static library, which can speed up builds and avoid
linking issues with some configurations.
config OPTIMIZE_INLINING
bool "Allow compiler to uninline functions marked 'inline' in full U-Boot"
help