diff options
| author | Simon Glass <[email protected]> | 2026-03-24 13:45:20 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-04-07 11:33:04 -0600 |
| commit | 738428dc0e761617c5196a5210774ac7347e6bb7 (patch) | |
| tree | 1abb73530a3e16fb6864490b7210f179a160b3ab /arch/sandbox/Makefile | |
| parent | c98bf0533be6479f6b7d973b2419e9c4b7181456 (diff) | |
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 <[email protected]>
Diffstat (limited to 'arch/sandbox/Makefile')
| -rw-r--r-- | arch/sandbox/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/Makefile b/arch/sandbox/Makefile index a335f8acfde..5bbf9f1f96b 100644 --- a/arch/sandbox/Makefile +++ b/arch/sandbox/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ -head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o +head-y := arch/sandbox/cpu/start.o head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o libs-y += arch/sandbox/cpu/ libs-y += arch/sandbox/lib/ |
