blob: c890f350e173cf80eaefe22ffef32de7c9e8e046 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001# SPDX-License-Identifier: GPL-2.0-only
Lee Leahy3dad4892015-05-05 11:14:02 -07002
Stefan Reinauer86ddd732016-03-11 20:22:28 -08003ifeq ($(CONFIG_PLATFORM_USES_FSP1_1),y)
4
Frans Hendriks4e0ec592019-06-06 10:07:17 +02005bootblock-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += cache_as_ram.S
Subrata Banika90f41b2016-07-27 05:30:50 +05306bootblock-y += fsp_util.c
Arthur Heymans8256ca02019-10-21 18:47:46 +02007bootblock-y += ../../../cpu/intel/microcode/microcode_asm.S
Frans Hendriksc022a792020-11-20 10:52:39 +01008bootblock-y += fsp_report.c
Subrata Banika90f41b2016-07-27 05:30:50 +05309
Aaron Durbine6af4be2015-09-24 12:26:31 -050010romstage-y += car.c
Lee Leahyb5ad8272015-04-20 15:29:16 -070011romstage-y += fsp_util.c
12romstage-y += hob.c
Lee Leahyd5855ec2015-10-15 17:17:09 -070013romstage-y += raminit.c
14romstage-y += romstage.c
Lee Leahy3dad4892015-05-05 11:14:02 -070015
Lee Leahyb5ad8272015-04-20 15:29:16 -070016ramstage-y += fsp_relocate.c
17ramstage-y += fsp_util.c
18ramstage-y += hob.c
Lee Leahy94b856e2015-10-15 12:07:03 -070019ramstage-y += ramstage.c
Nico Huber29cc3312018-06-06 17:40:02 +020020ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c
Lee Leahy3dad4892015-05-05 11:14:02 -070021
Aaron Durbin789f2b62015-09-09 17:05:06 -050022CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include
Lee Leahy3dad4892015-05-05 11:14:02 -070023
Arthur Heymansbe291e82019-01-06 07:35:11 +010024ifneq ($(CONFIG_SKIP_FSP_CAR),y)
25postcar-y += temp_ram_exit.c
26postcar-y += exit_car.S
27endif
28postcar-y += fsp_util.c
29
Lee Leahyb5ad8272015-04-20 15:29:16 -070030# Add the FSP binary to the cbfs image
Lee Leahy3dad4892015-05-05 11:14:02 -070031ifeq ($(CONFIG_HAVE_FSP_BIN),y)
32cbfs-files-y += fsp.bin
33fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
Lee Leahy3dad4892015-05-05 11:14:02 -070034fsp.bin-type := fsp
Patrick Rudolphd9c799c2019-02-19 10:57:16 +010035fsp.bin-options := --xip $(TXTIBB)
Patrick Georgi93469392016-08-10 17:04:43 +020036fsp.bin-COREBOOT-position := $(CONFIG_FSP_LOC)
Lee Leahy3dad4892015-05-05 11:14:02 -070037endif
Stefan Reinauer86ddd732016-03-11 20:22:28 -080038
Frans Hendriks50b999f2019-11-08 13:55:45 +010039# Add logo to the cbfs image
Kyösti Mälkki4949a3d2021-01-09 20:38:43 +020040cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp
Frans Hendriks50b999f2019-11-08 13:55:45 +010041logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP1_1_LOGO_FILE_NAME))
42logo.bmp-type := raw
43logo.bmp-compression := LZMA
44
Stefan Reinauer86ddd732016-03-11 20:22:28 -080045endif