Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 2 | |
Simon Glass | 40e9ede | 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 | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 5 | libs-y += arch/sandbox/cpu/ |
| 6 | libs-y += arch/sandbox/lib/ |
Heinrich Schuchardt | ebc87d0 | 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) |