blob: 4b8e0a81f01a73338509d0f332f87c9fe2651a41 [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
Aaron Durbin909c5122015-09-29 17:41:30 -05005verstage-y += car.c
6verstage-y += fsp_util.c
Martin Roth114cf5f2020-11-09 13:22:06 -07007verstage-$(CONFIG_VBOOT_SEPARATE_VERSTAGE) += verstage.c
Aaron Durbin909c5122015-09-29 17:41:30 -05008
Frans Hendriks4e0ec592019-06-06 10:07:17 +02009bootblock-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += cache_as_ram.S
Subrata Banika90f41b2016-07-27 05:30:50 +053010bootblock-y += fsp_util.c
Arthur Heymans8256ca02019-10-21 18:47:46 +020011bootblock-y += ../../../cpu/intel/microcode/microcode_asm.S
Frans Hendriksc022a792020-11-20 10:52:39 +010012bootblock-y += fsp_report.c
Subrata Banika90f41b2016-07-27 05:30:50 +053013
Aaron Durbine6af4be2015-09-24 12:26:31 -050014romstage-y += car.c
Lee Leahyb5ad8272015-04-20 15:29:16 -070015romstage-y += fsp_util.c
16romstage-y += hob.c
Lee Leahyd5855ec2015-10-15 17:17:09 -070017romstage-y += raminit.c
18romstage-y += romstage.c
Lee Leahy3dad4892015-05-05 11:14:02 -070019
Lee Leahyb5ad8272015-04-20 15:29:16 -070020ramstage-y += fsp_relocate.c
21ramstage-y += fsp_util.c
22ramstage-y += hob.c
Lee Leahy94b856e2015-10-15 12:07:03 -070023ramstage-y += ramstage.c
Nico Huber29cc3312018-06-06 17:40:02 +020024ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c
Lee Leahy3dad4892015-05-05 11:14:02 -070025
Aaron Durbin789f2b62015-09-09 17:05:06 -050026CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include
Lee Leahy3dad4892015-05-05 11:14:02 -070027
Arthur Heymansbe291e82019-01-06 07:35:11 +010028ifneq ($(CONFIG_SKIP_FSP_CAR),y)
29postcar-y += temp_ram_exit.c
30postcar-y += exit_car.S
31endif
32postcar-y += fsp_util.c
33
Lee Leahyb5ad8272015-04-20 15:29:16 -070034# Add the FSP binary to the cbfs image
Lee Leahy3dad4892015-05-05 11:14:02 -070035ifeq ($(CONFIG_HAVE_FSP_BIN),y)
36cbfs-files-y += fsp.bin
37fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
Lee Leahy3dad4892015-05-05 11:14:02 -070038fsp.bin-type := fsp
Patrick Rudolphd9c799c2019-02-19 10:57:16 +010039fsp.bin-options := --xip $(TXTIBB)
Patrick Georgi93469392016-08-10 17:04:43 +020040fsp.bin-COREBOOT-position := $(CONFIG_FSP_LOC)
Lee Leahy3dad4892015-05-05 11:14:02 -070041endif
Stefan Reinauer86ddd732016-03-11 20:22:28 -080042
Frans Hendriks50b999f2019-11-08 13:55:45 +010043# Add logo to the cbfs image
Kyösti Mälkki4949a3d2021-01-09 20:38:43 +020044cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp
Frans Hendriks50b999f2019-11-08 13:55:45 +010045logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP1_1_LOGO_FILE_NAME))
46logo.bmp-type := raw
47logo.bmp-compression := LZMA
48
Stefan Reinauer86ddd732016-03-11 20:22:28 -080049endif