
From: Simon Glass <sjg@chromium.org> The ulib tests are built within the U-Boot build system, so make use of various settings which are provided. When using ulib outside the U-Boot tree (and outside its build environment), things are a little more tricky. This series provides a few simple examples to illustrate how to make it work. An example Makefile is provided as well. The same Makefile is used from CI just to ensure that it continues to work as expected. Simon Glass (10): CI: Tidy up the template for the 'make check' items sandbox: Make use of PLATFORM_LIBS for ulib_test Kconfig: Split the EXAMPLES option into its own file Kconfig: Provide an option for the standalone directory sandbox: Avoid use of ulong in os.h examples: Allow compilation of examples on sandbox sandbox: Enable building examples ulib: Provide an example of how to build with ulib CI: ulib: Test building examples separately doc: ulib: Provide some documentation on the ulib examples .gitlab-ci.yml | 26 +++++++++++++- Kconfig | 2 ++ Makefile | 19 +++++++++- configs/sandbox_defconfig | 1 + doc/develop/ulib.rst | 3 ++ examples/Kconfig | 19 ++++++++++ examples/Makefile | 2 +- examples/ulib/Makefile | 73 ++++++++++++++++++++++++++++++++++++++ examples/ulib/README | 74 +++++++++++++++++++++++++++++++++++++++ examples/ulib/demo.c | 61 ++++++++++++++++++++++++++++++++ examples/ulib/static.lds | 19 ++++++++++ include/os.h | 2 +- legacy_api/Kconfig | 8 ----- 13 files changed, 297 insertions(+), 12 deletions(-) create mode 100644 examples/Kconfig create mode 100644 examples/ulib/Makefile create mode 100644 examples/ulib/README create mode 100644 examples/ulib/demo.c create mode 100644 examples/ulib/static.lds -- 2.43.0 base-commit: 8f58832f29b90702d7f56c3f34823616ac81b2d3 branch: ulie