Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 2 | # |
| 3 | # Copyright (c) 2011 The Chromium OS Authors. |
| 4 | # |
| 5 | # (C) Copyright 2000-2003 |
| 6 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 7 | |
Heinrich Schuchardt | 47c5e19 | 2020-12-09 19:42:44 +0100 | [diff] [blame] | 8 | obj-y := cache.o cpu.o state.o |
Simon Glass | 66cf8f7 | 2018-11-23 21:29:30 -0700 | [diff] [blame] | 9 | extra-y := start.o os.o |
| 10 | extra-$(CONFIG_SANDBOX_SDL) += sdl.o |
Simon Glass | a7e2d4d | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 11 | obj-$(CONFIG_SPL_BUILD) += spl.o |
Joe Hershberger | 586cbd1 | 2015-03-22 17:09:21 -0500 | [diff] [blame] | 12 | obj-$(CONFIG_ETH_SANDBOX_RAW) += eth-raw-os.o |
Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 13 | |
Andreas Bießmann | 2f935ce | 2011-12-02 11:53:13 +0100 | [diff] [blame] | 14 | # os.c is build in the system environment, so needs standard includes |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 15 | # CFLAGS_REMOVE_os.o cannot be used to drop header include path |
| 16 | quiet_cmd_cc_os.o = CC $(quiet_modtag) $@ |
| 17 | cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \ |
| 18 | $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< |
| 19 | |
| 20 | $(obj)/os.o: $(src)/os.c FORCE |
| 21 | $(call if_changed_dep,cc_os.o) |
Simon Glass | 0d10f29 | 2014-02-27 13:26:17 -0700 | [diff] [blame] | 22 | $(obj)/sdl.o: $(src)/sdl.c FORCE |
| 23 | $(call if_changed_dep,cc_os.o) |
Joe Hershberger | 586cbd1 | 2015-03-22 17:09:21 -0500 | [diff] [blame] | 24 | |
| 25 | # eth-raw-os.c is built in the system env, so needs standard includes |
| 26 | # CFLAGS_REMOVE_eth-raw-os.o cannot be used to drop header include path |
| 27 | quiet_cmd_cc_eth-raw-os.o = CC $(quiet_modtag) $@ |
| 28 | cmd_cc_eth-raw-os.o = $(CC) $(filter-out -nostdinc, \ |
| 29 | $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< |
| 30 | |
| 31 | $(obj)/eth-raw-os.o: $(src)/eth-raw-os.c FORCE |
| 32 | $(call if_changed_dep,cc_eth-raw-os.o) |