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. |
Subrata Banik | 8b9f289 | 2018-01-25 10:50:39 +0530 | [diff] [blame] | 5 | ## Copyright (C) 2018 Intel Corp. |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [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 | ## |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 16 | |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 17 | ifneq ($(CONFIG_FSP_VENDORCODE_HEADER_PATH),) |
Marc Jones | 54b8e7a | 2013-10-29 17:57:30 -0600 | [diff] [blame] | 18 | FSP_PATH := $(call strip_quotes,$(CONFIG_FSP_VENDORCODE_HEADER_PATH)) |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 19 | FSP_SRC_FILES := $(wildcard src/vendorcode/intel/$(FSP_PATH)/srx/*.c) |
| 20 | 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] | 21 | ramstage-y += $(FSP_C_INPUTS) |
| 22 | |
FEI WANG | 4a14505 | 2014-05-31 15:59:46 +0100 | [diff] [blame] | 23 | CFLAGS_x86_32 += -Isrc/vendorcode/intel/$(FSP_PATH)/include |
Martin Roth | 18a40e0 | 2014-04-04 11:59:48 -0600 | [diff] [blame] | 24 | endif |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 25 | |
| 26 | ifeq ($(CONFIG_UEFI_2_4_BINDING),y) |
| 27 | # ProccessorBind.h provided in Ia32 directory. Types are derived from ia32. |
| 28 | # It's possible to provide our own ProcessorBind.h using posix types. However, |
| 29 | # ProcessorBind.h isn't just about types. There's compiler definitions as well |
| 30 | # as ABI enforcement. Luckily long is not used in Ia32/ProcessorBind.h for |
| 31 | # a fixed width type. |
| 32 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Ia32 |
| 33 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include |
Martin Roth | ac39da4 | 2016-09-02 11:09:05 -0600 | [diff] [blame] | 34 | else ifeq ($(CONFIG_UDK_2015_BINDING),y) |
Rizwan Qureshi | e96543e | 2016-07-12 11:49:25 +0530 | [diff] [blame] | 35 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/MdePkg/Include/Ia32 |
| 36 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/MdePkg/Include |
| 37 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/IntelFsp2Pkg/Include |
Subrata Banik | 8b9f289 | 2018-01-25 10:50:39 +0530 | [diff] [blame] | 38 | else ifeq ($(CONFIG_UDK_2017_BINDING),y) |
| 39 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Ia32 |
| 40 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/MdePkg/Include |
| 41 | CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/IntelFsp2Pkg/Include |
Aaron Durbin | 789f2b6 | 2015-09-09 17:05:06 -0500 | [diff] [blame] | 42 | endif |