blob: db4363358a85dee0949dd1a683873afd8470cd58 [file] [log] [blame]
Simon Glass3d750d72011-09-26 14:10:39 +00001#
2# Copyright (c) 2011 The Chromium OS Authors.
3#
4# (C) Copyright 2000-2003
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
Simon Glass3d750d72011-09-26 14:10:39 +00008#
9
Masahiro Yamada52f677a2013-10-17 17:35:03 +090010obj-y := cpu.o os.o start.o state.o
Simon Glassa7e2d4d2016-07-04 11:57:51 -060011obj-$(CONFIG_SPL_BUILD) += spl.o
Joe Hershberger586cbd12015-03-22 17:09:21 -050012obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o
Simon Glass0d10f292014-02-27 13:26:17 -070013obj-$(CONFIG_SANDBOX_SDL) += sdl.o
Simon Glass3d750d72011-09-26 14:10:39 +000014
Andreas Bießmann2f935ce2011-12-02 11:53:13 +010015# os.c is build in the system environment, so needs standard includes
Masahiro Yamada0d68fb12014-02-04 17:24:28 +090016# CFLAGS_REMOVE_os.o cannot be used to drop header include path
17quiet_cmd_cc_os.o = CC $(quiet_modtag) $@
18cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \
19 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
20
21$(obj)/os.o: $(src)/os.c FORCE
22 $(call if_changed_dep,cc_os.o)
Simon Glass0d10f292014-02-27 13:26:17 -070023$(obj)/sdl.o: $(src)/sdl.c FORCE
24 $(call if_changed_dep,cc_os.o)
Joe Hershberger586cbd12015-03-22 17:09:21 -050025
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
28quiet_cmd_cc_eth-raw-os.o = CC $(quiet_modtag) $@
29cmd_cc_eth-raw-os.o = $(CC) $(filter-out -nostdinc, \
30 $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $<
31
32$(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE
33 $(call if_changed_dep,cc_eth-raw-os.o)