blob: 8fe681844d929840b5d4156fc1ac7d1f44144fb7 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass4b0730d2011-09-26 14:10:39 +00002#
3# Copyright (c) 2011 The Chromium OS Authors.
4#
5# (C) Copyright 2000-2003
6# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glass4b0730d2011-09-26 14:10:39 +00007
Masahiro Yamada7cf40822013-10-17 17:35:03 +09008obj-y := cpu.o os.o start.o state.o
Simon Glasse961a662016-07-04 11:57:51 -06009obj-$(CONFIG_SPL_BUILD) += spl.o
Joe Hershbergera346ca72015-03-22 17:09:21 -050010obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o
Simon Glassbbc09bf2014-02-27 13:26:17 -070011obj-$(CONFIG_SANDBOX_SDL) += sdl.o
Simon Glass4b0730d2011-09-26 14:10:39 +000012
Andreas Bießmannf8d2c652011-12-02 11:53:13 +010013# os.c is build in the system environment, so needs standard includes
Masahiro Yamada6825a952014-02-04 17:24:28 +090014# CFLAGS_REMOVE_os.o cannot be used to drop header include path
15quiet_cmd_cc_os.o = CC $(quiet_modtag) $@
16cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \
17 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
18
19$(obj)/os.o: $(src)/os.c FORCE
20 $(call if_changed_dep,cc_os.o)
Simon Glassbbc09bf2014-02-27 13:26:17 -070021$(obj)/sdl.o: $(src)/sdl.c FORCE
22 $(call if_changed_dep,cc_os.o)
Joe Hershbergera346ca72015-03-22 17:09:21 -050023
24# eth-raw-os.c is built in the system env, so needs standard includes
25# CFLAGS_REMOVE_eth-raw-os.o cannot be used to drop header include path
26quiet_cmd_cc_eth-raw-os.o = CC $(quiet_modtag) $@
27cmd_cc_eth-raw-os.o = $(CC) $(filter-out -nostdinc, \
28 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
29
30$(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE
31 $(call if_changed_dep,cc_eth-raw-os.o)