]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sandbox: Adjust how OS-interface files are built 923/head
authorSimon Glass <sjg@chromium.org>
Tue, 24 Mar 2026 19:45:20 +0000 (13:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 Apr 2026 17:33:04 +0000 (11:33 -0600)
commit738428dc0e761617c5196a5210774ac7347e6bb7
tree1abb73530a3e16fb6864490b7210f179a160b3ab
parentc98bf0533be6479f6b7d973b2419e9c4b7181456
sandbox: Adjust how OS-interface files are built

The current mechanism uses a completely separate build rule for each
file which must be built with system headers. This is tricky to
maintain.

Add a foreach template in the sandbox cpu Makefile which generates the
custom compile rules from a CFLAGS_USE_SYSHDRS list. This keeps the
rules data-driven without needing changes to the common
scripts/Makefile.lib, which could affect other architectures.

Move initjmp.o into the template since it uses the same pattern. Add
sdl.o to the list too, with an override for its command since it also
needs -fshort-wchar removed and -fno-lto added.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/Makefile
arch/sandbox/cpu/Makefile