blob: a335f8acfde623c0a637bfdfb10378afbf8d93a5 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01002
Simon Glass66cf8f72018-11-23 21:29:30 -07003head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o
4head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01005libs-y += arch/sandbox/cpu/
6libs-y += arch/sandbox/lib/
Heinrich Schuchardt881b90f2022-01-28 10:08:32 +01007
8# sdl.c fails to compile with -fshort-wchar using musl.
9cmd_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)