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 | ## |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 15 | |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 16 | ifneq ($(CONFIG_FSP_VENDORCODE_HEADER_PATH),) |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 17 | FSP_PATH := $(call strip_quotes,$(CONFIG_FSP_VENDORCODE_HEADER_PATH)) |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 18 | FSP_SRC_FILES := $(wildcard src/vendorcode/intel/$(FSP_PATH)/srx/*.c) |
| 19 | 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] | 20 | ramstage-y += $(FSP_C_INPUTS) |
| 21 | |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 22 | CFLAGS_x86_32 += -Isrc/vendorcode/intel/$(FSP_PATH)/include |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 23 | endif |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 24 | |
| 25 | ifeq ($(CONFIG_UEFI_2_4_BINDING),y) |
| 26 | # ProccessorBind.h provided in Ia32 directory. Types are derived from ia32. |
| 27 | # It's possible to provide our own ProcessorBind.h using posix types. However, |
| 28 | # ProcessorBind.h isn't just about types. There's compiler definitions as well |
| 29 | # as ABI enforcement. Luckily long is not used in Ia32/ProcessorBind.h for |
| 30 | # a fixed width type. |
| 31 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Ia32 |
| 32 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include |
| 33 | endif |