Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 4 | ## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC. |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
| 15 | ## You should have received a copy of the GNU General Public License |
| 16 | ## along with this program; if not, write to the Free Software |
| 17 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | ## |
| 19 | |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 20 | ifneq ($(CONFIG_FSP_VENDORCODE_HEADER_PATH),) |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 21 | FSP_PATH := $(call strip_quotes,$(CONFIG_FSP_VENDORCODE_HEADER_PATH)) |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 22 | FSP_SRC_FILES := $(wildcard src/vendorcode/intel/$(FSP_PATH)/srx/*.c) |
| 23 | FSP_C_INPUTS := $(foreach file, $(FSP_SRC_FILES), $(FSP_PATH)/srx/$(notdir $(file))) |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 24 | ramstage-y += $(FSP_C_INPUTS) |
| 25 | |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 26 | CFLAGS_x86_32 += -Isrc/vendorcode/intel/$(FSP_PATH)/include |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 27 | endif |