183d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+ 24b0730d2SSimon Glass# 34b0730d2SSimon Glass# Copyright (c) 2011 The Chromium OS Authors. 44b0730d2SSimon Glass# 54b0730d2SSimon Glass# (C) Copyright 2000-2003 64b0730d2SSimon Glass# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 74b0730d2SSimon Glass 8*40e9ede1SSimon Glassobj-y := cpu.o state.o 9*40e9ede1SSimon Glassextra-y := start.o os.o 10*40e9ede1SSimon Glassextra-$(CONFIG_SANDBOX_SDL) += sdl.o 11e961a66dSSimon Glassobj-$(CONFIG_SPL_BUILD) += spl.o 12a346ca79SJoe Hershbergerobj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o 134b0730d2SSimon Glass 14f8d2c65fSAndreas Bießmann# os.c is build in the system environment, so needs standard includes 156825a95bSMasahiro Yamada# CFLAGS_REMOVE_os.o cannot be used to drop header include path 166825a95bSMasahiro Yamadaquiet_cmd_cc_os.o = CC $(quiet_modtag) $@ 176825a95bSMasahiro Yamadacmd_cc_os.o = $(CC) $(filter-out -nostdinc, \ 186825a95bSMasahiro Yamada $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< 196825a95bSMasahiro Yamada 206825a95bSMasahiro Yamada$(obj)/os.o: $(src)/os.c FORCE 216825a95bSMasahiro Yamada $(call if_changed_dep,cc_os.o) 22bbc09bf2SSimon Glass$(obj)/sdl.o: $(src)/sdl.c FORCE 23bbc09bf2SSimon Glass $(call if_changed_dep,cc_os.o) 24a346ca79SJoe Hershberger 25a346ca79SJoe Hershberger# eth-raw-os.c is built in the system env, so needs standard includes 26a346ca79SJoe Hershberger# CFLAGS_REMOVE_eth-raw-os.o cannot be used to drop header include path 27a346ca79SJoe Hershbergerquiet_cmd_cc_eth-raw-os.o = CC $(quiet_modtag) $@ 28a346ca79SJoe Hershbergercmd_cc_eth-raw-os.o = $(CC) $(filter-out -nostdinc, \ 29a346ca79SJoe Hershberger $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< 30a346ca79SJoe Hershberger 31a346ca79SJoe Hershberger$(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE 32a346ca79SJoe Hershberger $(call if_changed_dep,cc_eth-raw-os.o) 33