src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / drivers / intel / fsp2_0 / Makefile.inc
blob00321322bfd13ade16611a8dc2e3a3221bfec711
2 # This file is part of the coreboot project.
4 # SPDX-License-Identifier: GPL-2.0-only
6 ifeq ($(CONFIG_PLATFORM_USES_FSP2_0),y)
8 romstage-y += debug.c
9 romstage-y += hand_off_block.c
10 romstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c
11 romstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c
12 romstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
13 romstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
14 romstage-y += util.c
15 romstage-y += memory_init.c
16 romstage-$(CONFIG_MMA) += mma_core.c
17 romstage-y += cbmem.c
19 ramstage-y += debug.c
20 ramstage-$(CONFIG_RUN_FSP_GOP) += graphics.c
21 ramstage-y += hand_off_block.c
22 ramstage-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c
23 ramstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c
24 ramstage-$(CONFIG_VERIFY_HOBS) += hob_verify.c
25 ramstage-$(CONFIG_FSP2_0_DISPLAY_LOGO) += logo.c
26 ramstage-y += notify.c
27 ramstage-y += silicon_init.c
28 ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
29 ramstage-y += util.c
30 ramstage-$(CONFIG_MMA) += mma_core.c
32 postcar-$(CONFIG_FSP_CAR) += temp_ram_exit.c
33 postcar-$(CONFIG_FSP_CAR) += util.c
34 postcar-$(CONFIG_DISPLAY_FSP_HEADER) += header_display.c
35 postcar-y += hand_off_block.c
37 CPPFLAGS_common += -I$(src)/drivers/intel/fsp2_0/include
39 FSP_T_CBFS = $(call strip_quotes,$(CONFIG_FSP_T_CBFS))
40 FSP_M_CBFS = $(call strip_quotes,$(CONFIG_FSP_M_CBFS))
41 FSP_S_CBFS = $(call strip_quotes,$(CONFIG_FSP_S_CBFS))
43 # Add FSP blobs into cbfs. SoC code may supply  additional options with
44 # -options, e.g --xip or -b
45 cbfs-files-$(CONFIG_FSP_CAR) += $(FSP_T_CBFS)
46 $(FSP_T_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_T_FILE))
47 $(FSP_T_CBFS)-type := fsp
48 ifeq ($(CONFIG_FSP_T_XIP),y)
49 $(FSP_T_CBFS)-options := --xip $(TXTIBB)
50 endif
52 cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_M_CBFS)
53 $(FSP_M_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_M_FILE))
54 $(FSP_M_CBFS)-type := fsp
55 ifeq ($(CONFIG_FSP_M_XIP),y)
56 $(FSP_M_CBFS)-options := --xip $(TXTIBB)
57 endif
59 cbfs-files-$(CONFIG_ADD_FSP_BINARIES) += $(FSP_S_CBFS)
60 $(FSP_S_CBFS)-file := $(call strip_quotes,$(CONFIG_FSP_S_FILE))
61 $(FSP_S_CBFS)-type := fsp
63 ifeq ($(CONFIG_FSP_USE_REPO),y)
64 $(obj)/Fsp_M.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH))
65         python2 3rdparty/fsp/Tools/SplitFspBin.py split -f $(CONFIG_FSP_FD_PATH) -o "$(obj)" -n "Fsp.fd"
67 $(obj)/Fsp_S.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd
68         true
70 $(obj)/Fsp_T.fd: $(call strip_quotes,$(CONFIG_FSP_FD_PATH)) $(obj)/Fsp_M.fd
71         true
72 endif
74 # Add logo to the cbfs image
75 cbfs-files-$(CONFIG_FSP2_0_DISPLAY_LOGO) += logo.bmp
76 logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP2_0_LOGO_FILE_NAME))
77 logo.bmp-type := raw
78 logo.bmp-compression := LZMA
80 ifneq ($(call strip_quotes,$(CONFIG_FSP_HEADER_PATH)),)
81 CPPFLAGS_common+=-I$(CONFIG_FSP_HEADER_PATH)
82 endif
84 # Include PPI directory of CONFIG_FSP_PEIM_TO_PEIM_INTERFACE is enable
85 subdirs-$(CONFIG_FSP_PEIM_TO_PEIM_INTERFACE) += ppi
87 endif