2 # Copyright (c) 2011 The Chromium OS Authors.
4 # (C) Copyright 2000-2003
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 # SPDX-License-Identifier: GPL-2.0+
10 obj-y := cpu.o os.o start.o state.o
11 obj-$(CONFIG_SPL_BUILD) += spl.o
12 obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o
13 obj-$(CONFIG_SANDBOX_SDL) += sdl.o
15 # os.c is build in the system environment, so needs standard includes
16 # CFLAGS_REMOVE_os.o cannot be used to drop header include path
17 quiet_cmd_cc_os.o = CC $(quiet_modtag) $@
18 cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \
19 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
21 $(obj)/os.o: $(src)/os.c FORCE
22 $(call if_changed_dep,cc_os.o)
23 $(obj)/sdl.o: $(src)/sdl.c FORCE
24 $(call if_changed_dep,cc_os.o)
26 # eth-raw-os.c is built in the system env, so needs standard includes
27 # CFLAGS_REMOVE_eth-raw-os.o cannot be used to drop header include path
28 quiet_cmd_cc_eth-raw-os.o = CC $(quiet_modtag) $@
29 cmd_cc_eth-raw-os.o = $(CC) $(filter-out -nostdinc, \
30 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
32 $(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE
33 $(call if_changed_dep,cc_eth-raw-os.o)