Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2014 Sage Electronic Engineering, LLC. |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 5 | # Copyright (C) 2015 Intel Corp. |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation; version 2 of the License. |
| 10 | # |
| 11 | # This program is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 18 | # Foundation, Inc. |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 19 | # |
| 20 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 21 | romstage-y += fsp_util.c |
| 22 | romstage-y += hob.c |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 23 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 24 | ramstage-$(CONFIG_GOP_SUPPORT) += fsp_gop.c |
| 25 | ramstage-y += fsp_relocate.c |
Aaron Durbin | a5be7fa | 2015-09-10 22:52:27 -0500 | [diff] [blame] | 26 | ramstage-y += fsp1_1_relocate.c |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 27 | ramstage-y += fsp_util.c |
| 28 | ramstage-y += hob.c |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 29 | |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 30 | CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include |
| 31 | # Where FspUpdVpd.h can be picked up from. |
| 32 | CPPFLAGS_common += -I$(CONFIG_FSP_INCLUDE_PATH) |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 33 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 34 | cpu_incs-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += $(src)/drivers/intel/fsp1_1/cache_as_ram.inc |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 35 | |
Lee Leahy | b5ad827 | 2015-04-20 15:29:16 -0700 | [diff] [blame] | 36 | |
| 37 | # Add the GOP Video BIOS Table to the cbfs image |
| 38 | cbfs-files-$(CONFIG_GOP_SUPPORT) += vbt.bin |
| 39 | vbt.bin-file := $(call strip_quotes,$(CONFIG_VBT_FILE)) |
| 40 | vbt.bin-type := optionrom |
| 41 | |
| 42 | |
| 43 | # Add the FSP binary to the cbfs image |
Lee Leahy | 3dad489 | 2015-05-05 11:14:02 -0700 | [diff] [blame] | 44 | ifeq ($(CONFIG_HAVE_FSP_BIN),y) |
| 45 | cbfs-files-y += fsp.bin |
| 46 | fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE)) |
| 47 | fsp.bin-position := $(CONFIG_FSP_LOC) |
| 48 | fsp.bin-type := fsp |
| 49 | endif |