blob: dffb6d2079656f485c178ccd576a7cf8467d9104 [file] [log] [blame]
Lee Leahy3dad4892015-05-05 11:14:02 -07001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2014 Sage Electronic Engineering, LLC.
Lee Leahyb5ad8272015-04-20 15:29:16 -07005# Copyright (C) 2015 Intel Corp.
Lee Leahy3dad4892015-05-05 11:14:02 -07006#
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 Georgib890a122015-03-26 15:17:45 +010018# Foundation, Inc.
Lee Leahy3dad4892015-05-05 11:14:02 -070019#
20
Lee Leahyb5ad8272015-04-20 15:29:16 -070021romstage-y += fsp_util.c
22romstage-y += hob.c
Lee Leahy3dad4892015-05-05 11:14:02 -070023
Lee Leahyb5ad8272015-04-20 15:29:16 -070024ramstage-$(CONFIG_GOP_SUPPORT) += fsp_gop.c
25ramstage-y += fsp_relocate.c
Aaron Durbina5be7fa2015-09-10 22:52:27 -050026ramstage-y += fsp1_1_relocate.c
Lee Leahyb5ad8272015-04-20 15:29:16 -070027ramstage-y += fsp_util.c
28ramstage-y += hob.c
Lee Leahy3dad4892015-05-05 11:14:02 -070029
Aaron Durbin789f2b62015-09-09 17:05:06 -050030CPPFLAGS_common += -Isrc/drivers/intel/fsp1_1/include
31# Where FspUpdVpd.h can be picked up from.
32CPPFLAGS_common += -I$(CONFIG_FSP_INCLUDE_PATH)
Lee Leahy3dad4892015-05-05 11:14:02 -070033
Lee Leahyb5ad8272015-04-20 15:29:16 -070034cpu_incs-$(CONFIG_USE_GENERIC_FSP_CAR_INC) += $(src)/drivers/intel/fsp1_1/cache_as_ram.inc
Lee Leahy3dad4892015-05-05 11:14:02 -070035
Lee Leahyb5ad8272015-04-20 15:29:16 -070036
37# Add the GOP Video BIOS Table to the cbfs image
38cbfs-files-$(CONFIG_GOP_SUPPORT) += vbt.bin
39vbt.bin-file := $(call strip_quotes,$(CONFIG_VBT_FILE))
40vbt.bin-type := optionrom
41
42
43# Add the FSP binary to the cbfs image
Lee Leahy3dad4892015-05-05 11:14:02 -070044ifeq ($(CONFIG_HAVE_FSP_BIN),y)
45cbfs-files-y += fsp.bin
46fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
47fsp.bin-position := $(CONFIG_FSP_LOC)
48fsp.bin-type := fsp
49endif