Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 2 | |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 3 | ifeq ($(CONFIG_PLATFORM_USES_FSP1_1),y) |
| 4 | |
Aaron Durbin | 909c512 | 2015-09-29 17:41:30 -0500 | [diff] [blame] | 5 | verstage-y += car.c |
| 6 | verstage-y += fsp_util.c |
Martin Roth | 114cf5f | 2020-11-09 13:22:06 -0700 | [diff] [blame] | 7 | verstage-$(CONFIG_VBOOT_SEPARATE_VERSTAGE) += verstage.c |
Aaron Durbin | 909c512 | 2015-09-29 17:41:30 -0500 | [diff] [blame] | 8 | |
Frans Hendriks | 4e0ec59 | 2019-06-06 10:07:17 +0200 | [diff] [blame] | 9 | bootblock-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += cache_as_ram.S |
Subrata Banik | a90f41b | 2016-07-27 05:30:50 +0530 | [diff] [blame] | 10 | bootblock-y += fsp_util.c |
Arthur Heymans | 8256ca0 | 2019-10-21 18:47:46 +0200 | [diff] [blame] | 11 | bootblock-y += ../../../cpu/intel/microcode/microcode_asm.S |
Frans Hendriks | c022a79 | 2020-11-20 10:52:39 +0100 | [diff] [blame] | 12 | bootblock-y += fsp_report.c |
Subrata Banik | a90f41b | 2016-07-27 05:30:50 +0530 | [diff] [blame] | 13 | |
Aaron Durbin | e6af4be | 2015-09-24 12:26:31 -0500 | [diff] [blame] | 14 | romstage-y += car.c |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 15 | romstage-y += fsp_util.c |
| 16 | romstage-y += hob.c |
Lee Leahy | d5855ec | 2015-10-15 17:17:09 -0700 | [diff] [blame] | 17 | romstage-y += raminit.c |
| 18 | romstage-y += romstage.c |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 19 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 20 | ramstage-y += fsp_relocate.c |
| 21 | ramstage-y += fsp_util.c |
| 22 | ramstage-y += hob.c |
Lee Leahy | 94b856e | 2015-10-15 12:07:03 -0700 | [diff] [blame] | 23 | ramstage-y += ramstage.c |
Nico Huber | 29cc331 | 2018-06-06 17:40:02 +0200 | [diff] [blame] | 24 | ramstage-$(CONFIG_INTEL_GMA_ADD_VBT) += vbt.c |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 25 | |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 26 | CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 27 | |
Arthur Heymans | be291e8 | 2019-01-06 07:35:11 +0100 | [diff] [blame] | 28 | ifneq ($(CONFIG_SKIP_FSP_CAR),y) |
| 29 | postcar-y += temp_ram_exit.c |
| 30 | postcar-y += exit_car.S |
| 31 | endif |
| 32 | postcar-y += fsp_util.c |
| 33 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 34 | # Add the FSP binary to the cbfs image |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 35 | ifeq ($(CONFIG_HAVE_FSP_BIN),y) |
| 36 | cbfs-files-y += fsp.bin |
| 37 | fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE)) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 38 | fsp.bin-type := fsp |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 39 | fsp.bin-options := --xip $(TXTIBB) |
Patrick Georgi | 9346939 | 2016-08-10 17:04:43 +0200 | [diff] [blame] | 40 | fsp.bin-COREBOOT-position := $(CONFIG_FSP_LOC) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 41 | endif |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 42 | |
Frans Hendriks | 50b999f | 2019-11-08 13:55:45 +0100 | [diff] [blame] | 43 | # Add logo to the cbfs image |
Kyösti Mälkki | 4949a3d | 2021-01-09 20:38:43 +0200 | [diff] [blame] | 44 | cbfs-files-$(CONFIG_BMP_LOGO) += logo.bmp |
Frans Hendriks | 50b999f | 2019-11-08 13:55:45 +0100 | [diff] [blame] | 45 | logo.bmp-file := $(call strip_quotes,$(CONFIG_FSP1_1_LOGO_FILE_NAME)) |
| 46 | logo.bmp-type := raw |
| 47 | logo.bmp-compression := LZMA |
| 48 | |
Stefan Reinauer | 86ddd73 | 2016-03-11 20:22:28 -0800 | [diff] [blame] | 49 | endif |