Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 2 | |
Simon Glass | 66cf8f7 | 2018-11-23 21:29:30 -0700 | [diff] [blame] | 3 | head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o |
| 4 | head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 5 | libs-y += arch/sandbox/cpu/ |
| 6 | libs-y += arch/sandbox/lib/ |
Heinrich Schuchardt | 881b90f | 2022-01-28 10:08:32 +0100 | [diff] [blame] | 7 | |
| 8 | # sdl.c fails to compile with -fshort-wchar using musl. |
| 9 | cmd_cc_sdl.o = $(CC) $(filter-out -nostdinc -fshort-wchar, \ |
| 10 | $(patsubst -I%,-idirafter%,$(c_flags))) -fno-lto -c -o $@ $< |
| 11 | |
| 12 | $(obj)/sdl.o: $(src)/sdl.c FORCE |
| 13 | $(call if_changed_dep,cc_sdl.o) |